GtkSharp/gnome/CanvasItem.custom
Vladimir Vukicevic 79f298f823 * gtk/CanvasItem.custom: use base() to set Raw in constructor, so
that the ref counting semantics get correctly set up

svn path=/trunk/gtk-sharp/; revision=8978
2002-11-14 01:44:23 +00:00

24 lines
704 B
Text

//
// 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")]
static extern System.IntPtr gnome_canvas_item_new (IntPtr group, int type, IntPtr null_terminator);
public CanvasItem (Gnome.CanvasGroup group, int type)
: base (gnome_canvas_item_new (group.Handle, type, IntPtr.Zero))
{
}
[DllImport("gtksharpglue")]
static extern IntPtr gtksharp_gnome_canvas_item_get_canvas (IntPtr i);
public Canvas Canvas {
get { return new Gnome.Canvas (gtksharp_gnome_canvas_item_get_canvas (this.Handle)); }
}