diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-06-25 19:52:00 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-06-27 16:15:15 +0900 |
commit | d1127dd62c25e9c4c7d545de2456c6f4c4d7309f (patch) | |
tree | fc6082cc05a890573f97168de77b737b09949c58 /src/layers.hpp | |
parent | 2a352777521301937b0d1d4cdcf0e24a1aa2d84e (diff) |
Add Get/Set area size functions
Add internal functions to get/set area size.
Change-Id: I9fef787863bed81fe6e4761c6f387886d7df1455
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/layers.hpp')
-rw-r--r-- | src/layers.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
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<std::string, compositor::rect> area2size; }; struct result<struct layer_map> to_layer_map(nlohmann::json const &j); |