![]() |
![]() |
![]() |
Mx Toolkit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
struct MxToolbar; ClutterActor * mx_toolbar_new (void
); void mx_toolbar_set_has_close_button (MxToolbar *toolbar
,gboolean has_close_button
); gboolean mx_toolbar_get_has_close_button (MxToolbar *toolbar
);
GObject +----GInitiallyUnowned +----ClutterActor +----MxWidget +----MxBin +----MxToolbar
MxToolbar implements ClutterScriptable, MxStylable, ClutterContainer and MxFocusable.
An MxToolbar is an area that contains items at the top of an MxWindow. It can optionally include a close button that will close the window.
struct MxToolbar;
The contents of this structure are private and should only be accessed through the public API.
ClutterActor * mx_toolbar_new (void
);
Create a new MxToolbar. This is not normally necessary if using MxWindow, where mx_window_get_toolbar should be used to retrieve the toolbar instead.
Returns : |
A newly allocated MxToolbar |
void mx_toolbar_set_has_close_button (MxToolbar *toolbar
,gboolean has_close_button
);
Set the "has-close-button" property
gboolean mx_toolbar_get_has_close_button (MxToolbar *toolbar
);
Get the value of the "has-close-button" property.
|
A MxToolbar |
Returns : |
the current value of the "hast-close-button" property. |
"has-close-button"
property"has-close-button" gboolean : Read / Write
Whether to show a close button on the toolbar.
Default value: TRUE
"close-button-clicked"
signalgboolean user_function (MxToolbar *Returns,
gpointer user_data) : Run Last
Emitted when the close button of the toolbar is clicked.
Normally, the parent stage will be closed when the close button is clicked. Return TRUE from this handler to prevent the stage from being destroyed.
|
user data set when the signal handler was connected. |
Returns : |
TRUE to prevent the parent stage being destroyed. |