Add APIs which can get information of display and area
authorYuta Doi <yuta-d@witz-inc.co.jp>
Mon, 11 Dec 2017 02:38:01 +0000 (11:38 +0900)
committerYuta Doi <yuta-d@witz-inc.co.jp>
Mon, 11 Dec 2017 02:38:01 +0000 (11:38 +0900)
commit6aaba1066fe89f324d4bae67497f4035fe997d5f
tree89ecc85436fcc1e5567d6dfa8f10dadee0121c61
parent7fb167a27e9e12ef38c5942cf73679bff12a5b25
Add APIs which can get information of display and 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.

Change-Id: I41eec6251527862ef25d1b84cd37d736d3f9c8aa
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
doc/ApplicationGuide.md
generate-binding-glue.py
src/afb_binding_api.cpp
src/app.cpp
src/app.hpp
src/main.cpp [changed mode: 0755->0644]
src/wayland.cpp
src/wayland.hpp