blob: ae999396814051737dc2a38bc46d38d24d9de4fb (
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
|
#ifndef _ELM_PANEL_EO_LEGACY_H_
#define _ELM_PANEL_EO_LEGACY_H_
#ifndef _ELM_PANEL_EO_CLASS_TYPE
#define _ELM_PANEL_EO_CLASS_TYPE
typedef Eo Elm_Panel;
#endif
#ifndef _ELM_PANEL_EO_TYPES
#define _ELM_PANEL_EO_TYPES
/** Panel orientation mode
*
* @ingroup Elm_Panel_Group
*/
typedef enum
{
ELM_PANEL_ORIENT_TOP = 0, /**< Panel (dis)appears from the top */
ELM_PANEL_ORIENT_BOTTOM, /**< Panel (dis)appears from the bottom */
ELM_PANEL_ORIENT_LEFT, /**< Panel (dis)appears from the left */
ELM_PANEL_ORIENT_RIGHT /**< Panel (dis)appears from the right */
} Elm_Panel_Orient;
#endif
/**
* @brief Set the orientation of the panel
*
* Set from where the panel will (dis)appear.
*
* @param[in] obj The object.
* @param[in] orient The panel orientation.
*
* @ingroup Elm_Panel_Group
*/
EAPI void elm_panel_orient_set(Elm_Panel *obj, Elm_Panel_Orient orient);
/**
* @brief Get the orientation of the panel.
*
* @param[in] obj The object.
*
* @return The panel orientation.
*
* @ingroup Elm_Panel_Group
*/
EAPI Elm_Panel_Orient elm_panel_orient_get(const Elm_Panel *obj);
/**
* @brief Set the state of the panel.
*
* @param[in] obj The object.
* @param[in] hidden If @c true, the panel will run the animation to disappear.
*
* @ingroup Elm_Panel_Group
*/
EAPI void elm_panel_hidden_set(Elm_Panel *obj, Eina_Bool hidden);
/**
* @brief Get the state of the panel.
*
* @param[in] obj The object.
*
* @return If @c true, the panel will run the animation to disappear.
*
* @ingroup Elm_Panel_Group
*/
EAPI Eina_Bool elm_panel_hidden_get(const Elm_Panel *obj);
/**
* @brief Set the scrollability of the panel.
*
* @param[in] obj The object.
* @param[in] scrollable The scrollable state.
*
* @ingroup Elm_Panel_Group
*/
EAPI void elm_panel_scrollable_set(Elm_Panel *obj, Eina_Bool scrollable);
/**
* @brief Get the state of the scrollability.
*
* @param[in] obj The object.
*
* @return The scrollable state.
*
* @since 1.12
*
* @ingroup Elm_Panel_Group
*/
EAPI Eina_Bool elm_panel_scrollable_get(const Elm_Panel *obj);
/**
* @brief Set the size of the scrollable panel.
*
* @param[in] obj The object.
* @param[in] ratio Size ratio
*
* @ingroup Elm_Panel_Group
*/
EAPI void elm_panel_scrollable_content_size_set(Elm_Panel *obj, double ratio);
/**
* @brief Get the size of the scrollable panel.
*
* @param[in] obj The object.
*
* @return Size ratio
*
* @since 1.19
*
* @ingroup Elm_Panel_Group
*/
EAPI double elm_panel_scrollable_content_size_get(const Elm_Panel *obj);
/** Toggle the hidden state of the panel from code
*
* @ingroup Elm_Panel_Group
*/
EAPI void elm_panel_toggle(Elm_Panel *obj);
#endif
|