2002-08-06 00:15:18 +00:00
|
|
|
//
|
|
|
|
// Gnome.CanvasItem.custom - Gnome CanvasItem class customizations
|
|
|
|
//
|
|
|
|
// Author: Rachel Hestilow <hestilow@ximian.com>
|
|
|
|
//
|
|
|
|
// Copyright (C) 2002 Rachel Hestilow
|
|
|
|
//
|
|
|
|
// This code is inserted after the automatically generated code.
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
[DllImport("gnomecanvas-2")]
|
2002-12-25 00:36:00 +00:00
|
|
|
static extern System.IntPtr gnome_canvas_item_new (IntPtr group, uint type, IntPtr null_terminator);
|
2002-08-06 00:15:18 +00:00
|
|
|
|
2003-07-23 17:19:21 +00:00
|
|
|
[DllImport("libgobject-2.0-0.dll")]
|
|
|
|
static extern void g_object_ref (IntPtr raw);
|
|
|
|
|
2002-12-25 00:36:00 +00:00
|
|
|
public CanvasItem (Gnome.CanvasGroup group, uint type)
|
2002-11-14 01:44:23 +00:00
|
|
|
: base (gnome_canvas_item_new (group.Handle, type, IntPtr.Zero))
|
2002-08-06 00:15:18 +00:00
|
|
|
{
|
2003-07-23 17:19:21 +00:00
|
|
|
g_object_ref (Handle);
|
2002-08-06 00:15:18 +00:00
|
|
|
}
|
|
|
|
|
2002-08-06 15:52:32 +00:00
|
|
|
[DllImport("gtksharpglue")]
|
|
|
|
static extern IntPtr gtksharp_gnome_canvas_item_get_canvas (IntPtr i);
|
|
|
|
public Canvas Canvas {
|
2003-07-23 17:19:21 +00:00
|
|
|
get { return GLib.Object.GetObject (gtksharp_gnome_canvas_item_get_canvas (this.Handle), false) as Canvas; }
|
2002-08-06 15:52:32 +00:00
|
|
|
}
|