* limitations under the License.
*/
-#define ELM_INTERFACE_ATSPI_COMPONENT_PROTECTED
+#define EFL_ACCESS_COMPONENT_BETA
+#define EFL_ACCESS_COMPONENT_PROTECTED
#define ELM_INTERNAL_API_ARGESFSDFEFC 1
#define ELM_WIDGET_PROTECTED
#define EFL_UI_WIDGET_PROTECTED
return sd->mode;
}
-/* TODO : there will be this definition once we rebase onto upstream/master
-EOLIAN static void
-_eext_floatingbutton_efl_access_component_extents_get(Eo *obj EINA_UNUSED, Eext_Floatingbutton_Data *sd, Eina_Bool screen_coords, int *x, int *y, int *w, int *h)
+EOLIAN static Eina_Rect
+_eext_floatingbutton_efl_access_component_extents_get(Eo *obj EINA_UNUSED, Eext_Floatingbutton_Data *sd, Eina_Bool screen_coords)
{
+ Eina_Rect r = EINA_RECT(-1, -1, -1, -1);
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);
+ return r;
+ r = efl_gfx_geometry_get(sd->box);
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;
+ if (ee)
+ {
+ ecore_evas_geometry_get(ee, &ee_x, &ee_y, NULL, NULL);
+ r.x += ee_x;
+ r.y += ee_y;
+ }
}
+ return r;
}
-*/
EOLIAN static Eina_Bool
_eext_floatingbutton_efl_ui_base_mirrored_get(Eo *obj EINA_UNUSED, Eext_Floatingbutton_Data *sd EINA_UNUSED)
_eext_floatingbutton_part_initialize(efl_added, (Eo *) obj, part));
}
-#include "eext_floatingbutton_part_content.eo.c"
\ No newline at end of file
+#include "eext_floatingbutton_part_content.eo.c"
last [[ indicates the last, do not use this ]]
}
-class Eext.Floatingbutton (Efl.Ui.Layout) {
+class Eext.Floatingbutton (Efl.Ui.Layout, Efl.Access.Component) {
methods {
@property floatingbutton_pos {
set {
Efl.Object.constructor;
Efl.Ui.Base.mirrored { get; set; }
Efl.Ui.Widget.theme_apply;
-// Efl.Access.Component.extents.get; // TODO : there will be this definition once we rebase onto upstream/master
+ Efl.Access.Component.extents { get; }
Efl.Part.part;
}
}