diff --git a/src/lib/efl/interfaces/efl_screen.eo b/src/lib/efl/interfaces/efl_screen.eo index 7d60050b48..43cf8b318e 100644 --- a/src/lib/efl/interfaces/efl_screen.eo +++ b/src/lib/efl/interfaces/efl_screen.eo @@ -1,56 +1,70 @@ import eina_types; interface @beta Efl.Screen { [[Efl screen interface]] methods { @property screen_size_in_pixels { get { [[Get screen size (in pixels) for the screen. Note that on some display systems this information is not available and a value of 0x0 will be returned. ]] } values { size: Eina.Size2D; [[The screen size in pixels.]] } } // @property screen_size_in_mm { // get { // [[Get screen geometry (in millimeters) for the screen. // // Note that on some display systems this information is not available and // a value of 0x0 will be returned. // ]] // } // values { // size: Eina.Size2D; [[The screen size in millimeters.]] // } // } + @property screen_scale_factor { + get { + [[Get screen scaling factor. + + This is the factor by which window contents will be scaled on the screen. + + Note that on some display systems this information is not available and a + value of 1.0 will be returned. + ]] + } + values { + size: float; [[The screen scaling factor.]] + } + } @property screen_rotation { get { [[Get the rotation of the screen. Most engines only return multiples of 90. @since 1.19 ]] } values { rotation: int; [[Screen rotation in degrees.]] } } @property screen_dpi { get { [[Get the pixel density in DPI (Dots Per Inch) for the screen that a window is on. @since 1.7 ]] } values { xdpi: int; [[Horizontal DPI.]] ydpi: int; [[Vertical DPI.]] } } } }