From d1127dd62c25e9c4c7d545de2456c6f4c4d7309f Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Mon, 25 Jun 2018 19:52:00 +0900 Subject: Add Get/Set area size functions Add internal functions to get/set area size. Change-Id: I9fef787863bed81fe6e4761c6f387886d7df1455 Signed-off-by: Kazumasa Mitsunari --- src/layers.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/layers.hpp') diff --git a/src/layers.hpp b/src/layers.hpp index e4160a5..a8ab2cc 100644 --- a/src/layers.hpp +++ b/src/layers.hpp @@ -114,6 +114,11 @@ struct layer_map } json to_json() const; + void setupArea(int output_w, int output_h); + compositor::rect getAreaSize(const std::string &area); + + private: + std::unordered_map area2size; }; struct result to_layer_map(nlohmann::json const &j); -- cgit 1.2.3-korg