aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/managers/LayoutManager.hpp
diff options
context:
space:
mode:
authorzakk4223 <[email protected]>2023-11-21 13:43:38 -0500
committerGitHub <[email protected]>2023-11-21 18:43:38 +0000
commit472926528428cd714c90f157e639fc0466611c8b (patch)
treeaccba2f9d174c151cc102e9a8e30c991fb250461 /src/managers/LayoutManager.hpp
parent572fd554b8e86b3b3533f05631348c3374815ab5 (diff)
downloadHyprland-472926528428cd714c90f157e639fc0466611c8b.tar.gz
Hyprland-472926528428cd714c90f157e639fc0466611c8b.zip
hyprctl: Add 'layouts' command (#3895)
* Add hyprctl 'layouts' command formatting * Add getAllLayoutNames(), move m_vLayouts back to private Formatting * clang-format
Diffstat (limited to 'src/managers/LayoutManager.hpp')
-rw-r--r--src/managers/LayoutManager.hpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/managers/LayoutManager.hpp b/src/managers/LayoutManager.hpp
index 1ebe5711..78d86797 100644
--- a/src/managers/LayoutManager.hpp
+++ b/src/managers/LayoutManager.hpp
@@ -7,16 +7,16 @@ class CLayoutManager {
public:
CLayoutManager();
- IHyprLayout* getCurrentLayout();
+ IHyprLayout* getCurrentLayout();
- void switchToLayout(std::string);
+ void switchToLayout(std::string);
- bool addLayout(const std::string& name, IHyprLayout* layout);
- bool removeLayout(IHyprLayout* layout);
+ bool addLayout(const std::string& name, IHyprLayout* layout);
+ bool removeLayout(IHyprLayout* layout);
+ std::vector<std::string> getAllLayoutNames();
private:
- enum HYPRLAYOUTS
- {
+ enum HYPRLAYOUTS {
LAYOUT_DWINDLE = 0,
LAYOUT_MASTER
};
@@ -25,8 +25,7 @@ class CLayoutManager {
CHyprDwindleLayout m_cDwindleLayout;
CHyprMasterLayout m_cMasterLayout;
-
std::vector<std::pair<std::string, IHyprLayout*>> m_vLayouts;
};
-inline std::unique_ptr<CLayoutManager> g_pLayoutManager; \ No newline at end of file
+inline std::unique_ptr<CLayoutManager> g_pLayoutManager;