summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_scroller_eo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_scroller_eo.h')
-rw-r--r--src/lib/elementary/elm_scroller_eo.h183
1 files changed, 183 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_scroller_eo.h b/src/lib/elementary/elm_scroller_eo.h
new file mode 100644
index 0000000..6d4dd6c
--- /dev/null
+++ b/src/lib/elementary/elm_scroller_eo.h
@@ -0,0 +1,183 @@
1#ifndef _ELM_SCROLLER_EO_H_
2#define _ELM_SCROLLER_EO_H_
3
4#ifndef _ELM_SCROLLER_EO_CLASS_TYPE
5#define _ELM_SCROLLER_EO_CLASS_TYPE
6
7typedef Eo Elm_Scroller;
8
9#endif
10
11#ifndef _ELM_SCROLLER_EO_TYPES
12#define _ELM_SCROLLER_EO_TYPES
13
14
15#endif
16/** Elementary scroller class
17 *
18 * @ingroup Elm_Scroller
19 */
20#define ELM_SCROLLER_CLASS elm_scroller_class_get()
21
22EWAPI const Efl_Class *elm_scroller_class_get(void);
23
24/**
25 * @brief Set custom theme elements for the scroller
26 *
27 * @param[in] obj The object.
28 * @param[in] klass Klass name
29 * @param[in] group Group name
30 *
31 * @ingroup Elm_Scroller
32 */
33EOAPI void elm_obj_scroller_custom_widget_base_theme_set(Eo *obj, const char *klass, const char *group);
34
35/**
36 * @brief Set the maximum of the movable page at a flicking.
37 *
38 * The value of maximum movable page should be more than 1.
39 *
40 * @param[in] obj The object.
41 * @param[in] page_limit_h The maximum of the movable horizontal page
42 * @param[in] page_limit_v The maximum of the movable vertical page
43 *
44 * @since 1.8
45 *
46 * @ingroup Elm_Scroller
47 */
48EOAPI void elm_obj_scroller_page_scroll_limit_set(const Eo *obj, int page_limit_h, int page_limit_v);
49
50/**
51 * @brief Get the maximum of the movable page at a flicking.
52 *
53 * @param[in] obj The object.
54 * @param[in] page_limit_h The maximum of the movable horizontal page
55 * @param[in] page_limit_v The maximum of the movable vertical page
56 *
57 * @since 1.8
58 *
59 * @ingroup Elm_Scroller
60 */
61EOAPI void elm_obj_scroller_page_scroll_limit_get(const Eo *obj, int *page_limit_h, int *page_limit_v);
62
63EWAPI extern const Efl_Event_Description _ELM_SCROLLER_EVENT_SCROLL_PAGE_CHANGED;
64
65/** Called when scroll page changed
66 *
67 * @ingroup Elm_Scroller
68 */
69#define ELM_SCROLLER_EVENT_SCROLL_PAGE_CHANGED (&(_ELM_SCROLLER_EVENT_SCROLL_PAGE_CHANGED))
70
71EWAPI extern const Efl_Event_Description _ELM_SCROLLER_EVENT_HBAR_UNPRESS;
72
73/** Called when horizontal bar is no longer pressed
74 *
75 * @ingroup Elm_Scroller
76 */
77#define ELM_SCROLLER_EVENT_HBAR_UNPRESS (&(_ELM_SCROLLER_EVENT_HBAR_UNPRESS))
78
79EWAPI extern const Efl_Event_Description _ELM_SCROLLER_EVENT_HBAR_PRESS;
80
81/** Called when horizontal bar is pressed
82 *
83 * @ingroup Elm_Scroller
84 */
85#define ELM_SCROLLER_EVENT_HBAR_PRESS (&(_ELM_SCROLLER_EVENT_HBAR_PRESS))
86
87EWAPI extern const Efl_Event_Description _ELM_SCROLLER_EVENT_HBAR_DRAG;
88
89/** Called when horizontal bar is dragged
90 *
91 * @ingroup Elm_Scroller
92 */
93#define ELM_SCROLLER_EVENT_HBAR_DRAG (&(_ELM_SCROLLER_EVENT_HBAR_DRAG))
94
95EWAPI extern const Efl_Event_Description _ELM_SCROLLER_EVENT_VBAR_UNPRESS;
96
97/** Called when vertical bar is no longer pressed
98 *
99 * @ingroup Elm_Scroller
100 */
101#define ELM_SCROLLER_EVENT_VBAR_UNPRESS (&(_ELM_SCROLLER_EVENT_VBAR_UNPRESS))
102
103EWAPI extern const Efl_Event_Description _ELM_SCROLLER_EVENT_VBAR_PRESS;
104
105/** Called when vertical bar is pressed
106 *
107 * @ingroup Elm_Scroller
108 */
109#define ELM_SCROLLER_EVENT_VBAR_PRESS (&(_ELM_SCROLLER_EVENT_VBAR_PRESS))
110
111EWAPI extern const Efl_Event_Description _ELM_SCROLLER_EVENT_VBAR_DRAG;
112
113/** Called when vertical bar is dragged
114 *
115 * @ingroup Elm_Scroller
116 */
117#define ELM_SCROLLER_EVENT_VBAR_DRAG (&(_ELM_SCROLLER_EVENT_VBAR_DRAG))
118
119EWAPI extern const Efl_Event_Description _ELM_SCROLLER_EVENT_SCROLL_LEFT;
120
121/** Called when scrolling to left
122 *
123 * @ingroup Elm_Scroller
124 */
125#define ELM_SCROLLER_EVENT_SCROLL_LEFT (&(_ELM_SCROLLER_EVENT_SCROLL_LEFT))
126
127EWAPI extern const Efl_Event_Description _ELM_SCROLLER_EVENT_SCROLL_RIGHT;
128
129/** Called when scrolling to right
130 *
131 * @ingroup Elm_Scroller
132 */
133#define ELM_SCROLLER_EVENT_SCROLL_RIGHT (&(_ELM_SCROLLER_EVENT_SCROLL_RIGHT))
134
135EWAPI extern const Efl_Event_Description _ELM_SCROLLER_EVENT_SCROLL_UP;
136
137/** Called scrolled upwards
138 *
139 * @ingroup Elm_Scroller
140 */
141#define ELM_SCROLLER_EVENT_SCROLL_UP (&(_ELM_SCROLLER_EVENT_SCROLL_UP))
142
143EWAPI extern const Efl_Event_Description _ELM_SCROLLER_EVENT_SCROLL_DOWN;
144
145/** Called when scrolled downwards
146 *
147 * @ingroup Elm_Scroller
148 */
149#define ELM_SCROLLER_EVENT_SCROLL_DOWN (&(_ELM_SCROLLER_EVENT_SCROLL_DOWN))
150
151EWAPI extern const Efl_Event_Description _ELM_SCROLLER_EVENT_EDGE_LEFT;
152
153/** Called when hitting the left edge
154 *
155 * @ingroup Elm_Scroller
156 */
157#define ELM_SCROLLER_EVENT_EDGE_LEFT (&(_ELM_SCROLLER_EVENT_EDGE_LEFT))
158
159EWAPI extern const Efl_Event_Description _ELM_SCROLLER_EVENT_EDGE_RIGHT;
160
161/** Called when hitting the right edge
162 *
163 * @ingroup Elm_Scroller
164 */
165#define ELM_SCROLLER_EVENT_EDGE_RIGHT (&(_ELM_SCROLLER_EVENT_EDGE_RIGHT))
166
167EWAPI extern const Efl_Event_Description _ELM_SCROLLER_EVENT_EDGE_TOP;
168
169/** Called when hitting the top edge
170 *
171 * @ingroup Elm_Scroller
172 */
173#define ELM_SCROLLER_EVENT_EDGE_TOP (&(_ELM_SCROLLER_EVENT_EDGE_TOP))
174
175EWAPI extern const Efl_Event_Description _ELM_SCROLLER_EVENT_EDGE_BOTTOM;
176
177/** Called when hitting the bottom edge
178 *
179 * @ingroup Elm_Scroller
180 */
181#define ELM_SCROLLER_EVENT_EDGE_BOTTOM (&(_ELM_SCROLLER_EVENT_EDGE_BOTTOM))
182
183#endif