diff options
author | Yuta Doi <yuta-d@witz-inc.co.jp> | 2017-12-22 21:00:10 +0900 |
---|---|---|
committer | Yuta Doi <yuta-d@witz-inc.co.jp> | 2018-02-09 21:42:49 +0900 |
commit | e890bc6f1880c8b8a439692ea85c2f3992b99c15 (patch) | |
tree | 42a42be3979b6e2a6e21ae1e9d69998bea5e490a /src/wayland_ivi_wm.hpp | |
parent | a94f6c67c67a68df8a894699686f2eaa8e870208 (diff) |
Add APIs which can get information about the display and the surface area
getDisplayInfo() can get the display information as follows:
- width[pixel]
- height[pixel]
- width[mm]
- height[mm]
NOTE:
It uses wl_output::geometry() for getting physical width[mm] and height[mm] of the display,
but the value is different with measured value.
value from wl_output::geometry(): width:320 height:520
measured value : width:193 height:343
getAreaInfo() can get the information of area drawn by the application as follows:
- x-coordinate
- y-coordinate
- width
- height
The details are described in doc/ApplicationGuide.md.
Bug-AGL: SPEC-1087
Change-Id: I9e6d64ff04e0845b83c69db374d06af17a6d6b66
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Diffstat (limited to 'src/wayland_ivi_wm.hpp')
-rw-r--r-- | src/wayland_ivi_wm.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wayland_ivi_wm.hpp b/src/wayland_ivi_wm.hpp index a51a1a0..872e287 100644 --- a/src/wayland_ivi_wm.hpp +++ b/src/wayland_ivi_wm.hpp @@ -96,6 +96,8 @@ struct display { struct output : public wayland_proxy<struct wl_output> { int width{}; int height{}; + int physical_width{}; + int physical_height{}; int refresh{}; int transform{}; @@ -235,7 +237,8 @@ struct controller : public wayland_proxy<struct ivi_wm> { std::unique_ptr<struct screen> screen; - size output_size; + size output_size; // Display size[pixel] + size physical_size; // Display size[mm] wm::controller_hooks *chooks; |