GtkSharp/gnome/Canvas.custom
Mike Kestner b9cee94a37 2004-05-07 Mike Kestner <mkestner@ximian.com>
* gnome/Canvas.custom : PixelsPerUnit prop.
	* gnome/Gnome.metadata : hide Canvas.SetPixelsPerUnit.
	* gnome/glue/Makefile.am : get_pixels_per_unit.
	* gnome/glue/canvas.c : get_pixels_per_unit.
	* gtk/Container.custom : OnForall virtual method impl.
	* gtk/glue/Makefile.am : add container.c
	* gtk/glue/container.c : virtual method glue for forall.
	* gtk/glue/makefile.win32 : add container.o

svn path=/trunk/gtk-sharp/; revision=26962
2004-05-08 02:14:19 +00:00

36 lines
958 B
Plaintext

//
// Gnome.Canvas.custom - Gnome Canvas class customizations
//
// Author: Duncan Mak (duncan@ximian.com)
// Mike Kestner <mkestner@ximian.com>
//
// Copyright (C) 2003 Duncan Mak
// Copyright (C) 2004 Novell, Inc.
//
// This code is inserted after the automatically generated code.
//
[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);
}
[DllImport("gnomesharpglue")]
static extern double gnomesharp_canvas_get_pixels_per_unit (IntPtr raw);
[DllImport("gnomecanvas-2")]
static extern void gnome_canvas_set_pixels_per_unit(IntPtr raw, double pixels_per_unit);
public double PixelsPerUnit {
get {
return gnomesharp_canvas_get_pixels_per_unit (Handle);
}
set {
gnome_canvas_set_pixels_per_unit (Handle, value);
}
}