| Mx-GTK Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals | ||||
MxGtkLightSwitch; MxGtkLightSwitchClass; gboolean mx_gtk_light_switch_get_active (MxGtkLightSwitch *lightswitch); GtkWidget * mx_gtk_light_switch_new (void); void mx_gtk_light_switch_set_active (MxGtkLightSwitch *lightswitch,gboolean active);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkDrawingArea +----MxGtkLightSwitch
typedef struct _MxGtkLightSwitch MxGtkLightSwitch;
The contents of this structure are private and should only be accessed through the public API.
typedef struct {
GtkDrawingAreaClass parent_class;
void (*switch_flipped) (MxGtkLightSwitch *lightswitch, gboolean state);
} MxGtkLightSwitchClass;
gboolean mx_gtk_light_switch_get_active (MxGtkLightSwitch *lightswitch);
Get the value of the "active" property
|
A MxGtkLightSwitch |
Returns : |
TRUE if the switch is "on" |
GtkWidget * mx_gtk_light_switch_new (void);
Create a MxGtkLightSwitch
Returns : |
a newly allocated MxGtkLightSwitch |
void mx_gtk_light_switch_set_active (MxGtkLightSwitch *lightswitch,gboolean active);
Set the value of the "active" property
|
A MxGtkLightSwitch |
|
TRUE to set the switch to its ON state |
"active" property"active" gboolean : Read / Write
Is the light switch on or not.
Default value: FALSE
"switch-flipped" signalvoid user_function (MxGtkLightSwitch *mxgtklightswitch,
gboolean arg1,
gpointer user_data) : Run First