aboutsummaryrefslogtreecommitdiffstats
path: root/src/wm_layer_control.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wm_layer_control.hpp')
-rw-r--r--src/wm_layer_control.hpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/wm_layer_control.hpp b/src/wm_layer_control.hpp
index ad6bf53..647a5c7 100644
--- a/src/wm_layer_control.hpp
+++ b/src/wm_layer_control.hpp
@@ -25,8 +25,17 @@
namespace wm {
-class Screen : public rectangle {
-
+class Screen {
+ public:
+ Screen(unsigned w, unsigned h);
+ ~Screen();
+ unsigned width() { return _width; }
+ unsigned height() { return _height; }
+ private:
+ unsigned _width;
+ unsigned _height;
+ unsigned _pysical_width = 0;
+ unsigned _pysical_height = 0;
};
class LayerControlCallbacks {
@@ -52,6 +61,9 @@ class LayerControl
~LayerControl() = default;
WMError init(const LayerControlCallbacks& cb);
unsigned getNewLayerID(const std::string& role);
+ struct rect getAreaSize(const std::string& area);
+ void setupArea(double scaling);
+ Screen getScreenInfo();
// void setRenderOrder(const std::vector<unsigned> layer_render_order);
// std::vector<unsigned> getAllRenderOrder();
// std::vector<std::shared_ptr<WMLayer>>& getAllLayers();