Functions | |
| Evas_Object * | elm_menu_add (Evas_Object *parent) |
| Add a new menu to the parent. More... | |
| void | elm_menu_parent_set (Evas_Object *obj, Evas_Object *parent) |
| Set the parent for the given menu widget. More... | |
| Evas_Object * | elm_menu_parent_get (const Evas_Object *obj) |
| Get the parent for the given menu widget. More... | |
A menu is a list of items displayed above its parent. When the menu is showing its parent is darkened. Each item can have a sub-menu. The menu object can be used to display a menu on a right click event, in a toolbar, anywhere.
Signals that you can add callbacks for are:
"clicked" - the user clicked the empty space in the menu to dismiss. "dismissed" - the user clicked the empty space in the menu to dismiss (since 1.8) "language,changed" - the program's language changed (since 1.9)Default content parts of the menu items that you can use for are:
"default" - A main content of the menu itemDefault text parts of the menu items that you can use for are:
"default" - A label in the menu itemSupported elm_object_item common APIs.
| Evas_Object* elm_menu_add | ( | Evas_Object * | parent | ) |
Add a new menu to the parent.
| parent | The parent object. |
References elm_layout_content_set(), and elm_menu_parent_set().
Referenced by elm_win_util_dialog_add().
| Evas_Object* elm_menu_parent_get | ( | const Evas_Object * | obj | ) |
Get the parent for the given menu widget.
| obj | The menu object. |
References elm_icon_add(), elm_layout_content_set(), and elm_object_item_text_set.
| void elm_menu_parent_set | ( | Evas_Object * | obj, |
| Evas_Object * | parent | ||
| ) |
Set the parent for the given menu widget.
| obj | The menu object. |
| parent | The new parent. |
References elm_hover_parent_set().
Referenced by elm_menu_add(), and elm_toolbar_transverse_expanded_get().