summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_table_eo.legacy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_table_eo.legacy.h')
-rw-r--r--src/lib/elementary/elm_table_eo.legacy.h146
1 files changed, 146 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_table_eo.legacy.h b/src/lib/elementary/elm_table_eo.legacy.h
new file mode 100644
index 0000000..5074653
--- /dev/null
+++ b/src/lib/elementary/elm_table_eo.legacy.h
@@ -0,0 +1,146 @@
1#ifndef _ELM_TABLE_EO_LEGACY_H_
2#define _ELM_TABLE_EO_LEGACY_H_
3
4#ifndef _ELM_TABLE_EO_CLASS_TYPE
5#define _ELM_TABLE_EO_CLASS_TYPE
6
7typedef Eo Elm_Table;
8
9#endif
10
11#ifndef _ELM_TABLE_EO_TYPES
12#define _ELM_TABLE_EO_TYPES
13
14
15#endif
16
17/**
18 * @brief Control the homogenous state in a table.
19 *
20 * @param[in] obj The object.
21 * @param[in] homogeneous A boolean to set if the layout is homogeneous in the
22 * table.
23 *
24 * @ingroup Elm_Table_Group
25 */
26EAPI void elm_table_homogeneous_set(Elm_Table *obj, Eina_Bool homogeneous);
27
28/**
29 * @brief Control the homogenous state in a table.
30 *
31 * @param[in] obj The object.
32 *
33 * @return A boolean to set if the layout is homogeneous in the table.
34 *
35 * @ingroup Elm_Table_Group
36 */
37EAPI Eina_Bool elm_table_homogeneous_get(const Elm_Table *obj);
38
39/**
40 * @brief Set padding between cells. Default value is 0.
41 *
42 * @param[in] obj The object.
43 * @param[in] horizontal The horizontal padding.
44 * @param[in] vertical The vertical padding.
45 *
46 * @ingroup Elm_Table_Group
47 */
48EAPI void elm_table_padding_set(Elm_Table *obj, int horizontal, int vertical);
49
50/**
51 * @brief Get padding between cells.
52 *
53 * @param[in] obj The object.
54 * @param[out] horizontal The horizontal padding.
55 * @param[out] vertical The vertical padding.
56 *
57 * @ingroup Elm_Table_Group
58 */
59EAPI void elm_table_padding_get(const Elm_Table *obj, int *horizontal, int *vertical);
60
61/**
62 * @brief Set alignment of table. Default value is 0.5.
63 *
64 * @param[in] obj The object.
65 * @param[in] horizontal The horizontal alignment.
66 * @param[in] vertical The vertical alignment.
67 *
68 * @since 1.13
69 *
70 * @ingroup Elm_Table_Group
71 */
72EAPI void elm_table_align_set(Elm_Table *obj, double horizontal, double vertical);
73
74/**
75 * @brief Get alignment of table.
76 *
77 * @param[in] obj The object.
78 * @param[out] horizontal The horizontal alignment.
79 * @param[out] vertical The vertical alignment.
80 *
81 * @since 1.13
82 *
83 * @ingroup Elm_Table_Group
84 */
85EAPI void elm_table_align_get(const Elm_Table *obj, double *horizontal, double *vertical);
86
87/**
88 * @brief Faster way to remove all child objects from a table object.
89 *
90 * @param[in] obj The object.
91 * @param[in] clear If @c true, will delete children, else just remove from
92 * table.
93 *
94 * @ingroup Elm_Table_Group
95 */
96EAPI void elm_table_clear(Elm_Table *obj, Eina_Bool clear);
97
98/**
99 * @brief Get child object of table at given coordinates.
100 *
101 * @param[in] obj The object.
102 * @param[in] col Column number of child object.
103 * @param[in] row Row number of child object.
104 *
105 * @return Child of object if find if not return @c null.
106 *
107 * @ingroup Elm_Table_Group
108 */
109EAPI Efl_Canvas_Object *elm_table_child_get(const Elm_Table *obj, int col, int row);
110
111
112
113/**
114 * @brief Remove child from table.
115 *
116 * @param[in] obj The object.
117 * @param[in] subobj The subobject.
118 *
119 * @ingroup Elm_Table_Group
120 */
121EAPI void elm_table_unpack(Elm_Table *obj, Efl_Canvas_Object *subobj);
122
123/**
124 * @brief Add a subobject on the table with the coordinates passed.
125 *
126 * @note All positioning inside the table is relative to rows and columns, so a
127 * value of 0 for x and y, means the top left cell of the table, and a value of
128 * 1 for w and h means @c subobj only takes that 1 cell.
129 *
130 * @note Columns and rows only guarantee 16bit unsigned values at best. That
131 * means that col + colspan AND row + rowspan must fit inside 16bit unsigned
132 * values cleanly. You will be warned once values exceed 15bit storage, and
133 * attempting to use values not able to fit in 16bits will result in failure.
134 *
135 * @param[in] obj The object.
136 * @param[in] subobj The subobject to be added to the table.
137 * @param[in] column Column number.
138 * @param[in] row Row number.
139 * @param[in] colspan Columns span.
140 * @param[in] rowspan Rows span.
141 *
142 * @ingroup Elm_Table_Group
143 */
144EAPI void elm_table_pack(Elm_Table *obj, Efl_Canvas_Object *subobj, int column, int row, int colspan, int rowspan);
145
146#endif