1 #ifndef _ELM_SEGMENT_CONTROL_ITEM_EO_H_ 2 #define _ELM_SEGMENT_CONTROL_ITEM_EO_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 /** Elementary segment control item class 17 * 18 * @ingroup Elm_Segment_Control_Item 19 */ 20 #define ELM_SEGMENT_CONTROL_ITEM_CLASS elm_segment_control_item_class_get() 21 22 EWAPI const Efl_Class *elm_segment_control_item_class_get(void) EINA_CONST; 23 24 /** 25 * @brief Get the index of an item. 26 * 27 * Index is the position of an item in segment control widget. Its range is 28 * from 0 to (count - 1). Count is the number of items, that can be get with 29 * elm_segment_control_item_count_get() 30 * 31 * @param[in] obj The object. 32 * 33 * @return The position of item in segment control widget. 34 * 35 * @ingroup Elm_Segment_Control_Item 36 */ 37 EOAPI int elm_obj_segment_control_item_index_get(const Eo *obj); 38 39 /** 40 * @brief Get the real Evas(Edje) object created to implement the view of a 41 * given segment_control item. 42 * 43 * Base object is the @ref Efl_Canvas_Object that represents that item. 44 * 45 * @param[in] obj The object. 46 * 47 * @return The base Edje object associated with @c it 48 * 49 * @ingroup Elm_Segment_Control_Item 50 */ 51 EOAPI Efl_Canvas_Object *elm_obj_segment_control_item_object_get(const Eo *obj); 52 53 /** 54 * @brief Set the selected state of an item. 55 * 56 * This sets the selected state of the given item @c it. @c true for selected, 57 * @c false for not selected. 58 * 59 * If a new item is selected the previously selected will be unselected. 60 * Selected item can be got with function 61 * elm_segment_control_item_selected_get(). 62 * 63 * The selected item always will be highlighted on segment control. 64 * 65 * @param[in] obj The object. 66 * @param[in] selected The selected state. 67 * 68 * @ingroup Elm_Segment_Control_Item 69 */ 70 EOAPI void elm_obj_segment_control_item_selected_set(Eo *obj, Eina_Bool selected); 71 72 #endif 73