aboutsummaryrefslogtreecommitdiffstats
path: root/src/wm_layer.hpp
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-08-31 11:42:33 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-08-31 15:28:54 +0900
commit58561703d4053dfd454fe564b59215ce025c4a12 (patch)
tree56c7f14bb901a81300b3eaadf23de0017323218e /src/wm_layer.hpp
parentb73c8310f2ca06b356135ef3a1b17e5cb6e2ec5d (diff)
Update wm_layer
* Set Area when layoutChange * Implement hasRole Change-Id: I684f3bce700d0bb6f4d4a6ef1a3e5242856c192b Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/wm_layer.hpp')
-rw-r--r--src/wm_layer.hpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/wm_layer.hpp b/src/wm_layer.hpp
index 3362ba7..2a5f9bd 100644
--- a/src/wm_layer.hpp
+++ b/src/wm_layer.hpp
@@ -38,6 +38,9 @@ class LayerState
const std::unordered_map<std::string, std::string> popCurrentState();
const std::unordered_map<std::string, std::string> getCurrentState();
const std::vector<unsigned> getIviIdList();
+ void addLayer(unsigned layer);
+ void removeLayer(unsigned layer);
+ void setArea(const std::string& app, const std::string& area);
private:
std::vector<unsigned> render_order;
@@ -62,9 +65,10 @@ class WMLayer
MANAGEMENT_TYPE layerType() { return this->type; }
void appendArea(const std::string& area);
void removeLayerID(unsigned id);
- LayerState getLayerState() const { return before_state; }
- WMError setLayerState(const LayerState& l);
- bool checkIDBelongTo(unsigned id);
+ LayerState& getLayerState() { return before_state; }
+ WMError setLayerState(const LayerState& l);
+ bool hasLayerID(unsigned id);
+ bool hasRole(const std::string& role);
private:
LayerState before_state;
LayerState state;