Top | ![]() |
![]() |
![]() |
![]() |
ClutterActor * | mx_toolbar_new () |
void | mx_toolbar_set_has_close_button () |
gboolean | mx_toolbar_get_has_close_button () |
GObject ╰── GInitiallyUnowned ╰── ClutterActor ╰── MxWidget ╰── MxBin ╰── MxToolbar
MxToolbar implements ClutterContainer, ClutterScriptable, ClutterAnimatable, AtkImplementorIface, MxStylable 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.
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.
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.
struct MxToolbar;
The contents of this structure are private and should only be accessed through the public API.
struct MxToolbarClass { MxBinClass parent_class; /* signals */ gboolean (*close_button_clicked) (MxToolbar *toolbar); /* padding for future expansion */ void (*_padding_0) (void); void (*_padding_1) (void); void (*_padding_2) (void); void (*_padding_3) (void); void (*_padding_4) (void); };
“close-button-clicked”
signalgboolean user_function (MxToolbar *Returns, gpointer user_data)
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.
Flags: Run Last