1 #ifndef _ELM_CTXPOPUP_ITEM_EO_LEGACY_H_ 2 #define _ELM_CTXPOPUP_ITEM_EO_LEGACY_H_ 3 4 #ifndef _ELM_CTXPOPUP_ITEM_EO_CLASS_TYPE 5 #define _ELM_CTXPOPUP_ITEM_EO_CLASS_TYPE 6 7 typedef Eo Elm_Ctxpopup_Item; 8 9 #endif 10 11 #ifndef _ELM_CTXPOPUP_ITEM_EO_TYPES 12 #define _ELM_CTXPOPUP_ITEM_EO_TYPES 13 14 15 #endif 16 17 /** 18 * @brief Get the item before this one in the widget's list of items. 19 * 20 * See also @ref elm_ctxpopup_item_next_get. 21 * 22 * @param[in] obj The object. 23 * 24 * @return The item before the object in its parent's list. If there is no 25 * previous item or in case of error, @c null is returned. 26 * 27 * @ingroup Elm_Ctxpopup_Item_Group 28 */ 29 EAPI Elm_Widget_Item *elm_ctxpopup_item_prev_get(const Elm_Ctxpopup_Item *obj); 30 31 /** 32 * @brief Get the item after this one in the widget's list of items. 33 * 34 * See also @ref elm_ctxpopup_item_prev_get. 35 * 36 * @param[in] obj The object. 37 * 38 * @return The item after the object in its parent's list. If there is no next 39 * item or in case of error, @c null is returned. 40 * 41 * @ingroup Elm_Ctxpopup_Item_Group 42 */ 43 EAPI Elm_Widget_Item *elm_ctxpopup_item_next_get(const Elm_Ctxpopup_Item *obj); 44 45 /** 46 * @brief Indicates whether this item is currently selected. 47 * 48 * Set the selected state of @c item. 49 * 50 * This sets the selected state of the given item @c it. @c true for selected, 51 * @c false for not selected. 52 * 53 * If a new item is selected the previously selected will be unselected. 54 * Previously selected item can be retrieved with 55 * @ref elm_ctxpopup_selected_item_get. 56 * 57 * Selected items will be highlighted. 58 * 59 * @param[in] obj The object. 60 * @param[in] selected The selection state. 61 * 62 * @ingroup Elm_Ctxpopup_Item_Group 63 */ 64 EAPI void elm_ctxpopup_item_selected_set(Elm_Ctxpopup_Item *obj, Eina_Bool selected); 65 66 /** 67 * @brief Indicates whether this item is currently selected. 68 * 69 * Get the selected state of this item. 70 * 71 * @param[in] obj The object. 72 * 73 * @return The selection state. 74 * 75 * @ingroup Elm_Ctxpopup_Item_Group 76 */ 77 EAPI Eina_Bool elm_ctxpopup_item_selected_get(const Elm_Ctxpopup_Item *obj); 78 79 /** 80 * @brief Init context popup item 81 * 82 * @param[in] obj The object. 83 * @param[in] func Smart callback function 84 * @param[in] data Data pointer 85 * 86 * @ingroup Elm_Ctxpopup_Item_Group 87 */ 88 EAPI void elm_ctxpopup_item_init(Elm_Ctxpopup_Item *obj, Evas_Smart_Cb func, const void *data); 89 90 #endif 91