![]() |
![]() |
![]() |
Moblin UI Toolkit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
MxGtkLightSwitch; void mx_gtk_light_switch_set_active (MxGtkLightSwitch *lightswitch, gboolean active); gboolean mx_gtk_light_switch_get_active (MxGtkLightSwitch *lightswitch); GtkWidget* mx_gtk_light_switch_new (void);
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.
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 |
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 |
"switch-flipped"
signalvoid user_function (MxGtkLightSwitch *mxgtklightswitch, gboolean arg1, gpointer user_data) : Run First
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |