A ctxpopup is a widget that, when shown, pops up a list of items. It automatically chooses an area inside its parent object’s view to optimally fit into it. In the default theme, it will also point an arrow to it’s top left position at the time one shows it. Ctxpopup items have a label and/or an icon. It is intended for a small number of items (hence the use of list, not genlist).
Signals that you can add callbacks for are:
Default content parts of the ctxpopup widget that you can use for are:
Default content parts of the ctxpopup items that you can use for are:
Default text parts of the ctxpopup items that you can use for are:
Note
Ctxpopup is a specialization of Hover.
Arrow is pointing down
Arrow is pointing right
Arrow is pointing left
Arrow is pointing up
Arrow direction is unknown
Bases: efl.elementary.layout_class.LayoutClass
This is the class that actually implements the widget.
Changed in version 1.8: Inherits from LayoutClass
the ctxpopup was dismissed
When the ctxpopup has received focus.
New in version 1.8.
This is called when the program’s language is changed.
When the ctxpopup has lost focus.
New in version 1.8.
Clear all items in the given ctxpopup object.
Get the current direction of a ctxpopup.
Warning
Only once the ctxpopup is shown can the direction be determined
| Type : | Ctxpopup arrow directions |
|---|
The direction priority order of a ctxpopup.
This functions gives a chance to user to set the priority of ctxpopup showing direction. This doesn’t guarantee the ctxpopup will appear in the requested direction.
| Type : | (first, second, third, fourth) Ctxpopup arrow directions |
|---|
Dismiss a ctxpopup object
Use this function to simulate clicking outside the ctxpopup to dismiss it. In this way, the ctxpopup will be hidden and the “clicked” signal will be emitted.
Ctxpopup objects orientation.
| Type : | bool |
|---|
A constructor for a CtxpopupItem.
| See : | CtxpopupItem.append_to() |
|---|
Bases: efl.elementary.object_item.ObjectItem
An item for Ctxpopup widget.
Warning
Ctxpopup can’t hold both an item list and a content at the same time. When an item is added, any previous content will be removed.
| Parameters: |
|
|---|---|
| Returns: | The item added or None, on errors |
| Return type: |
Add a new item to a ctxpopup object.
Warning
Ctxpopup can’t hold both an item list and a content at the same time. When an item is added, any previous content will be removed.
See also
| Parameters: | ctxpopup (Ctxpopup) – The Ctxpopup widget this item is to be appended on |
|---|---|
| Returns: | The item added or None, on errors |
| Return type: | CtxpopupItem |