32 #import "CoreGTK/CGTKToggleButton.h" 48 -(id)initWithLabel:(NSString*) label
50 self = [
super initWithGObject:(GObject *)gtk_toggle_button_new_with_label([label UTF8String])];
60 -(id)initWithMnemonic:(NSString*) label
62 self = [
super initWithGObject:(GObject *)gtk_toggle_button_new_with_mnemonic([label UTF8String])];
74 return GTK_TOGGLE_BUTTON([
self GOBJECT]);
79 return (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON([
self GOBJECT])) ? YES : NO);
84 return (gtk_toggle_button_get_inconsistent(GTK_TOGGLE_BUTTON([
self GOBJECT])) ? YES : NO);
89 return (gtk_toggle_button_get_mode(GTK_TOGGLE_BUTTON([
self GOBJECT])) ? YES : NO);
92 -(void)setActive:(BOOL) isActive
94 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON([
self GOBJECT]), (isActive ? TRUE : FALSE));
97 -(void)setInconsistent:(BOOL) setting
99 gtk_toggle_button_set_inconsistent(GTK_TOGGLE_BUTTON([
self GOBJECT]), (setting ? TRUE : FALSE));
102 -(void)setMode:(BOOL) drawIndicator
104 gtk_toggle_button_set_mode(GTK_TOGGLE_BUTTON([
self GOBJECT]), (drawIndicator ? TRUE : FALSE));
109 gtk_toggle_button_toggled(GTK_TOGGLE_BUTTON([
self GOBJECT]));
id initWithGObject:(GObject *obj)