![]() |
![]() |
![]() |
Netbook Toolkit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
NbtkExpander; NbtkWidget* nbtk_expander_new (void); void nbtk_expander_set_label (NbtkExpander *expander, const gchar *label); gboolean nbtk_expander_get_expanded (NbtkExpander *expander); void nbtk_expander_set_expanded (NbtkExpander *expander, gboolean expanded);
GObject +----GInitiallyUnowned +----ClutterActor +----NbtkWidget +----NbtkBin +----NbtkExpander
NbtkExpander implements ClutterScriptable, NbtkStylable and ClutterContainer.
NbtkExpander is a single child container that allows the user to show or hide its child.
typedef struct _NbtkExpander NbtkExpander;
The contents of the this structure are private and should only be accessed through the public API.
NbtkWidget* nbtk_expander_new (void);
Creates a new NbtkExpander
Returns : |
the newly allocated NbtkExpander |
void nbtk_expander_set_label (NbtkExpander *expander, const gchar *label);
Sets the text displayed as the title of the expander
|
A NbtkExpander |
|
string to set as the expander label |
gboolean nbtk_expander_get_expanded (NbtkExpander *expander);
Get the current state of the expander
|
a NbtkExpander |
Returns : |
TRUE if the expander is open, FALSE if it is closed |
void nbtk_expander_set_expanded (NbtkExpander *expander, gboolean expanded);
Set the state of the expander. This will cause the expander to open and close if the state is changed.
|
A NbtkExpander |
|
the state of the expander to set |
"expanded"
property"expanded" gboolean : Read / Write
Indicates that the expander is open or closed.
Default value: FALSE
"expand-complete"
signalvoid user_function (NbtkExpander *expander, gpointer user_data) : Run Last
Emitted after the expand animation finishes. Check the "expanded" property of the NbtkExpander to determine if the expander is expanded or not.
|
the object that received the signal |
|
user data set when the signal handler was connected. |