![]() |
![]() |
![]() |
Mx Toolkit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
MxActionButton; ClutterActor * mx_action_button_new (MxAction *action
); void mx_action_button_set_action (MxActionButton *button
,MxAction *action
); MxAction * mx_action_button_get_action (MxActionButton *button
); void mx_action_button_set_icon_position (MxActionButton *button
,MxPosition position
); MxPosition mx_action_button_get_icon_position (MxActionButton *button
); void mx_action_button_set_icon_visible (MxActionButton *button
,gboolean visible
); gboolean mx_action_button_get_icon_visible (MxActionButton *button
); void mx_action_button_set_text_visible (MxActionButton *button
,gboolean visible
); gboolean mx_action_button_get_text_visible (MxActionButton *button
);
GObject +----GInitiallyUnowned +----ClutterActor +----MxWidget +----MxBin +----MxButton +----MxActionButton
MxActionButton implements ClutterScriptable, ClutterAnimatable, AtkImplementorIface, MxStylable, ClutterContainer and MxFocusable.
"action" MxAction* : Read / Write "icon-position" MxPosition : Read / Write "icon-visible" gboolean : Read / Write "text-visible" gboolean : Read / Write
typedef struct _MxActionButton MxActionButton;
The contents of this structure are private and should only be accessed through the public API.
ClutterActor * mx_action_button_new (MxAction *action
);
Creates a new MxActionButton that activates action
when clicked.
|
A MxAction |
Returns : |
A newly created MxActionButton that should be unreffed when finished with. |
void mx_action_button_set_action (MxActionButton *button
,MxAction *action
);
Sets action
as the action for button
. Button
will take its label and
icon from action
.
MxAction * mx_action_button_get_action (MxActionButton *button
);
Retrieves the MxAction associated with button
.
|
A MxActionButton |
Returns : |
A MxAction |
void mx_action_button_set_icon_position (MxActionButton *button
,MxPosition position
);
Sets the icon position, relative to the text on the button.
|
A MxActionButton |
|
A MxPosition |
MxPosition mx_action_button_get_icon_position (MxActionButton *button
);
Retrieves the icon's relative position to the text.
|
A MxActionButton |
Returns : |
A MxPosition |
void mx_action_button_set_icon_visible (MxActionButton *button
,gboolean visible
);
Sets the visibility of the icon associated with the button's action.
|
A MxActionButton |
|
TRUE if the icon should be visible
|
gboolean mx_action_button_get_icon_visible (MxActionButton *button
);
Retrieves the visibility of the icon associated with the button's action.
|
A MxActionButton |
Returns : |
TRUE if the icon is visible, FALSE otherwise
|
void mx_action_button_set_text_visible (MxActionButton *button
,gboolean visible
);
Sets the visibility of the text associated with the button's action.
|
A MxActionButton |
|
TRUE if the text should be visible
|
gboolean mx_action_button_get_text_visible (MxActionButton *button
);
Retrieves the visibility of the text associated with the button's action.
|
A MxActionButton |
Returns : |
TRUE if the text is visible, FALSE otherwise
|
"icon-position"
property"icon-position" MxPosition : Read / Write
The position of the icon, relative to the text.
Default value: MX_POSITION_LEFT
"icon-visible"
property"icon-visible" gboolean : Read / Write
Whether to show the icon.
Default value: TRUE
"text-visible"
property"text-visible" gboolean : Read / Write
Whether to show the text.
Default value: TRUE