methods {
@property screen_size {
get {
- [[Get screen geometry details for the screen that a window is on.]]
+ [[Get screen geometry details for the screen that a window is on.
+
+ Note that on some display systems this information is not
+ available (this could be the case Wayland for instance).
+ ]]
}
values {
- w: int; [[Where to return the width value. May be $null.]]
- h: int; [[Where to return the height value. May be $null.]]
+ size: Eina.Size2D; [[The screen size.]]
}
}
@property screen_rotation {
return sd->constrain;
}
-EOLIAN static void
-_efl_ui_win_efl_screen_screen_size_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, int *w, int *h)
+EOLIAN static Eina_Size2D
+_efl_ui_win_efl_screen_screen_size_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd)
{
- ecore_evas_screen_geometry_get(sd->ee, NULL, NULL, w, h);
+ Eina_Size2D sz;
+ ecore_evas_screen_geometry_get(sd->ee, NULL, NULL, &sz.w, &sz.h);
+ return sz;
}
EOLIAN static void