expose drag lock (x and y axis).

SVN revision: 49963
This commit is contained in:
Carsten Haitzler 2010-07-01 06:59:30 +00:00
parent 4ee4e9ed5e
commit 85b65fedf4
2 changed files with 66 additions and 2 deletions

View File

@ -286,7 +286,11 @@ extern "C" {
EAPI void elm_object_scroll_hold_pop(Evas_Object *obj);
EAPI void elm_object_scroll_freeze_push(Evas_Object *obj);
EAPI void elm_object_scroll_freeze_pop(Evas_Object *obj);
EAPI void elm_object_scroll_lock_x_set(Evas_Object *obj, Eina_Bool lock);
EAPI void elm_object_scroll_lock_y_set(Evas_Object *obj, Eina_Bool lock);
EAPI Eina_Bool elm_object_scroll_lock_x_get(const Evas_Object *obj);
EAPI Eina_Bool elm_object_scroll_lock_y_get(const Evas_Object *obj);
EAPI void elm_object_signal_emit(Evas_Object *obj, const char *emission, const char *source);
EAPI void elm_object_signal_callback_add(Evas_Object *obj, const char *emission, const char *source, void (*func) (void *data, Evas_Object *o, const char *emission, const char *source), void *data);
EAPI void *elm_object_signal_callback_del(Evas_Object *obj, const char *emission, const char *source, void (*func) (void *data, Evas_Object *o, const char *emission, const char *source));
@ -294,7 +298,7 @@ extern "C" {
EAPI void elm_coords_finger_size_adjust(int times_w, Evas_Coord *w, int times_h, Evas_Coord *h);
EAPI Elm_Theme *elm_theme_new(void);
EAPI void elm_theme_free(Elm_Theme *th);
EAPI void elm_theme_free(Elm_Theme *th);
EAPI void elm_theme_overlay_add(Elm_Theme *th, const char *item);
EAPI void elm_theme_overlay_del(Elm_Theme *th, const char *item);
EAPI void elm_theme_extension_add(Elm_Theme *th, const char *item);

View File

@ -1312,6 +1312,66 @@ elm_object_scroll_freeze_push(Evas_Object *obj)
elm_widget_scroll_freeze_push(obj);
}
/**
* Lock the scrolling of the given widget (and thus all parents)
*
* This locks the given object from scrolling in the X axis (and implicitly
* also locks all parent scrollers too from doing the same).
*
* @param obj The object
* @param lock The lock state (1 == locked, 0 == unlocked)
* @ingroup Scrollhints
*/
EAPI void
elm_object_scroll_lock_x_set(Evas_Object *obj, Eina_Bool lock)
{
elm_widget_drag_lock_x_set(obj, lock);
}
/**
* Lock the scrolling of the given widget (and thus all parents)
*
* This locks the given object from scrolling in the Y axis (and implicitly
* also locks all parent scrollers too from doing the same).
*
* @param obj The object
* @param lock The lock state (1 == locked, 0 == unlocked)
* @ingroup Scrollhints
*/
EAPI void
elm_object_scroll_lock_y_set(Evas_Object *obj, Eina_Bool lock)
{
elm_widget_drag_lock_y_set(obj, lock);
}
/**
* Get the scrolling lock of the given widget
*
* This gets the lock for X axis scrolling.
*
* @param obj The object
* @ingroup Scrollhints
*/
EAPI Eina_Bool
elm_object_scroll_lock_x_get(const Evas_Object *obj)
{
return elm_widget_drag_lock_x_get(obj);
}
/**
* Get the scrolling lock of the given widget
*
* This gets the lock for X axis scrolling.
*
* @param obj The object
* @ingroup Scrollhints
*/
EAPI Eina_Bool
elm_object_scroll_lock_y_get(const Evas_Object *obj)
{
return elm_widget_drag_lock_y_get(obj);
}
/**
* Pop the scroll freeze by 1
*