GtkSharp/gnome/Canvas.custom
Mike Kestner 498028ccb0 2005-01-17 Mike Kestner <mkestner@novell.com>
* gnome/Canvas.custom : add a ctor (bool is_aa) using the
	construct-only prop.
	[Fixes #77017]

svn path=/trunk/gtk-sharp/; revision=55690
2006-01-17 19:19:58 +00:00

44 lines
1.4 KiB
Plaintext

//
// Gnome.Canvas.custom - Gnome Canvas class customizations
//
// Author: Duncan Mak (duncan@ximian.com)
// Mike Kestner <mkestner@novell.com>
//
// Copyright (C) 2003 Duncan Mak
// Copyright (C) 2004-2006 Novell, Inc.
//
// This code is inserted after the automatically generated code.
//
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Lesser GNU General
// Public License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
[DllImport("gnomecanvas-2")]
static extern void gnome_canvas_w2c_affine(IntPtr raw, double[] affine);
public void W2cAffine(out double[] affine) {
affine = new double [6];
gnome_canvas_w2c_affine(Handle, affine);
}
public Canvas (bool is_aa) : base (IntPtr.Zero)
{
string[] names = {"aa"};
GLib.Value[] vals = new GLib.Value [1];
vals [0] = new GLib.Value (is_aa);
CreateNativeObject (names, vals);
}