diff options
author | zakk4223 <[email protected]> | 2023-11-21 13:43:38 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2023-11-21 18:43:38 +0000 |
commit | 472926528428cd714c90f157e639fc0466611c8b (patch) | |
tree | accba2f9d174c151cc102e9a8e30c991fb250461 /src/managers/LayoutManager.hpp | |
parent | 572fd554b8e86b3b3533f05631348c3374815ab5 (diff) | |
download | Hyprland-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.hpp | 15 |
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; |