summaryrefslogtreecommitdiffstats
path: root/src/libwindowmanager.h
diff options
context:
space:
mode:
authorYuta Doi <yuta-d@witz-inc.co.jp>2017-12-20 13:19:49 +0900
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2017-12-20 16:28:13 +0000
commit881876d4908aaa4015e9d5f5d318c1b5fe1052dc (patch)
tree2f349a032bc9889a0a43805330b6c130277420ac /src/libwindowmanager.h
parentae757d42f81d5c9e06f9c83c1a6bc0e9f2365655 (diff)
Add APIs which can get information about the display and the surface areaeel_4.99.5eel/4.99.54.99.5
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 in project apps/agl-service-windowmanager-2017. Bug-AGL: SPEC-1087 Change-Id: Icee00af4ab210b056cc67c2868ef2c594da1dbe1 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Diffstat (limited to 'src/libwindowmanager.h')
-rw-r--r--src/libwindowmanager.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libwindowmanager.h b/src/libwindowmanager.h
index ec14617..b2b9496 100644
--- a/src/libwindowmanager.h
+++ b/src/libwindowmanager.h
@@ -40,6 +40,7 @@ public:
/* Key for json obejct */
const char *kKeyDrawingName = "drawing_name";
const char *kKeyDrawingArea = "drawing_area";
+ const char *kKeyDrawingRect = "drawing_rect";
const char *kKeyIviId = "ivi_id";
enum EventType {
@@ -61,6 +62,10 @@ public:
int activateSurface(json_object *object);
int deactivateSurface(json_object *object);
int endDraw(json_object *object);
+ int getDisplayInfo(json_object *object);
+ int getAreaInfo(json_object *in_obj, json_object *out_obj);
+
+ int getAreaInfo(const char *label, json_object *out_obj);
void set_event_handler(enum EventType et, handler_fun f);