Add elm_object_scroll_hold/freeze_get

SVN revision: 71836
This commit is contained in:
Jaehwan Kim 2012-06-08 08:59:07 +00:00
parent f18b904b2a
commit b55c923034
4 changed files with 50 additions and 7 deletions

View File

@ -162,3 +162,7 @@
* Toolbar: Remove the APIs elm_toolbar_items_max_set/get.
Instead of them, add the APIs elm_toolbar_standard_priority_set/get.
The items which are lower than standard priority are located in more menu or panel.
2012-06-08 Jaehwan Kim
* Add elm_object_scroll_hold/freeze_get.

View File

@ -10,6 +10,7 @@ Additions:
* Fileselector: Add a wheel spinner that show/spin while EIO is working
* Add elm_map_overlays_get & elm_map_overlay_visible_get functions.
* Toolbar: Add elm_toolbar_standard_priority_set/get APIs.
* Add elm_object_scroll_hold/freeze_get.
Fixes:

View File

@ -1169,6 +1169,13 @@ elm_object_scroll_hold_pop(Evas_Object *obj)
elm_widget_scroll_hold_pop(obj);
}
EAPI int
elm_object_scroll_hold_get(const Evas_Object *obj)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(obj, 0);
elm_widget_scroll_hold_get(obj);
}
EAPI void
elm_object_scroll_freeze_push(Evas_Object *obj)
{
@ -1176,6 +1183,20 @@ elm_object_scroll_freeze_push(Evas_Object *obj)
elm_widget_scroll_freeze_push(obj);
}
EAPI void
elm_object_scroll_freeze_pop(Evas_Object *obj)
{
EINA_SAFETY_ON_NULL_RETURN(obj);
elm_widget_scroll_freeze_pop(obj);
}
EAPI int
elm_object_scroll_freeze_get(const Evas_Object *obj)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(obj, 0);
elm_widget_scroll_freeze_get(obj);
}
EAPI void
elm_object_scroll_lock_x_set(Evas_Object *obj,
Eina_Bool lock)
@ -1206,13 +1227,6 @@ elm_object_scroll_lock_y_get(const Evas_Object *obj)
return elm_widget_drag_lock_y_get(obj);
}
EAPI void
elm_object_scroll_freeze_pop(Evas_Object *obj)
{
EINA_SAFETY_ON_NULL_RETURN(obj);
elm_widget_scroll_freeze_pop(obj);
}
EAPI Eina_Bool
elm_object_widget_check(const Evas_Object *obj)
{

View File

@ -41,6 +41,18 @@ EAPI void elm_object_scroll_hold_push(Evas_Object *obj);
*/
EAPI void elm_object_scroll_hold_pop(Evas_Object *obj);
/**
* Get the scroll hold by 1
*
* This gets the scroll hold count by one.
*
* @param obj The object
* @return The scroll hold count
* @since 1.1.0
* @ingroup Scrollhints
*/
EAPI int elm_object_scroll_hold_get(const Evas_Object *obj);
/**
* Push the scroll freeze by 1
*
@ -65,6 +77,18 @@ EAPI void elm_object_scroll_freeze_push(Evas_Object *obj);
*/
EAPI void elm_object_scroll_freeze_pop(Evas_Object *obj);
/**
* Get the scroll freeze by 1
*
* This gets the scroll freeze count by one.
*
* @param obj The object
* @return The scroll freeze count
* @since 1.1.0
* @ingroup Scrollhints
*/
EAPI int elm_object_scroll_freeze_get(const Evas_Object *obj);
/**
* Lock the scrolling of the given widget (and thus all parents)
*