| Mx Toolkit Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Signals | ||||
MxMenu; struct MxMenuClass; ClutterActor * mx_menu_new (void); void mx_menu_add_action (MxMenu *menu,MxAction *action); void mx_menu_remove_action (MxMenu *menu,MxAction *action); void mx_menu_remove_all (MxMenu *menu); void mx_menu_show_with_position (MxMenu *menu,gfloat x,gfloat y);
GObject +----GInitiallyUnowned +----ClutterActor +----MxWidget +----MxFloatingWidget +----MxMenu
MxMenu implements ClutterContainer, ClutterScriptable, ClutterAnimatable, AtkImplementorIface, MxStylable and MxFocusable.
MxMenu displays a list of user actions, defined by a list of MxActions. The menu list will appear above all other actors.
typedef struct _MxMenu MxMenu;
The contents of this structure are private and should only be accessed through the public API.
struct MxMenuClass {
MxFloatingWidgetClass parent_class;
void (*action_activated) (MxMenu *menu,
MxAction *action);
/* padding for future expansion */
void (*_padding_0) (void);
void (*_padding_1) (void);
void (*_padding_2) (void);
void (*_padding_3) (void);
void (*_padding_4) (void);
};
ClutterActor * mx_menu_new (void);
Create a new MxMenu
Returns : |
a newly allocated MxMenu |
void mx_menu_add_action (MxMenu *menu,MxAction *action);
Append action to menu.
void mx_menu_remove_action (MxMenu *menu,MxAction *action);
Remove action from menu.
void mx_menu_remove_all (MxMenu *menu);
Remove all the actions from menu.
|
A MxMenu |