2003-07-30 06:36:18 +00:00
|
|
|
//
|
|
|
|
// Gnome.Canvas.custom - Gnome Canvas class customizations
|
|
|
|
//
|
|
|
|
// Author: Duncan Mak (duncan@ximian.com)
|
2004-05-08 02:14:19 +00:00
|
|
|
// Mike Kestner <mkestner@ximian.com>
|
2003-07-30 06:36:18 +00:00
|
|
|
//
|
|
|
|
// Copyright (C) 2003 Duncan Mak
|
2004-05-08 02:14:19 +00:00
|
|
|
// Copyright (C) 2004 Novell, Inc.
|
2003-07-30 06:36:18 +00:00
|
|
|
//
|
|
|
|
// 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);
|
|
|
|
}
|
2004-05-08 02:14:19 +00:00
|
|
|
|
|
|
|
[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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|