From: Shinwoo Kim Date: Wed, 9 Nov 2016 07:07:32 +0000 (+0900) Subject: override Elm_Interface_Atspi_Component.extents.get X-Git-Tag: submit/tizen/20170526.054713~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d6dd7c2bb9dc9a53d30b09cdad6897be38ca8c93;p=platform%2Fcore%2Fuifw%2Fefl-ext.git override Elm_Interface_Atspi_Component.extents.get Change-Id: Ia07eefeb78eaa4e5694785557d1022e62c8eeb6b --- diff --git a/src/mobile/eext_floatingbutton.c b/src/mobile/eext_floatingbutton.c index a2a4fb4..d1fa986 100644 --- a/src/mobile/eext_floatingbutton.c +++ b/src/mobile/eext_floatingbutton.c @@ -14,6 +14,7 @@ * limitations under the License. */ +#define ELM_INTERFACE_ATSPI_COMPONENT_PROTECTED #define ELM_INTERNAL_API_ARGESFSDFEFC 1 #include @@ -709,4 +710,29 @@ _eext_floatingbutton_mode_get(Eo *obj, return sd->mode; } +EOLIAN static void +_eext_floatingbutton_elm_interface_atspi_component_extents_get(Eo *obj EINA_UNUSED, Eext_Floatingbutton_Data *sd, Eina_Bool screen_coords, int *x, int *y, int *w, int *h) +{ + int ee_x, ee_y; + + if (!sd->box) + { + if (x) *x = -1; + if (y) *y = -1; + if (w) *w = -1; + if (h) *h = -1; + return; + } + evas_object_geometry_get(sd->box, x, y, w, h); + + if (screen_coords) + { + Ecore_Evas *ee = ecore_evas_ecore_evas_get(evas_object_evas_get(sd->box)); + if (!ee) return; + ecore_evas_geometry_get(ee, &ee_x, &ee_y, NULL, NULL); + if (x) *x += ee_x; + if (y) *y += ee_y; + } +} + #include "eext_floatingbutton.eo.c" diff --git a/src/mobile/eext_floatingbutton.eo b/src/mobile/eext_floatingbutton.eo index 3e9445b..0f34653 100644 --- a/src/mobile/eext_floatingbutton.eo +++ b/src/mobile/eext_floatingbutton.eo @@ -95,5 +95,6 @@ class Eext.Floatingbutton (Elm.Layout) { Elm.Container.content_get; Elm.Container.content_unset; Elm.Widget.theme_apply; + Elm_Interface_Atspi_Component.extents.get; } }