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