photocam: remove internal_image_get as eo api

and mark it as legacy API instead.

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
This commit is contained in:
Amitesh Singh 2017-05-17 11:33:13 +09:00
parent 47660f28dd
commit ef4cae6c7f
3 changed files with 21 additions and 17 deletions

View File

@ -2257,12 +2257,6 @@ _elm_photocam_paused_get(Eo *obj EINA_UNUSED, Elm_Photocam_Data *sd)
return sd->paused;
}
EOLIAN static Evas_Object*
_elm_photocam_internal_image_get(Eo *obj EINA_UNUSED, Elm_Photocam_Data *sd)
{
return sd->img;
}
EAPI void
elm_photocam_bounce_set(Evas_Object *obj,
Eina_Bool h_bounce,
@ -2452,3 +2446,11 @@ elm_photocam_image_orient_get(const Eo *obj)
}
#include "elm_photocam.eo.c"
EAPI Evas_Object*
elm_photocam_internal_image_get(const Evas_Object *obj)
{
ELM_PHOTOCAM_DATA_GET_OR_RETURN_VAL(obj, sd, NULL);
return sd->img;
}

View File

@ -125,17 +125,6 @@ class Elm.Photocam (Elm.Widget, Elm.Interface_Scrollable,
h: int; [[A pointer to the height]]
}
}
@property internal_image {
get {
[[Get the 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.
]]
return: Efl.Canvas.Object; [[The internal image object handle or $null]]
}
}
@property image_size {
get {
[[Get the current image pixel width and height

View File

@ -81,4 +81,17 @@ EAPI void elm_photocam_image_orient_set(Evas_Object *obj, Evas_Image_Orient orie
*/
EAPI Evas_Image_Orient elm_photocam_image_orient_get(const Evas_Object *obj);
/**
* @brief Get the 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.
*
* @return The internal image object handle or @c null
*
* @ingroup Elm_Photocam
*/
EAPI Evas_Object* elm_photocam_internal_image_get(const Evas_Object *obj);
#include "elm_photocam.eo.legacy.h"