Enumerations | |
enum | Elm_Actionslider_Pos { ELM_ACTIONSLIDER_NONE = 0, ELM_ACTIONSLIDER_LEFT = 1, ELM_ACTIONSLIDER_CENTER = 2, ELM_ACTIONSLIDER_RIGHT = 4, ELM_ACTIONSLIDER_ALL = 7 } |
A position for indicators, magnets, and enabled items. More... | |
Functions | |
void | elm_actionslider_indicator_pos_set (Elm_Actionslider *obj, Elm_Actionslider_Pos pos) |
Actionslider position indicator. More... | |
Elm_Actionslider_Pos | elm_actionslider_indicator_pos_get (const Elm_Actionslider *obj) |
Actionslider position indicator. More... | |
void | elm_actionslider_magnet_pos_set (Elm_Actionslider *obj, Elm_Actionslider_Pos pos) |
Actionslider magnet position. More... | |
Elm_Actionslider_Pos | elm_actionslider_magnet_pos_get (const Elm_Actionslider *obj) |
Actionslider magnet position. More... | |
void | elm_actionslider_enabled_pos_set (Elm_Actionslider *obj, Elm_Actionslider_Pos pos) |
Actionslider enabled position. More... | |
Elm_Actionslider_Pos | elm_actionslider_enabled_pos_get (const Elm_Actionslider *obj) |
Actionslider enabled position. More... | |
const char * | elm_actionslider_selected_label_get (const Elm_Actionslider *obj) |
Get actionslider selected label. More... | |
Evas_Object * | elm_actionslider_add (Evas_Object *parent) |
Add a new actionslider to the parent. More... | |
An actionslider is a switcher for 2 or 3 labels with customizable magnet properties. The user drags and releases the indicator, to choose a label.
Labels occupy the following positions. a. Left b. Right c. 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.
This widget inherits from the Layout one, so that all the functions acting on it also work for actionslider objects.
This widget emits the following signals, besides the ones sent from Layout:
"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"). "language,changed"
- the program's language changed (since 1.9)Default text parts of the actionslider widget that you can use for are:
Supported elm_object common APIs.
See an example of actionslider usage here
enum Elm_Actionslider_Pos |
void elm_actionslider_indicator_pos_set | ( | Elm_Actionslider * | obj, |
Elm_Actionslider_Pos | pos | ||
) |
Actionslider position indicator.
[in] | obj | The object. |
[in] | pos | The position of the indicator. |
Elm_Actionslider_Pos elm_actionslider_indicator_pos_get | ( | const Elm_Actionslider * | obj | ) |
Actionslider position indicator.
[in] | obj | The object. |
void elm_actionslider_magnet_pos_set | ( | Elm_Actionslider * | obj, |
Elm_Actionslider_Pos | pos | ||
) |
Actionslider magnet position.
To make multiple positions magnets OR them together (e.g. ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT)
[in] | obj | The object. |
[in] | pos | Bit mask indicating the magnet positions. |
Elm_Actionslider_Pos elm_actionslider_magnet_pos_get | ( | const Elm_Actionslider * | obj | ) |
Actionslider magnet position.
[in] | obj | The object. |
void elm_actionslider_enabled_pos_set | ( | Elm_Actionslider * | obj, |
Elm_Actionslider_Pos | pos | ||
) |
Actionslider enabled position.
To set multiple positions as enabled OR them together(e.g. ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT).
[in] | obj | The object. |
[in] | pos | Bit mask indicating the enabled positions. |
Elm_Actionslider_Pos elm_actionslider_enabled_pos_get | ( | const Elm_Actionslider * | obj | ) |
Actionslider enabled position.
[in] | obj | The object. |
const char* elm_actionslider_selected_label_get | ( | const Elm_Actionslider * | obj | ) |
Get actionslider selected label.
[in] | obj | The object. |
Evas_Object* elm_actionslider_add | ( | Evas_Object * | parent | ) |
Add a new actionslider to the parent.
parent | The parent object |