diff options
author | Amitesh Singh <amitesh.sh@samsung.com> | 2017-05-17 11:33:13 +0900 |
---|---|---|
committer | Amitesh Singh <amitesh.sh@samsung.com> | 2017-05-17 16:40:50 +0900 |
commit | ef4cae6c7fa567aff4efa48ea4f4372959315d24 (patch) | |
tree | fc1190c50ac860af7f8b6f51ae77f5ce20da8cbd | |
parent | 47660f28ddec8abd4a09725de47ee7c3c40aea84 (diff) | |
download | efl-ef4cae6c7fa567aff4efa48ea4f4372959315d24.tar.gz |
photocam: remove internal_image_get as eo api
and mark it as legacy API instead.
Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
-rw-r--r-- | src/lib/elementary/elm_photocam.c | 14 | ||||
-rw-r--r-- | src/lib/elementary/elm_photocam.eo | 11 | ||||
-rw-r--r-- | src/lib/elementary/elm_photocam_legacy.h | 13 |
3 files changed, 21 insertions, 17 deletions
diff --git a/src/lib/elementary/elm_photocam.c b/src/lib/elementary/elm_photocam.c index 37e99d6f2a..262accfa41 100644 --- a/src/lib/elementary/elm_photocam.c +++ b/src/lib/elementary/elm_photocam.c @@ -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; +}
\ No newline at end of file diff --git a/src/lib/elementary/elm_photocam.eo b/src/lib/elementary/elm_photocam.eo index b80fa00613..fe4870915d 100644 --- a/src/lib/elementary/elm_photocam.eo +++ b/src/lib/elementary/elm_photocam.eo @@ -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 diff --git a/src/lib/elementary/elm_photocam_legacy.h b/src/lib/elementary/elm_photocam_legacy.h index d3bc84a8fa..29b15bb2c6 100644 --- a/src/lib/elementary/elm_photocam_legacy.h +++ b/src/lib/elementary/elm_photocam_legacy.h @@ -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" |