summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_panel_eo.legacy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_panel_eo.legacy.h')
-rw-r--r--src/lib/elementary/elm_panel_eo.legacy.h125
1 files changed, 125 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_panel_eo.legacy.h b/src/lib/elementary/elm_panel_eo.legacy.h
new file mode 100644
index 0000000..d6b8b49
--- /dev/null
+++ b/src/lib/elementary/elm_panel_eo.legacy.h
@@ -0,0 +1,125 @@
1#ifndef _ELM_PANEL_EO_LEGACY_H_
2#define _ELM_PANEL_EO_LEGACY_H_
3
4#ifndef _ELM_PANEL_EO_CLASS_TYPE
5#define _ELM_PANEL_EO_CLASS_TYPE
6
7typedef Eo Elm_Panel;
8
9#endif
10
11#ifndef _ELM_PANEL_EO_TYPES
12#define _ELM_PANEL_EO_TYPES
13
14/** Panel orientation mode
15 *
16 * @ingroup Elm_Panel
17 */
18typedef enum
19{
20 ELM_PANEL_ORIENT_TOP = 0, /**< Panel (dis)appears from the top */
21 ELM_PANEL_ORIENT_BOTTOM, /**< Panel (dis)appears from the bottom */
22 ELM_PANEL_ORIENT_LEFT, /**< Panel (dis)appears from the left */
23 ELM_PANEL_ORIENT_RIGHT /**< Panel (dis)appears from the right */
24} Elm_Panel_Orient;
25
26
27#endif
28
29/**
30 * @brief Set the orientation of the panel
31 *
32 * Set from where the panel will (dis)appear.
33 *
34 * @param[in] obj The object.
35 * @param[in] orient The panel orientation.
36 *
37 * @ingroup Elm_Panel_Group
38 */
39EAPI void elm_panel_orient_set(Elm_Panel *obj, Elm_Panel_Orient orient);
40
41/**
42 * @brief Get the orientation of the panel.
43 *
44 * @param[in] obj The object.
45 *
46 * @return The panel orientation.
47 *
48 * @ingroup Elm_Panel_Group
49 */
50EAPI Elm_Panel_Orient elm_panel_orient_get(const Elm_Panel *obj);
51
52/**
53 * @brief Set the state of the panel.
54 *
55 * @param[in] obj The object.
56 * @param[in] hidden If @c true, the panel will run the animation to disappear.
57 *
58 * @ingroup Elm_Panel_Group
59 */
60EAPI void elm_panel_hidden_set(Elm_Panel *obj, Eina_Bool hidden);
61
62/**
63 * @brief Get the state of the panel.
64 *
65 * @param[in] obj The object.
66 *
67 * @return If @c true, the panel will run the animation to disappear.
68 *
69 * @ingroup Elm_Panel_Group
70 */
71EAPI Eina_Bool elm_panel_hidden_get(const Elm_Panel *obj);
72
73/**
74 * @brief Set the scrollability of the panel.
75 *
76 * @param[in] obj The object.
77 * @param[in] scrollable The scrollable state.
78 *
79 * @ingroup Elm_Panel_Group
80 */
81EAPI void elm_panel_scrollable_set(Elm_Panel *obj, Eina_Bool scrollable);
82
83/**
84 * @brief Get the state of the scrollability.
85 *
86 * @param[in] obj The object.
87 *
88 * @return The scrollable state.
89 *
90 * @since 1.12
91 *
92 * @ingroup Elm_Panel_Group
93 */
94EAPI Eina_Bool elm_panel_scrollable_get(const Elm_Panel *obj);
95
96/**
97 * @brief Set the size of the scrollable panel.
98 *
99 * @param[in] obj The object.
100 * @param[in] ratio Size ratio
101 *
102 * @ingroup Elm_Panel_Group
103 */
104EAPI void elm_panel_scrollable_content_size_set(Elm_Panel *obj, double ratio);
105
106/**
107 * @brief Get the size of the scrollable panel.
108 *
109 * @param[in] obj The object.
110 *
111 * @return Size ratio
112 *
113 * @since 1.19
114 *
115 * @ingroup Elm_Panel_Group
116 */
117EAPI double elm_panel_scrollable_content_size_get(const Elm_Panel *obj);
118
119/** Toggle the hidden state of the panel from code
120 *
121 * @ingroup Elm_Panel_Group
122 */
123EAPI void elm_panel_toggle(Elm_Panel *obj);
124
125#endif