![]() |
![]() |
![]() |
Mx Toolkit Reference Manual | ![]() |
---|---|---|---|---|
MxMenu; 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 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.
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
.
menu : |
A MxMenu |