![]() |
![]() |
![]() |
Netbook Toolkit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
NbtkGtkLightSwitch; void nbtk_gtk_light_switch_set_active (NbtkGtkLightSwitch *lightswitch, gboolean active); gboolean nbtk_gtk_light_switch_get_active (NbtkGtkLightSwitch *lightswitch); GtkWidget* nbtk_gtk_light_switch_new (void);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkDrawingArea +----NbtkGtkLightSwitch
typedef struct _NbtkGtkLightSwitch NbtkGtkLightSwitch;
The contents of this structure are private and should only be accessed through the public API.
void nbtk_gtk_light_switch_set_active (NbtkGtkLightSwitch *lightswitch, gboolean active);
Set the value of the "active" property
|
A NbtkGtkLightSwitch |
|
TRUE to set the switch to its ON state |
gboolean nbtk_gtk_light_switch_get_active (NbtkGtkLightSwitch *lightswitch);
Get the value of the "active" property
|
A NbtkGtkLightSwitch |
Returns : |
TRUE if the switch is "on" |
GtkWidget* nbtk_gtk_light_switch_new (void);
Create a NbtkGtkLightSwitch
Returns : |
a newly allocated NbtkGtkLightSwitch |