EAPI Elm_Segment_Item *elm_segment_control_item_selected_get(const Evas_Object *obj);
EAPI int elm_segment_control_get_segment_count(Evas_Object *obj);
EAPI int elm_segment_control_item_count_get(Evas_Object *obj);
+ EAPI int elm_segment_control_item_index_get(Elm_Segment_Item *item);
EAPI Evas_Object *elm_segment_control_item_object_get(Elm_Segment_Item *it);
EAPI Evas_Object *elm_page_control_add(Evas_Object *parent);
return it;
}
+\r
+/**
+ * Select the index of a Segment item of Segmentcontrol
+ * @param item The Segment item.
+ * @return The corresponding index of the Segment item.
+ *
+ * @ingroup SegmentControl SegmentControl
+ */
+
+EAPI int
+elm_segment_control_item_index_get(Elm_Segment_Item *item)
+{
+ Widget_Data *wd = elm_widget_data_get(item->obj);
+ if(!wd) return NULL;
+
+ return item->segment_id;
+}