get photocam image for event goop

SVN revision: 45321
This commit is contained in:
Carsten Haitzler 2010-01-19 08:24:07 +00:00
parent 6fdc31d541
commit 193e853586
2 changed files with 19 additions and 0 deletions

View File

@ -1067,6 +1067,8 @@ extern "C" {
EAPI void elm_photocam_image_region_bring_in(Evas_Object *obj, int x, int y, int w, int h);
EAPI void elm_photocam_paused_set(Evas_Object *obj, Eina_Bool paused);
EAPI Eina_Bool elm_photocam_paused_get(Evas_Object *obj);
EAPI Evas_Object *elm_photocam_internal_image_get(const Evas_Object *obj);
/* smart callbacks called:
* "clicked" - when image clicked
* "press" - when mouse/finger held down initially on image

View File

@ -1563,3 +1563,20 @@ elm_photocam_paused_get(Evas_Object *obj)
Widget_Data *wd = elm_widget_data_get(obj);
return wd->paused;
}
/**
* Get ther internal low-res image used for photocam
*
* This gets the internal image object inside photocam. Do not modify it. It
* is for inspection only, and hooking callbacks to. Nothing else. It may be
* deleted at any time as well.
*
* @param obj The photocam object
* @return The internal image object handle, or NULL if none exists
*/
EAPI Evas_Object *
elm_photocam_internal_image_get(const Evas_Object *obj)
{
Widget_Data *wd = elm_widget_data_get(obj);
return wd->img;
}