Ryujinx-GtkSharp/gtk/Widget.custom
Miguel de Icaza 7b5efe0866 2002-09-23 Miguel de Icaza <miguel@ximian.com>
* gtk/Style.custom: bind it.

	* gtk/Widget.custom: bind it.

	* glue/widget.c: Wrapper to fetch a GdkWindow from a widget.

	* glue/style.c: wrapper routines for getting/setting the thickness
	on a GtkStyle.

svn path=/trunk/gtk-sharp/; revision=7755
2002-09-24 03:21:37 +00:00

32 lines
792 B
Plaintext

//
// Gtk.Widget.custom - Gtk Widget class customizations
//
// Author: Rachel Hestilow <hestilow@ximian.com>
//
// Copyright (C) 2002 Rachel Hestilow
//
// This code is inserted after the automatically generated code.
//
[DllImport("gtksharpglue")]
static extern IntPtr gtksharp_gtk_widget_get_allocation (IntPtr style);
public Gdk.Rectangle Allocation {
get { return Gdk.Rectangle.New (gtksharp_gtk_widget_get_allocation (Handle)); }
}
[DllImport ("gtksharpglue")]
static extern IntPtr gtksharp_gtk_widget_get_window (IntPtr widget);
public Gdk.Window GdkWindow {
get {
IntPtr raw_ret = gtksharp_gtk_widget_get_window (Handle);
if (raw_ret != (IntPtr) 0){
Gdk.Window ret = (Gdk.Window) GLib.Object.GetObject(raw_ret);
ret.Ref ();
return ret;
}
return null;
}
}