summaryrefslogtreecommitdiff
path: root/src/lib/elm_scroller_legacy.h
diff options
context:
space:
mode:
authorGustavo Lima Chaves <glima@profusion.mobi>2013-05-17 11:30:42 -0300
committerGustavo Lima Chaves <glima@profusion.mobi>2013-05-17 15:37:37 -0300
commitf606664c63bbfad5ac0c88b1073fd797dca558a1 (patch)
tree7b9daddb8ed558a3af4f13d2d712e1074726a4b7 /src/lib/elm_scroller_legacy.h
parentf90b1c2308b59d0c9d23b0efd305724f812691d6 (diff)
Scroller can me made to snap to pages on scrolling now.
Diffstat (limited to 'src/lib/elm_scroller_legacy.h')
-rw-r--r--src/lib/elm_scroller_legacy.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/lib/elm_scroller_legacy.h b/src/lib/elm_scroller_legacy.h
index a254ee5c7..2caa21eef 100644
--- a/src/lib/elm_scroller_legacy.h
+++ b/src/lib/elm_scroller_legacy.h
@@ -134,6 +134,44 @@ EAPI void elm_scroller_region_get(const Evas_Object *ob
134EAPI void elm_scroller_child_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h); 134EAPI void elm_scroller_child_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h);
135 135
136/** 136/**
137 * @brief Set page snapping behavior of a scroller
138 *
139 * @param obj The scroller object
140 * @param page_h_snap Allow snap horizontally
141 * @param page_v_snap Allow snap vertically
142 *
143 * When scrolling, if a scroller is paged (see
144 * elm_scroller_page_size_set() and elm_scroller_page_relative_set()),
145 * the scroller may snap to pages when being scrolled, i.e., even if
146 * it had momentum to scroll further, it will stop at the next page
147 * boundaries. This is @b disabled, by default, for both axis. This
148 * function will set if it that is enabled or not, for each axis.
149 *
150 * @note If @a obj is not set to have pages, nothing will happen after
151 * this call.
152 *
153 * @since 1.8
154 *
155 * @ingroup Scroller
156 */
157EAPI void elm_scroller_page_snap_set(Evas_Object *obj, Eina_Bool page_h_snap, Eina_Bool page_v_snap);
158
159/**
160 * @brief Get the page snap behaviour of a scroller
161 *
162 * @param obj The Scroller object
163 * @param page_h_snap Will the scroller snap horizontally or not
164 * @param page_v_snap Will the scroller snap vertically or not
165 *
166 * @see elm_scroller_page_snap_set() for more details
167 *
168 * @since 1.8
169 *
170 * @ingroup Scroller
171 */
172EAPI void elm_scroller_page_snap_get(const Evas_Object *obj, Eina_Bool *page_h_snap, Eina_Bool *page_v_snap);
173
174/**
137 * @brief Set bouncing behavior 175 * @brief Set bouncing behavior
138 * 176 *
139 * @param obj The scroller object 177 * @param obj The scroller object