Add bounce setter/getter to elm_photocam

By: Li Suxia <suxia.li@samsung.com>



SVN revision: 54146
This commit is contained in:
Bruno Dilly 2010-11-04 12:19:00 +00:00
parent 81b68b08a9
commit 77fbb50118
2 changed files with 38 additions and 0 deletions

View File

@ -1843,6 +1843,8 @@ extern "C" {
EAPI void elm_photocam_paused_set(Evas_Object *obj, Eina_Bool paused);
EAPI Eina_Bool elm_photocam_paused_get(const Evas_Object *obj);
EAPI Evas_Object *elm_photocam_internal_image_get(const Evas_Object *obj);
EAPI void elm_photocam_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
EAPI void elm_photocam_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
/* smart callbacks called:
* "clicked" - when image clicked

View File

@ -1644,3 +1644,39 @@ elm_photocam_internal_image_get(const Evas_Object *obj)
if (!wd) return NULL;
return wd->img;
}
/**
* Set the photocam scrolling bouncing.
*
* @param obj The photocam object
* @param h_bounce bouncing for horizontal
* @param v_bounce bouncing for vertical
* @ingroup Photocam
*/
EAPI void
elm_photocam_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce)
{
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_smart_scroller_bounce_allow_set(wd->scr, h_bounce, v_bounce);
}
/**
* Get the photocam scrolling bouncing.
*
* @param obj The photocam object
* @param h_bounce bouncing for horizontal
* @param v_bounce bouncing for vertical
* @ingroup Photocam
*/
EAPI void
elm_photocam_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce)
{
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
elm_smart_scroller_bounce_allow_get(wd->scr, h_bounce, v_bounce);
}