2017-08-07 19:48:31 -07:00
|
|
|
class Elm.Flipselector (Efl.Ui.Layout, Efl.Ui.Spin,
|
2016-05-12 03:37:43 -07:00
|
|
|
Elm.Interface.Atspi_Widget_Action,
|
2016-06-10 01:58:17 -07:00
|
|
|
Efl.Ui.Selectable)
|
2014-03-30 00:34:05 -07:00
|
|
|
{
|
2016-11-21 04:56:47 -08:00
|
|
|
[[Elementary flipselector class]]
|
2016-05-12 09:06:04 -07:00
|
|
|
legacy_prefix: elm_flipselector;
|
2014-03-30 00:34:05 -07:00
|
|
|
eo_prefix: elm_obj_flipselector;
|
2016-05-17 09:14:47 -07:00
|
|
|
event_prefix: elm_flipselector;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property items {
|
2014-03-30 00:34:05 -07:00
|
|
|
get {
|
2015-07-29 06:44:07 -07:00
|
|
|
[[Get the internal list of items in a given flip selector widget.
|
|
|
|
|
|
|
|
This list is not to be modified in any way and must not be
|
|
|
|
freed. Use the list members with functions like
|
|
|
|
\@ref elm_object_item_text_set,
|
|
|
|
\@ref elm_object_item_text_get,
|
|
|
|
\@ref elm_object_item_del,
|
|
|
|
\@ref elm_flipselector_item_selected_get,
|
|
|
|
\@ref elm_flipselector_item_selected_set.
|
|
|
|
|
|
|
|
Warning: This list is only valid until $obj object's internal
|
|
|
|
items list is changed. It should be fetched again with another
|
|
|
|
call to this function when changes happen.
|
|
|
|
]]
|
2016-11-21 04:56:47 -08:00
|
|
|
return: const(list<Elm.Widget.Item>); [[List of items]]
|
2014-03-30 00:34:05 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property first_item {
|
2014-03-30 00:34:05 -07:00
|
|
|
get {
|
2015-07-29 06:44:07 -07:00
|
|
|
[[Get the first item in the given flip selector widget's list of
|
|
|
|
items.
|
2014-03-30 00:34:05 -07:00
|
|
|
|
2015-07-29 06:44:07 -07:00
|
|
|
See also @.item_append,
|
|
|
|
@.last_item.get.
|
|
|
|
]]
|
2016-05-23 07:41:28 -07:00
|
|
|
return: Elm.Widget.Item; [[The first item or $null, if it has no items (and on
|
2015-07-29 06:44:07 -07:00
|
|
|
errors).]]
|
2014-03-30 00:34:05 -07:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property last_item {
|
2014-03-30 00:34:05 -07:00
|
|
|
get {
|
2015-07-29 06:44:07 -07:00
|
|
|
[[Get the last item in the given flip selector widget's list of
|
|
|
|
items.
|
2014-03-30 00:34:05 -07:00
|
|
|
|
2015-07-29 06:44:07 -07:00
|
|
|
See also @.item_prepend,
|
|
|
|
@.first_item.get.
|
|
|
|
]]
|
2016-05-23 07:41:28 -07:00
|
|
|
return: Elm.Widget.Item; [[The last item or $null, if it has no items (and on
|
2015-07-29 06:44:07 -07:00
|
|
|
errors).]]
|
2014-03-30 00:34:05 -07:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property selected_item {
|
2014-03-30 00:34:05 -07:00
|
|
|
get {
|
2015-07-29 06:44:07 -07:00
|
|
|
[[Get the currently selected item in a flip selector widget.]]
|
2016-05-23 07:41:28 -07:00
|
|
|
return: Elm.Widget.Item; [[The selected item or $null, if the widget has no items
|
2015-07-29 06:44:07 -07:00
|
|
|
(and on errors).]]
|
2014-03-30 00:34:05 -07:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
item_prepend {
|
2015-07-29 06:44:07 -07:00
|
|
|
[[Prepend a (text) item to a flip selector widget
|
2014-03-30 00:34:05 -07:00
|
|
|
|
2015-07-29 06:44:07 -07:00
|
|
|
The widget's list of labels to show will be prepended with the
|
|
|
|
given value. If the user wishes so, a callback function pointer
|
|
|
|
can be passed, which will get called when this same item is
|
|
|
|
selected.
|
2014-03-30 00:34:05 -07:00
|
|
|
|
2015-07-29 06:44:07 -07:00
|
|
|
Note: The current selection won't be modified by prepending
|
|
|
|
an element to the list.
|
2014-03-30 00:34:05 -07:00
|
|
|
|
2015-07-29 06:44:07 -07:00
|
|
|
Note: The maximum length of the text label is going to be
|
|
|
|
determined by the widget's theme. Strings larger than
|
|
|
|
that value are going to be truncated.
|
|
|
|
]]
|
2016-11-21 04:56:47 -08:00
|
|
|
return: Elm.Widget.Item; [[New widget item]]
|
2014-03-30 00:34:05 -07:00
|
|
|
params {
|
2016-05-31 08:02:26 -07:00
|
|
|
@in label: string; [[The (text) label of the new item.]]
|
2015-07-29 06:44:07 -07:00
|
|
|
@in func: Evas_Smart_Cb @optional; [[Convenience callback function to take place when
|
|
|
|
item is selected.]]
|
2016-06-02 04:54:59 -07:00
|
|
|
@in data: void_ptr @optional; [[Data passed to $func, above.]]
|
2014-03-30 00:34:05 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
flip_next {
|
2015-07-29 06:44:07 -07:00
|
|
|
[[Programmatically select the next item of a flip selector widget
|
2014-03-30 00:34:05 -07:00
|
|
|
|
2015-07-29 06:44:07 -07:00
|
|
|
Note: The selection will be animated. Also, if it reaches the
|
|
|
|
end of its list of member items, it will continue with the first
|
|
|
|
one onwards.
|
|
|
|
]]
|
2014-03-30 00:34:05 -07:00
|
|
|
}
|
|
|
|
item_append {
|
2015-07-29 06:44:07 -07:00
|
|
|
[[Append a (text) item to a flip selector widget
|
2014-03-30 00:34:05 -07:00
|
|
|
|
2015-07-29 06:44:07 -07:00
|
|
|
The widget's list of labels to show will be appended with the
|
|
|
|
given value. If the user wishes so, a callback function pointer
|
|
|
|
can be passed, which will get called when this same item is
|
|
|
|
selected.
|
2014-03-30 00:34:05 -07:00
|
|
|
|
2015-07-29 06:44:07 -07:00
|
|
|
Note: The current selection won't be modified by appending an
|
|
|
|
element to the list.
|
2014-03-30 00:34:05 -07:00
|
|
|
|
2015-07-29 06:44:07 -07:00
|
|
|
Note: The maximum length of the text label is going to be
|
|
|
|
determined by the widget's theme. Strings larger than
|
|
|
|
that value are going to be truncated.
|
|
|
|
]]
|
2016-11-21 04:56:47 -08:00
|
|
|
return: Elm.Widget.Item; [[New widget item]]
|
2014-03-30 00:34:05 -07:00
|
|
|
params {
|
2016-05-31 08:02:26 -07:00
|
|
|
@in label: string; [[The (text) label of the new item.]]
|
2015-07-29 06:44:07 -07:00
|
|
|
@in func: Evas_Smart_Cb @optional; [[Convenience callback function to take place when
|
|
|
|
item is selected.]]
|
2016-06-02 04:54:59 -07:00
|
|
|
@in data: const(void_ptr) @optional; [[Data passed to $func, above.]]
|
2014-03-30 00:34:05 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
flip_prev {
|
2015-07-29 06:44:07 -07:00
|
|
|
[[Programmatically select the previous item of a flip selector
|
|
|
|
widget
|
2014-03-30 00:34:05 -07:00
|
|
|
|
2015-07-29 06:44:07 -07:00
|
|
|
Note: The selection will be animated. Also, if it reaches the
|
|
|
|
beginning of its list of member items, it will continue with the
|
|
|
|
last one backwards.
|
|
|
|
]]
|
2014-03-30 00:34:05 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.constructor;
|
2015-04-22 04:33:10 -07:00
|
|
|
Elm.Widget.theme_apply;
|
2017-01-01 23:48:17 -08:00
|
|
|
Elm.Widget.widget_event;
|
2017-01-11 07:35:03 -08:00
|
|
|
Efl.Ui.Spin.min_max { get; set; }
|
|
|
|
Efl.Ui.Spin.step { get; set; }
|
|
|
|
Efl.Ui.Spin.value { get; set; }
|
|
|
|
Efl.Ui.Spin.interval { get; set; }
|
2016-12-27 10:15:41 -08:00
|
|
|
Elm.Interface.Atspi_Widget_Action.elm_actions { get; }
|
2014-03-30 00:34:05 -07:00
|
|
|
}
|
|
|
|
events {
|
2016-11-21 04:56:47 -08:00
|
|
|
underflowed; [[Called when flipselector is underflowed]]
|
|
|
|
overflowed; [[Called when flipselector is overflowed]]
|
2014-03-30 00:34:05 -07:00
|
|
|
}
|
|
|
|
}
|