2 * Get the widget object's handle which contains a given item
4 * @param it The Elementary object item
5 * @return The widget object
7 * @note This returns the widget object itself that an item belongs to.
8 * @note Every elm_object_item supports this API
11 EAPI Evas_Object *elm_object_item_object_get(const Elm_Object_Item *it);
14 * Set a content of an object item
16 * @param it The Elementary object item
17 * @param part The content part name to set (NULL for the default content)
18 * @param content The new content of the object item
20 * @note Elementary object items may have many contents
24 EAPI void elm_object_item_part_content_set(Elm_Object_Item *it, const char *part, Evas_Object *content);
26 #define elm_object_item_content_set(it, content) elm_object_item_part_content_set((it), NULL, (content))
29 * Get a content of an object item
31 * @param it The Elementary object item
32 * @param part The content part name to unset (NULL for the default content)
33 * @return content of the object item or NULL for any error
35 * @note Elementary object items may have many contents
39 EAPI Evas_Object *elm_object_item_part_content_get(const Elm_Object_Item *it, const char *part);
41 #define elm_object_item_content_get(it) elm_object_item_part_content_get((it), NULL)
44 * Unset a content of an object item
46 * @param it The Elementary object item
47 * @param part The content part name to unset (NULL for the default content)
49 * @note Elementary object items may have many contents
53 EAPI Evas_Object *elm_object_item_part_content_unset(Elm_Object_Item *it, const char *part);
55 #define elm_object_item_content_unset(it) elm_object_item_part_content_unset((it), NULL)
58 * Set a label of an object item
60 * @param it The Elementary object item
61 * @param part The text part name to set (NULL for the default label)
62 * @param label The new text of the label
64 * @note Elementary object items may have many labels
68 EAPI void elm_object_item_part_text_set(Elm_Object_Item *it, const char *part, const char *label);
70 #define elm_object_item_text_set(it, label) elm_object_item_part_text_set((it), NULL, (label))
73 * Get a label of an object item
75 * @param it The Elementary object item
76 * @param part The text part name to get (NULL for the default label)
77 * @return text of the label or NULL for any error
79 * @note Elementary object items may have many labels
83 EAPI const char *elm_object_item_part_text_get(const Elm_Object_Item *it, const char *part);
85 #define elm_object_item_text_get(it) elm_object_item_part_text_get((it), NULL)
88 * Set the text to read out when in accessibility mode
90 * @param it The object item which is to be described
91 * @param txt The text that describes the widget to people with poor or no vision
95 EAPI void elm_object_item_access_info_set(Elm_Object_Item *it, const char *txt);
98 * Get the data associated with an object item
99 * @param it The Elementary object item
100 * @return The data associated with @p it
102 * @note Every elm_object_item supports this API
105 EAPI void *elm_object_item_data_get(const Elm_Object_Item *it);
108 * Set the data associated with an object item
109 * @param it The Elementary object item
110 * @param data The data to be associated with @p it
112 * @note Every elm_object_item supports this API
115 EAPI void elm_object_item_data_set(Elm_Object_Item *it, void *data);
118 * Send a signal to the edje object of the widget item.
120 * This function sends a signal to the edje object of the obj item. An
121 * edje program can respond to a signal by specifying matching
122 * 'signal' and 'source' fields.
124 * @param it The Elementary object item
125 * @param emission The signal's name.
126 * @param source The signal's source.
129 EAPI void elm_object_item_signal_emit(Elm_Object_Item *it, const char *emission, const char *source);
132 * Set the disabled state of an widget item.
134 * @param obj The Elementary object item
135 * @param disabled The state to put in in: @c EINA_TRUE for
136 * disabled, @c EINA_FALSE for enabled
138 * Elementary object item can be @b disabled, in which state they won't
139 * receive input and, in general, will be themed differently from
140 * their normal state, usually greyed out. Useful for contexts
141 * where you don't want your users to interact with some of the
142 * parts of you interface.
144 * This sets the state for the widget item, either disabling it or
149 EAPI void elm_object_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled);
152 * Get the disabled state of an widget item.
154 * @param obj The Elementary object
155 * @return @c EINA_TRUE, if the widget item is disabled, @c EINA_FALSE
156 * if it's enabled (or on errors)
158 * This gets the state of the widget, which might be enabled or disabled.
162 EAPI Eina_Bool elm_object_item_disabled_get(const Elm_Object_Item *it);
165 * @brief Set the function to be called when an item from the widget is
168 * @param it The item to set the callback on
169 * @param func The function called
171 * That function will receive these parameters:
172 * @li void * item data
173 * @li Evas_Object * widget object
174 * @li Elm_Object_Item * widget item
176 * @note Every elm_object_item supports this API
178 * @see elm_object_item_del()
181 EAPI void elm_object_item_del_cb_set(Elm_Object_Item *it, Evas_Smart_Cb del_cb);
184 // XXX: One more API is to be added.
185 //EAPI void elm_object_item_del(Elm_Object_Item *it);