1 #ifndef _ELM_SEGMENT_CONTROL_ITEM_EO_LEGACY_H_ 2 #define _ELM_SEGMENT_CONTROL_ITEM_EO_LEGACY_H_ 3 4 #ifndef _ELM_SEGMENT_CONTROL_ITEM_EO_CLASS_TYPE 5 #define _ELM_SEGMENT_CONTROL_ITEM_EO_CLASS_TYPE 6 7 typedef Eo Elm_Segment_Control_Item; 8 9 #endif 10 11 #ifndef _ELM_SEGMENT_CONTROL_ITEM_EO_TYPES 12 #define _ELM_SEGMENT_CONTROL_ITEM_EO_TYPES 13 14 15 #endif 16 17 /** 18 * @brief Get the index of an item. 19 * 20 * Index is the position of an item in segment control widget. Its range is 21 * from 0 to (count - 1). Count is the number of items, that can be get with 22 * elm_segment_control_item_count_get() 23 * 24 * @param[in] obj The object. 25 * 26 * @return The position of item in segment control widget. 27 * 28 * @ingroup Elm_Segment_Control_Item_Group 29 */ 30 EAPI int elm_segment_control_item_index_get(const Elm_Segment_Control_Item *obj); 31 32 /** 33 * @brief Get the real Evas(Edje) object created to implement the view of a 34 * given segment_control item. 35 * 36 * Base object is the @ref Efl_Canvas_Object that represents that item. 37 * 38 * @param[in] obj The object. 39 * 40 * @return The base Edje object associated with @c it 41 * 42 * @ingroup Elm_Segment_Control_Item_Group 43 */ 44 EAPI Efl_Canvas_Object *elm_segment_control_item_object_get(const Elm_Segment_Control_Item *obj); 45 46 /** 47 * @brief Set the selected state of an item. 48 * 49 * This sets the selected state of the given item @c it. @c true for selected, 50 * @c false for not selected. 51 * 52 * If a new item is selected the previously selected will be unselected. 53 * Selected item can be got with function 54 * elm_segment_control_item_selected_get(). 55 * 56 * The selected item always will be highlighted on segment control. 57 * 58 * @param[in] obj The object. 59 * @param[in] selected The selected state. 60 * 61 * @ingroup Elm_Segment_Control_Item_Group 62 */ 63 EAPI void elm_segment_control_item_selected_set(Elm_Segment_Control_Item *obj, Eina_Bool selected); 64 65 #endif 66