2018-01-23 22:50:58 -08:00
|
|
|
class Elm.Segment_Control.Item(Elm.Widget.Item, Efl.Ui.Focus.Object, Efl.Ui.Legacy)
|
2014-09-27 22:14:10 -07:00
|
|
|
{
|
2016-11-24 05:57:29 -08:00
|
|
|
[[Elementary segment control item class]]
|
2016-05-12 09:06:04 -07:00
|
|
|
legacy_prefix: elm_segment_control_item;
|
2014-09-27 22:14:10 -07:00
|
|
|
eo_prefix: elm_obj_segment_control_item;
|
|
|
|
methods {
|
|
|
|
index_get @const {
|
2015-08-06 07:05:42 -07:00
|
|
|
[[Get the index of an item.
|
2014-09-27 22:14:10 -07:00
|
|
|
|
2015-08-06 07:05:42 -07:00
|
|
|
Index is the position of an item in segment control widget. Its
|
|
|
|
range is from 0 to (count - 1).
|
|
|
|
Count is the number of items, that can be get with elm_segment_control_item_count_get()]]
|
2014-09-27 22:14:10 -07:00
|
|
|
|
2015-08-06 07:05:42 -07:00
|
|
|
return: int(-1); [[The position of item in segment control widget.]]
|
2014-09-27 22:14:10 -07:00
|
|
|
}
|
|
|
|
object_get @const {
|
2015-08-06 07:05:42 -07:00
|
|
|
[[Get the real Evas(Edje) object created to implement the view of a given segment_control item.
|
2014-09-27 22:14:10 -07:00
|
|
|
|
2016-06-20 21:26:15 -07:00
|
|
|
Base object is the @Efl.Canvas.Object that represents that item.]]
|
|
|
|
return: Efl.Canvas.Object; [[The base Edje object associated with $it]]
|
2014-09-27 22:14:10 -07:00
|
|
|
}
|
|
|
|
selected_set {
|
2015-08-06 07:05:42 -07:00
|
|
|
[[Set the selected state of an item.
|
2014-09-27 22:14:10 -07:00
|
|
|
|
2015-08-06 07:05:42 -07:00
|
|
|
This sets the selected state of the given item $it.
|
|
|
|
$true for selected, $false for not selected.
|
2014-09-27 22:14:10 -07:00
|
|
|
|
2015-08-06 07:05:42 -07:00
|
|
|
If a new item is selected the previously selected will be unselected.
|
|
|
|
Selected item can be got with function elm_segment_control_item_selected_get().
|
2014-09-27 22:14:10 -07:00
|
|
|
|
2015-08-06 07:05:42 -07:00
|
|
|
The selected item always will be highlighted on segment control.]]
|
2014-09-27 22:14:10 -07:00
|
|
|
|
|
|
|
params {
|
2015-08-06 07:05:42 -07:00
|
|
|
selected: bool; [[The selected state.]]
|
2014-09-27 22:14:10 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.constructor;
|
|
|
|
Efl.Object.destructor;
|
2016-05-12 03:21:36 -07:00
|
|
|
Elm.Widget.Item.access_register;
|
2016-12-27 10:15:41 -08:00
|
|
|
Elm.Widget.Item.part_text { get; set; }
|
|
|
|
Elm.Widget.Item.part_content { get; set; }
|
2017-09-30 11:01:18 -07:00
|
|
|
Efl.Ui.Focus.Object.focus_geometry {get; }
|
2014-09-27 22:14:10 -07:00
|
|
|
}
|
|
|
|
}
|