GtkSharp/gtk/Button.custom
Mike Kestner 7cf6671bce 2003-10-30 Ken Foster <kenfoster@tampabay.rr.com>
* glue/button.c: initial creating of glue file for GdkButton
	* glue/Makefile.am: added button.c to glue make
	* glue/makefile.win32: added button.c to win32 glue make
	* gtk/Button.custom: expose in_button GdkButton member

svn path=/trunk/gtk-sharp/; revision=19486
2003-10-30 18:19:59 +00:00

14 lines
367 B
Text

[DllImport("gtksharpglue")]
static extern int gtksharp_button_get_in_button (IntPtr button);
[DllImport("gtksharpglue")]
static extern void gtksharp_button_set_in_button (IntPtr button, int b);
public bool InButton {
get {
return gtksharp_button_get_in_button (Handle) == 1 ? true : false;
}
set {
gtksharp_button_set_in_button (Handle, value ? 1 : 0);
}
}