1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
/**
* @typedef Elm_Object_Item
* An Elementary Object item handle.
* @ingroup General
*/
typedef Eo Elm_Object_Item;
/**
* @typedef Elm_Object_Item_Signal_Cb
*
* Elm_Object_Item Signal Callback functions' prototype definition. @c data
* will have the auxiliary data pointer at the time the callback registration.
* @c it will be a pointer the Elm_Object_Item that have the edje object where
* the signal comes from. @c emission will identify the exact signal's emission
* string and @c source the exact signal's source one.
*
* @see elm_object_item_signal_callback_add()
* @since 1.8
*
* @ingroup General
*/
typedef void (*Elm_Object_Item_Signal_Cb)(void *data, Elm_Object_Item *it, const char *emission, const char *source);
#include "elm_widget_item.eo.h"
#include "elm_widget_item.eo.legacy.h"
#define elm_object_item_content_set(it, content) elm_object_item_part_content_set((it), NULL, (content))
#define elm_object_item_content_get(it) elm_object_item_part_content_get((it), NULL)
#define elm_object_item_content_unset(it) elm_object_item_part_content_unset((it), NULL)
/**
* Macro to set a label of an object item.
*
* @param it The Elementary object item.
* @param label The new text of the label.
*
* @note Elementary object items may have many labels.
*
* @ingroup General
*/
#define elm_object_item_text_set(it, label) elm_object_item_part_text_set((it), NULL, (label))
#define elm_object_item_text_get(it) elm_object_item_part_text_get((it), NULL)
#define elm_object_item_domain_translatable_text_set(it, domain, text) elm_object_item_domain_translatable_part_text_set((it), NULL, (domain), (text))
#define elm_object_item_translatable_text_set(it, text) elm_object_item_domain_translatable_part_text_set((it), NULL, NULL, (text))
#define elm_object_item_translatable_part_text_set(it, part, text) elm_object_item_domain_translatable_part_text_set((it), (part), NULL, (text))
#define elm_object_item_translatable_text_get(it) elm_object_item_translatable_part_text_get((it), NULL)
#define elm_object_item_part_text_translatable_set(it, part, translatable) elm_object_item_domain_part_text_translatable_set((it), (part), NULL, (translatable))
#define elm_object_item_domain_text_translatable_set(it, domain, translatable) elm_object_item_domain_part_text_translatable_set((it), NULL, (domain), (translatable))
#define elm_object_item_text_translatable_set(it, translatable) elm_object_item_domain_part_text_translatable_set((it), NULL, NULL, (translatable))
/**
* Get the data associated with an object item
* @param it The Elementary object item
* @return The data associated with @p it
*
* @note Every elm_object_item supports this API
* @ingroup General
*/
EAPI void *elm_object_item_data_get(const Elm_Object_Item *it);
/**
* Set the data associated with an object item
* @param it The Elementary object item
* @param data The data to be associated with @p it
*
* @note Every elm_object_item supports this API
* @ingroup General
*/
EAPI void elm_object_item_data_set(Elm_Object_Item *it, void *data);
|