summaryrefslogtreecommitdiff
path: root/src/lib/elm_table_eo.h
blob: 23e0c759f32af5021529296fa5b4e552d84d298f (plain)
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
#define ELM_OBJ_TABLE_CLASS elm_obj_table_class_get()

const Eo_Class *elm_obj_table_class_get(void) EINA_CONST;

extern EAPI Eo_Op ELM_OBJ_TABLE_BASE_ID;

enum
{
   ELM_OBJ_TABLE_SUB_ID_HOMOGENEOUS_SET,
   ELM_OBJ_TABLE_SUB_ID_HOMOGENEOUS_GET,
   ELM_OBJ_TABLE_SUB_ID_PADDING_SET,
   ELM_OBJ_TABLE_SUB_ID_PADDING_GET,
   ELM_OBJ_TABLE_SUB_ID_PACK,
   ELM_OBJ_TABLE_SUB_ID_UNPACK,
   ELM_OBJ_TABLE_SUB_ID_PACK_SET,
   ELM_OBJ_TABLE_SUB_ID_PACK_GET,
   ELM_OBJ_TABLE_SUB_ID_CLEAR,
   ELM_OBJ_TABLE_SUB_ID_LAST
};

#define ELM_OBJ_TABLE_ID(sub_id) (ELM_OBJ_TABLE_BASE_ID + sub_id)


/**
 * @def elm_obj_table_homogeneous_set
 * @since 1.8
 *
 * @brief Set the homogeneous layout in the table
 *
 * @param[in] homogeneous
 *
 * @see elm_table_homogeneous_set
 *
 * @ingroup Table
 */
#define elm_obj_table_homogeneous_set(homogeneous) ELM_OBJ_TABLE_ID(ELM_OBJ_TABLE_SUB_ID_HOMOGENEOUS_SET), EO_TYPECHECK(Eina_Bool, homogeneous)

/**
 * @def elm_obj_table_homogeneous_get
 * @since 1.8
 *
 * @brief Get the current table homogeneous mode.
 *
 * @param[out] ret
 *
 * @see elm_table_homogeneous_get
 *
 * @ingroup Table
 */
#define elm_obj_table_homogeneous_get(ret) ELM_OBJ_TABLE_ID(ELM_OBJ_TABLE_SUB_ID_HOMOGENEOUS_GET), EO_TYPECHECK(Eina_Bool *, ret)

/**
 * @def elm_obj_table_padding_set
 * @since 1.8
 *
 * @brief Set padding between cells.
 *
 * @param[in] horizontal
 * @param[in] vertical
 *
 * @see elm_table_padding_set
 *
 * @ingroup Table
 */
#define elm_obj_table_padding_set(horizontal, vertical) ELM_OBJ_TABLE_ID(ELM_OBJ_TABLE_SUB_ID_PADDING_SET), EO_TYPECHECK(Evas_Coord, horizontal), EO_TYPECHECK(Evas_Coord, vertical)

/**
 * @def elm_obj_table_padding_get
 * @since 1.8
 *
 * @brief Get padding between cells.
 *
 * @param[out] horizontal
 * @param[out] vertical
 *
 * @see elm_table_padding_get
 *
 * @ingroup Table
 */
#define elm_obj_table_padding_get(horizontal, vertical) ELM_OBJ_TABLE_ID(ELM_OBJ_TABLE_SUB_ID_PADDING_GET), EO_TYPECHECK(Evas_Coord *, horizontal), EO_TYPECHECK(Evas_Coord *, vertical)

/**
 * @def elm_obj_table_pack
 * @since 1.8
 *
 * @brief Add a subobject on the table with the coordinates passed
 *
 * @param[in] subobj
 * @param[in] x
 * @param[in] y
 * @param[in] w
 * @param[in] h
 *
 * @see elm_table_pack
 *
 * @ingroup Table
 */
#define elm_obj_table_pack(subobj, x, y, w, h) ELM_OBJ_TABLE_ID(ELM_OBJ_TABLE_SUB_ID_PACK), EO_TYPECHECK(Evas_Object *, subobj), EO_TYPECHECK(int, x), EO_TYPECHECK(int, y), EO_TYPECHECK(int, w), EO_TYPECHECK(int, h)

/**
 * @def elm_obj_table_unpack
 * @since 1.8
 *
 * @brief Remove child from table.
 *
 * @param[in] subobj
 *
 * @see elm_table_unpack
 *
 * @ingroup Table
 */
#define elm_obj_table_unpack(subobj) ELM_OBJ_TABLE_ID(ELM_OBJ_TABLE_SUB_ID_UNPACK), EO_TYPECHECK(Evas_Object *, subobj)

/**
 * @def elm_obj_table_pack_set
 * @since 1.8
 *
 * @brief Set the packing location of an existing child of the table
 *
 * @param[in] subobj
 * @param[in] x
 * @param[in] y
 * @param[in] w
 * @param[in] h
 *
 * @see elm_table_pack_set
 *
 * @ingroup Table
 */
#define elm_obj_table_pack_set(subobj, x, y, w, h) ELM_OBJ_TABLE_ID(ELM_OBJ_TABLE_SUB_ID_PACK_SET), EO_TYPECHECK(Evas_Object *, subobj), EO_TYPECHECK(int, x), EO_TYPECHECK(int, y), EO_TYPECHECK(int, w), EO_TYPECHECK(int, h)

/**
 * @def elm_obj_table_pack_get
 * @since 1.8
 *
 * @brief Get the packing location of an existing child of the table
 *
 * @param[in] subobj
 * @param[out] x
 * @param[out] y
 * @param[out] w
 * @param[out] h
 *
 * @see elm_table_pack_get
 *
 * @ingroup Table
 */
#define elm_obj_table_pack_get(subobj, x, y, w, h) ELM_OBJ_TABLE_ID(ELM_OBJ_TABLE_SUB_ID_PACK_GET), EO_TYPECHECK(Evas_Object *, subobj), EO_TYPECHECK(int *, x), EO_TYPECHECK(int *, y), EO_TYPECHECK(int *, w), EO_TYPECHECK(int *, h)

/**
 * @def elm_obj_table_clear
 * @since 1.8
 *
 * @brief Faster way to remove all child objects from a table object.
 *
 * @param[in] clear
 *
 * @see elm_table_clear
 *
 * @ingroup Table
 */
#define elm_obj_table_clear(clear) ELM_OBJ_TABLE_ID(ELM_OBJ_TABLE_SUB_ID_CLEAR), EO_TYPECHECK(Eina_Bool, clear)