Actionslider¶
Widget description¶
An actionslider is a switcher for two or three labels with customizable magnet properties.
The user drags and releases the indicator, to choose a label.
Labels can occupy the following positions.
Left
Right
Center
Positions can be enabled or disabled.
Magnets can be set on the above positions.
When the indicator is released, it will move to its nearest “enabled and magnetized” position.
Emitted signals¶
selected
- when user selects an enabled position (the label is passed as event info)”.pos_changed
- when the indicator reaches any of the positions(“left”, “right” or “center”).
Layout text parts¶
indicator
- An indicator label of the actionsliderleft
- A left label of the actionsliderright
- A right label of the actionslidercenter
- A center label of the actionslider
Enumerations¶
Inheritance diagram¶
- class efl.elementary.Actionslider(Object parent, *args, **kwargs)¶
Bases:
efl.elementary.__init__.LayoutClass
This is the class that actually implements the widget.
- Parameters
parent (
efl.evas.Object
) – Parent object**kwargs – All the remaining keyword arguments are interpreted as properties of the instance
- callback_pos_changed_add(func, *args, **kwargs)¶
Called when the indicator reaches any of the positions left, right or center. The label is passed as event info.
- callback_pos_changed_del(func)¶
- callback_selected_add(func, *args, **kwargs)¶
Called when user selects an enabled position. The label is passed as event info.
- callback_selected_del(func)¶
- enabled_pos¶
The actionslider enabled position. To set multiple positions as enabled
or
them together(e.g.:ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT
).Note
All positions are enabled by default.
- enabled_pos_get()¶
- enabled_pos_set(pos)¶
- indicator_pos¶
Indicator position.
- indicator_pos_get()¶
- indicator_pos_set(pos)¶
- magnet_pos¶
The actionslider magnet position. To make multiple positions magnets
or
them together(e.g.:ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT
)
- magnet_pos_get()¶
- magnet_pos_set(pos)¶
- selected_label¶
Selected label.
- Type
string
- selected_label_get()¶