2015-07-05 07:53:37 -07:00
|
|
|
enum Elm.Actionslider.Pos
|
|
|
|
{
|
2015-07-08 07:49:38 -07:00
|
|
|
[[A position for indicators, magnets, and enabled items.]]
|
2015-07-05 07:53:37 -07:00
|
|
|
legacy: elm_actionslider;
|
|
|
|
|
|
|
|
none = 0, [[No position is set.]]
|
|
|
|
left = 1 << 0, [[Left position.]]
|
|
|
|
center = 1 << 1, [[Center position.]]
|
|
|
|
right = 1 << 2, [[Right position.]]
|
|
|
|
all = (1 << 3) - 1 [[All positions for left/center/right.]]
|
|
|
|
}
|
|
|
|
|
2015-05-06 05:47:21 -07:00
|
|
|
class Elm.Actionslider (Elm.Layout, Evas.Selectable_Interface)
|
2014-03-18 05:27:07 -07:00
|
|
|
{
|
|
|
|
eo_prefix: elm_obj_actionslider;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property indicator_pos {
|
2014-03-18 05:27:07 -07:00
|
|
|
set {
|
2015-07-02 06:54:07 -07:00
|
|
|
[[Set actionslider indicator position.]]
|
2014-03-18 05:27:07 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-07-02 06:54:07 -07:00
|
|
|
[[Get actionslider indicator position.]]
|
2014-03-18 05:27:07 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-07-05 07:53:37 -07:00
|
|
|
pos: Elm.Actionslider.Pos; [[The position of the indicator.]]
|
2014-03-18 05:27:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property magnet_pos {
|
2014-03-18 05:27:07 -07:00
|
|
|
set {
|
2015-07-02 06:54:07 -07:00
|
|
|
[[Set actionslider magnet position.
|
2014-03-18 05:27:07 -07:00
|
|
|
|
2015-07-02 06:54:07 -07:00
|
|
|
To make multiple positions magnets OR them together (e.g.
|
|
|
|
ELM_ACTIONSLIDER_LEFT | #ELM_ACTIONSLIDER_RIGHT)
|
|
|
|
]]
|
2014-03-18 05:27:07 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-07-02 06:54:07 -07:00
|
|
|
[[Get actionslider magnet position.]]
|
2014-03-18 05:27:07 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-07-05 07:53:37 -07:00
|
|
|
pos: Elm.Actionslider.Pos; [[Bit mask indicating the magnet positions.]]
|
2014-03-18 05:27:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property enabled_pos {
|
2014-03-18 05:27:07 -07:00
|
|
|
set {
|
2015-07-02 06:54:07 -07:00
|
|
|
[[Set actionslider enabled position. To set multiple positions as
|
|
|
|
enabled OR them together(e.g.
|
|
|
|
#ELM_ACTIONSLIDER_LEFT | #ELM_ACTIONSLIDER_RIGHT).
|
2014-03-18 05:27:07 -07:00
|
|
|
|
2015-07-02 06:54:07 -07:00
|
|
|
Note: All the positions are enabled by default.
|
|
|
|
]]
|
2014-03-18 05:27:07 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-07-02 06:54:07 -07:00
|
|
|
[[Get actionslider enabled position.]]
|
2014-03-18 05:27:07 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-07-05 07:53:37 -07:00
|
|
|
pos: Elm.Actionslider.Pos; [[Bit mask indicating the enabled positions.]]
|
2014-03-18 05:27:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property selected_label {
|
2014-03-18 05:27:07 -07:00
|
|
|
get {
|
2015-07-02 06:54:07 -07:00
|
|
|
[[Get actionslider selected label.]]
|
2014-08-11 07:46:11 -07:00
|
|
|
return: const(char)*;
|
2014-03-18 05:27:07 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2014-06-27 15:36:05 -07:00
|
|
|
Eo.Base.constructor;
|
|
|
|
Evas.Object_Smart.add;
|
2015-04-22 04:33:10 -07:00
|
|
|
Elm.Widget.focus_next_manager_is;
|
|
|
|
Elm.Widget.focus_direction_manager_is;
|
|
|
|
Elm.Widget.theme_apply;
|
2014-12-09 10:41:16 -08:00
|
|
|
Elm.Layout.text.set;
|
|
|
|
Elm.Layout.text.get;
|
2015-04-22 04:37:40 -07:00
|
|
|
Elm.Layout.text_aliases.get;
|
|
|
|
Elm.Layout.sizing_eval;
|
2014-03-18 05:27:07 -07:00
|
|
|
}
|
|
|
|
events {
|
2015-05-06 05:47:21 -07:00
|
|
|
pos_changed;
|
2014-03-18 05:27:07 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|