mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 21:45:58 +01:00
24 lines
No EOL
504 B
C++
24 lines
No EOL
504 B
C++
#pragma once
|
|
|
|
#include "../layout/DwindleLayout.hpp"
|
|
#include "../layout/MasterLayout.hpp"
|
|
|
|
class CLayoutManager {
|
|
public:
|
|
IHyprLayout* getCurrentLayout();
|
|
|
|
void switchToLayout(std::string);
|
|
|
|
private:
|
|
enum HYPRLAYOUTS {
|
|
LAYOUT_DWINDLE = 0,
|
|
LAYOUT_MASTER
|
|
};
|
|
|
|
HYPRLAYOUTS m_iCurrentLayoutID = LAYOUT_DWINDLE;
|
|
|
|
CHyprDwindleLayout m_cDwindleLayout;
|
|
CHyprMasterLayout m_cMasterLayout;
|
|
};
|
|
|
|
inline std::unique_ptr<CLayoutManager> g_pLayoutManager; |