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.
11 EAPI Evas_Object *elm_object_item_object_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
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
104 EAPI void *elm_object_item_data_get(const Elm_Object_Item *it);
107 * Set the data associated with an object item
108 * @param it The Elementary object item
109 * @param data The data to be associated with @p it
113 EAPI void elm_object_item_data_set(Elm_Object_Item *it, void *data);
116 * Send a signal to the edje object of the widget item.
118 * This function sends a signal to the edje object of the obj item. An
119 * edje program can respond to a signal by specifying matching
120 * 'signal' and 'source' fields.
122 * @param it The Elementary object item
123 * @param emission The signal's name.
124 * @param source The signal's source.
127 EAPI void elm_object_item_signal_emit(Elm_Object_Item *it, const char *emission, const char *source) EINA_ARG_NONNULL(1);
130 * Set the disabled state of an widget item.
132 * @param obj The Elementary object item
133 * @param disabled The state to put in in: @c EINA_TRUE for
134 * disabled, @c EINA_FALSE for enabled
136 * Elementary object item can be @b disabled, in which state they won't
137 * receive input and, in general, will be themed differently from
138 * their normal state, usually greyed out. Useful for contexts
139 * where you don't want your users to interact with some of the
140 * parts of you interface.
142 * This sets the state for the widget item, either disabling it or
147 EAPI void elm_object_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
150 * Get the disabled state of an widget item.
152 * @param obj The Elementary object
153 * @return @c EINA_TRUE, if the widget item is disabled, @c EINA_FALSE
154 * if it's enabled (or on errors)
156 * This gets the state of the widget, which might be enabled or disabled.
160 EAPI Eina_Bool elm_object_item_disabled_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);