Top | ![]() |
![]() |
![]() |
![]() |
ClutterActor * | mx_expander_new () |
void | mx_expander_set_label () |
gboolean | mx_expander_get_expanded () |
void | mx_expander_set_expanded () |
GObject ╰── GInitiallyUnowned ╰── ClutterActor ╰── MxWidget ╰── MxBin ╰── MxExpander
MxExpander implements ClutterContainer, ClutterScriptable, ClutterAnimatable, AtkImplementorIface, MxStylable and MxFocusable.
MxExpander is a single child container that allows the user to show or hide its child. It displays a clickable bar (with a text label), which (by default) when clicked toggles display of the child.
Figure 3. MxExpander in its expanded state
The image shows an MxExpander with the “expanded” property set to TRUE.
Figure 4. MxExpander in its contracted state
The image shows an MxExpander with the “expanded” property set to FALSE.
void mx_expander_set_label (MxExpander *expander
,const gchar *label
);
Sets the text displayed as the title of the expander
gboolean
mx_expander_get_expanded (MxExpander *expander
);
Get the current state of the expander (the value of “expanded”)
void mx_expander_set_expanded (MxExpander *expander
,gboolean expanded
);
Set the state (the “expanded” property) of the expander. This will cause the expander to open or close.
typedef struct _MxExpander MxExpander;
The contents of the this structure are private and should only be accessed through the public API.
typedef struct { MxBinClass parent_class; /* signals */ void (* expand_complete) (MxExpander *expander); /* padding for future expansion */ void (*_padding_0) (void); void (*_padding_1) (void); void (*_padding_2) (void); void (*_padding_3) (void); void (*_padding_4) (void); } MxExpanderClass;
“expanded”
property“expanded” gboolean
Indicates that the expander is open or closed.
Flags: Read / Write
Default value: FALSE
“expand-complete”
signalvoid user_function (MxExpander *expander, gpointer user_data)
Emitted after the expand animation finishes. Check the "expanded" property of the MxExpander to determine if the expander is expanded or not.
expander |
the object that received the signal |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last