Enter search terms or a module, class or function name.
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:
Default content parts of the menu items that you can use for are:
Default text parts of the menu items that you can use for are:
Bases: efl.elementary.object.Object
This is the class that actually implements the widget.
The user clicked the empty space in the menu to dismiss.
the user clicked the empty space in the menu to dismiss
New in version 1.8.
Close a opened menu
Hides the menu and all it’s sub-menus.
The first item in the menu
| Type : | MenuItem |
|---|
Add an item at the end of the given menu widget
| Parameters: |
|
|---|---|
| Returns: | Returns the new item. |
| Return type: |
Add a separator item to menu under parent.
This item is a Separator.
| Parameters: | parent (Object) – The item to add the separator under |
|---|---|
| Returns: | The created item or None on failure |
| Return type: | MenuSeparatorItem |
Move the menu to a new position
Sets the top-left position of the menu to (x,``y``).
Note
x and y coordinates are relative to parent.
| Parameters: |
|
|---|
Bases: efl.elementary.object_item.ObjectItem
An item for the Menu widget.
The standard icon name of a menu item
Once this icon is set, any previously set icon will be deleted.
| Type : | string |
|---|
Get the position of a menu item
This function returns the index position of a menu item in a menu. For a sub-menu, this number is relative to the first item in the sub-menu.
Note
Index values begin with 0
| Type : | int |
|---|
Returns whether the item is a separator.
See also
| Type : | bool |
|---|
Get the Evas_Object of an Elm_Object_Item
Warning
Don’t manipulate this object!
| Returns: | The edje object containing the swallowed content |
|---|
The selected state of the item.
| Type : | bool |
|---|
Bases: efl.elementary.object_item.ObjectItem
A separator type menu item.
Returns whether the item is a separator.
| Type : | bool |
|---|