efl.screen: add screen_scale_factor property

Summary:
ref T7590

Depends on D7966

Reviewers: segfaultxavi

Reviewed By: segfaultxavi

Subscribers: segfaultxavi, cedric, #reviewers, #committers

Tags: #efl_api

Maniphest Tasks: T7590

Differential Revision: https://phab.enlightenment.org/D7967
This commit is contained in:
Mike Blumenkrantz 2019-02-21 18:19:39 +01:00 committed by Xavi Artigas
parent 56c279edf4
commit 606b0381c1
1 changed files with 14 additions and 0 deletions

View File

@ -28,6 +28,20 @@ interface @beta Efl.Screen
// 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.