X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Flayers.hpp;h=f52886ef5443870dea4a01629d36c9ad755abb71;hb=a79b572a5f26d6ecdd97dff159c40bad330e1c4c;hp=6ecf2e73a7e519a5a278b923c8fec18001b78268;hpb=2357c437b260d0d8cb927e6878f1226bfafb9d0b;p=apps%2Fagl-service-windowmanager.git diff --git a/src/layers.hpp b/src/layers.hpp index 6ecf2e7..f52886e 100644 --- a/src/layers.hpp +++ b/src/layers.hpp @@ -17,12 +17,9 @@ #ifndef TMCAGLWM_LAYERS_H #define TMCAGLWM_LAYERS_H -#include - -#include -#include #include +#include "../include/json.hpp" #include "layout.hpp" #include "result.hpp" #include "wayland_ivi_wm.hpp" @@ -117,6 +114,14 @@ struct layer_map } json to_json() const; + void setupArea(double scaling); + compositor::rect getAreaSize(const std::string &area); + int loadAreaDb(); + + private: + std::unordered_map area2size; + + static const char *kDefaultAreaDb; }; struct result to_layer_map(nlohmann::json const &j);