efl/src/lib/elementary/elm_actionslider.eo

88 lines
2.4 KiB
Plaintext
Raw Normal View History

enum Elm.Actionslider.Pos
{
[[A position for indicators, magnets, and enabled items.]]
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.]]
}
class Elm.Actionslider (Elm.Layout, Efl.Ui.Selectable)
2014-03-18 05:27:07 -07:00
{
[[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. When the indicator is released,
it will move to its nearest "enabled and magnetized" position.
]]
legacy_prefix: elm_actionslider;
2014-03-18 05:27:07 -07:00
eo_prefix: elm_obj_actionslider;
event_prefix: elm_actionslider;
2015-05-07 09:32:53 -07:00
methods {
@property indicator_pos {
[[Actionslider position indicator]]
2014-03-18 05:27:07 -07:00
set {
}
get {
}
values {
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 {
[[Actionslider magnet position.]]
2014-03-18 05:27:07 -07:00
set {
[[To make multiple positions magnets OR them together (e.g.
ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT)
2015-07-02 06:54:07 -07:00
]]
2014-03-18 05:27:07 -07:00
}
get {
}
values {
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 {
[[Actionslider enabled position.]]
2014-03-18 05:27:07 -07:00
set {
[[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 {
}
values {
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.]]
return: string; [[Selected label]]
2014-03-18 05:27:07 -07:00
}
}
}
implements {
class.constructor;
Eo.Base.constructor;
Efl.Canvas.Group.group_add;
Elm.Widget.focus_next_manager_is;
Elm.Widget.focus_direction_manager_is;
Elm.Widget.theme_apply;
Elm.Layout.text.set;
Elm.Layout.text.get;
Elm.Layout.text_aliases.get;
Elm.Layout.sizing_eval;
2014-03-18 05:27:07 -07:00
}
events {
pos_changed; [[The position of the actionslider has changed]]
2014-03-18 05:27:07 -07:00
}
}