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 
7 typedef 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 
22 EWAPI const Efl_Class *elm_scroller_class_get(void) EINA_CONST;
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  */
33 EOAPI 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  */
48 EOAPI 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  */
61 EOAPI void elm_obj_scroller_page_scroll_limit_get(const Eo *obj, int *page_limit_h, int *page_limit_v);
62 
63 EWAPI 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 
71 EWAPI 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 
79 EWAPI 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 
87 EWAPI 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 
95 EWAPI 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 
103 EWAPI 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 
111 EWAPI 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 
119 EWAPI 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 
127 EWAPI 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 
135 EWAPI 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 
143 EWAPI 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 
151 EWAPI 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 
159 EWAPI 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 
167 EWAPI 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 
175 EWAPI 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
184