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 {
|
|
|
|
/*@
|
|
|
|
Get the index of an item.
|
|
|
|
|
|
|
|
Index is the position of an item in segment control widget. Its
|
|
|
|
range is from @c 0 to <tt> count - 1 </tt>.
|
|
|
|
Count is the number of items, that can be get with
|
|
|
|
elm_segment_control_item_count_get().
|
|
|
|
|
|
|
|
@return The position of item in segment control widget.
|
|
|
|
|
|
|
|
@ingroup SegmentControl
|
|
|
|
*/
|
2015-04-20 23:43:04 -07:00
|
|
|
return: int(-1);
|
2014-09-27 22:14:10 -07:00
|
|
|
}
|
|
|
|
object_get @const {
|
|
|
|
/*@
|
|
|
|
Get the real Evas(Edje) object created to implement the view of a given
|
|
|
|
segment_control @p item.
|
|
|
|
|
|
|
|
Base object is the @c Evas_Object that represents that item.
|
|
|
|
|
|
|
|
@return The base Edje object associated with @p it.
|
|
|
|
|
|
|
|
@ingroup SegmentControl
|
|
|
|
*/
|
2015-06-26 07:36:43 -07:00
|
|
|
return: Evas.Object*;
|
2014-09-27 22:14:10 -07:00
|
|
|
}
|
|
|
|
selected_set {
|
|
|
|
/*@
|
|
|
|
Set the selected state of an item.
|
|
|
|
|
|
|
|
This sets the selected state of the given item @p it.
|
|
|
|
@c EINA_TRUE for selected, @c EINA_FALSE for not selected.
|
|
|
|
|
|
|
|
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().
|
|
|
|
|
|
|
|
The selected item always will be highlighted on segment control.
|
|
|
|
|
|
|
|
@see elm_segment_control_item_selected_get()
|
|
|
|
|
|
|
|
@ingroup SegmentControl
|
|
|
|
*/
|
|
|
|
params {
|
2015-05-18 08:27:18 -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
|
|
|
}
|
|
|
|
}
|