summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_grid_eo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_grid_eo.h')
-rw-r--r--src/lib/elementary/elm_grid_eo.h96
1 files changed, 96 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_grid_eo.h b/src/lib/elementary/elm_grid_eo.h
new file mode 100644
index 0000000..d9ae0a8
--- /dev/null
+++ b/src/lib/elementary/elm_grid_eo.h
@@ -0,0 +1,96 @@
1#ifndef _ELM_GRID_EO_H_
2#define _ELM_GRID_EO_H_
3
4#ifndef _ELM_GRID_EO_CLASS_TYPE
5#define _ELM_GRID_EO_CLASS_TYPE
6
7typedef Eo Elm_Grid;
8
9#endif
10
11#ifndef _ELM_GRID_EO_TYPES
12#define _ELM_GRID_EO_TYPES
13
14
15#endif
16/** Elementary grid class
17 *
18 * @ingroup Elm_Grid
19 */
20#define ELM_GRID_CLASS elm_grid_class_get()
21
22EWAPI const Efl_Class *elm_grid_class_get(void);
23
24/**
25 * @brief Set the virtual size of the grid
26 *
27 * @param[in] obj The object.
28 * @param[in] w The virtual width of the grid
29 * @param[in] h The virtual height of the grid
30 *
31 * @ingroup Elm_Grid
32 */
33EOAPI void elm_obj_grid_size_set(Eo *obj, int w, int h);
34
35/**
36 * @brief Get the virtual size of the grid
37 *
38 * @param[in] obj The object.
39 * @param[out] w The virtual width of the grid
40 * @param[out] h The virtual height of the grid
41 *
42 * @ingroup Elm_Grid
43 */
44EOAPI void elm_obj_grid_size_get(const Eo *obj, int *w, int *h);
45
46/**
47 * @brief Get the list of the children for the grid.
48 *
49 * @note This is a duplicate of the list kept by the grid internally. It's up
50 * to the user to destroy it when it no longer needs it. It's possible to
51 * remove objects from the grid when walking this list, but these removals
52 * won't be reflected on it.
53 *
54 * @param[in] obj The object.
55 *
56 * @return List of children
57 *
58 * @ingroup Elm_Grid
59 */
60EOAPI Eina_List *elm_obj_grid_children_get(const Eo *obj) EINA_WARN_UNUSED_RESULT;
61
62/**
63 * @brief Faster way to remove all child objects from a grid object.
64 *
65 * @param[in] obj The object.
66 * @param[in] clear If @c true, it will delete just removed children
67 *
68 * @ingroup Elm_Grid
69 */
70EOAPI void elm_obj_grid_clear(Eo *obj, Eina_Bool clear);
71
72/**
73 * @brief Unpack a child from a grid object
74 *
75 * @param[in] obj The object.
76 * @param[in] subobj The child to unpack
77 *
78 * @ingroup Elm_Grid
79 */
80EOAPI void elm_obj_grid_unpack(Eo *obj, Efl_Canvas_Object *subobj);
81
82/**
83 * @brief Pack child at given position and size
84 *
85 * @param[in] obj The object.
86 * @param[in] subobj The child to pack.
87 * @param[in] x The virtual x coord at which to pack it.
88 * @param[in] y The virtual y coord at which to pack it.
89 * @param[in] w The virtual width at which to pack it.
90 * @param[in] h The virtual height at which to pack it.
91 *
92 * @ingroup Elm_Grid
93 */
94EOAPI void elm_obj_grid_pack(Eo *obj, Efl_Canvas_Object *subobj, int x, int y, int w, int h);
95
96#endif