2015-04-22 04:43:05 -07:00
|
|
|
class Elm.Segment_Control_Item(Elm.Widget_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
|
|
|
|
2015-08-06 07:05:42 -07:00
|
|
|
Base object is the @Evas.Object that represents that item.]]
|
|
|
|
return: Evas.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 {
|
|
|
|
Eo.Base.constructor;
|
2014-09-17 06:44:05 -07:00
|
|
|
Eo.Base.destructor;
|
2015-04-22 04:33:10 -07:00
|
|
|
Elm.Widget_Item.access_register;
|
|
|
|
Elm.Widget_Item.part_text.get;
|
|
|
|
Elm.Widget_Item.part_text.set;
|
|
|
|
Elm.Widget_Item.part_content.get;
|
|
|
|
Elm.Widget_Item.part_content.set;
|
2014-09-27 22:14:10 -07:00
|
|
|
}
|
|
|
|
}
|