1 #ifndef _ELM_CTXPOPUP_ITEM_EO_H_
2 #define _ELM_CTXPOPUP_ITEM_EO_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  * Elementary context popup item class
18  *
19  * @defgroup Elm_Ctxpopup_Item_Group
20  * @ingroup Elm_Ctxpopup_Group
21  */
22 
23 /**
24  * @brief Get the context popup item class
25  *
26  * @ingroup Elm_Ctxpopup_Item_Group
27  */
28 #define ELM_CTXPOPUP_ITEM_CLASS elm_ctxpopup_item_class_get()
29 
30 EWAPI const Efl_Class *elm_ctxpopup_item_class_get(void) EINA_CONST;
31 
32 /**
33  * @brief Get the item before this one in the widget's list of items.
34  *
35  * See also @ref elm_obj_ctxpopup_item_next_get.
36  *
37  * @param[in] obj The object.
38  *
39  * @return The item before the object in its parent's list. If there is no
40  * previous item or in case of error, @c null is returned.
41  *
42  * @ingroup Elm_Ctxpopup_Item_Group
43  */
44 EOAPI Elm_Widget_Item *elm_obj_ctxpopup_item_prev_get(const Eo *obj);
45 
46 /**
47  * @brief Get the item after this one in the widget's list of items.
48  *
49  * See also @ref elm_obj_ctxpopup_item_prev_get.
50  *
51  * @param[in] obj The object.
52  *
53  * @return The item after the object in its parent's list. If there is no next
54  * item or in case of error, @c null is returned.
55  *
56  * @ingroup Elm_Ctxpopup_Item_Group
57  */
58 EOAPI Elm_Widget_Item *elm_obj_ctxpopup_item_next_get(const Eo *obj);
59 
60 /**
61  * @brief Indicates whether this item is currently selected.
62  *
63  * Set the selected state of @c item.
64  *
65  * This sets the selected state of the given item @c it. @c true for selected,
66  * @c false for not selected.
67  *
68  * If a new item is selected the previously selected will be unselected.
69  * Previously selected item can be retrieved with
70  * @ref elm_obj_ctxpopup_selected_item_get.
71  *
72  * Selected items will be highlighted.
73  *
74  * @param[in] obj The object.
75  * @param[in] selected The selection state.
76  *
77  * @ingroup Elm_Ctxpopup_Item_Group
78  */
79 EOAPI void elm_obj_ctxpopup_item_selected_set(Eo *obj, Eina_Bool selected);
80 
81 /**
82  * @brief Indicates whether this item is currently selected.
83  *
84  * Get the selected state of this item.
85  *
86  * @param[in] obj The object.
87  *
88  * @return The selection state.
89  *
90  * @ingroup Elm_Ctxpopup_Item_Group
91  */
92 EOAPI Eina_Bool elm_obj_ctxpopup_item_selected_get(const Eo *obj);
93 
94 /**
95  * @brief Init context popup item
96  *
97  * @param[in] obj The object.
98  * @param[in] func Smart callback function
99  * @param[in] data Data pointer
100  *
101  * @ingroup Elm_Ctxpopup_Item_Group
102  */
103 EOAPI void elm_obj_ctxpopup_item_init(Eo *obj, Evas_Smart_Cb func, const void *data);
104 
105 #endif
106