Add APIs which can get information about the display and the surface area 75/13575/1
authorYuta Doi <yuta-d@witz-inc.co.jp>
Fri, 22 Dec 2017 12:00:10 +0000 (21:00 +0900)
committerYuta Doi <yuta-d@witz-inc.co.jp>
Thu, 8 Mar 2018 02:46:58 +0000 (11:46 +0900)
commita0a00ddd1a5d01566ffd145765a813814e20ae20
treee361d94cdbcd98e7cb54cd5bc477b50dae4df352
parenta40753a48f09c8ffcce43f324f5f91029a351a48
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: I97c71b1618f9c8a799b14d9a0a53acfb27e1822d
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
doc/ApplicationGuide.md
src/app.cpp
src/app.hpp
src/main.cpp
src/wayland.cpp
src/wayland.hpp