2022-03-19 15:59:53 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../layout/DwindleLayout.hpp"
|
2022-07-16 15:57:31 +02:00
|
|
|
#include "../layout/MasterLayout.hpp"
|
2022-03-19 15:59:53 +01:00
|
|
|
|
|
|
|
class CLayoutManager {
|
|
|
|
public:
|
|
|
|
|
|
|
|
IHyprLayout* getCurrentLayout();
|
|
|
|
|
2022-07-16 15:57:31 +02:00
|
|
|
void switchToLayout(std::string);
|
|
|
|
|
2022-03-19 15:59:53 +01:00
|
|
|
private:
|
|
|
|
enum HYPRLAYOUTS {
|
|
|
|
DWINDLE = 0,
|
2022-07-16 15:57:31 +02:00
|
|
|
MASTER
|
2022-03-19 15:59:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
HYPRLAYOUTS m_iCurrentLayoutID = DWINDLE;
|
|
|
|
|
|
|
|
CHyprDwindleLayout m_cDwindleLayout;
|
2022-07-16 15:57:31 +02:00
|
|
|
CHyprMasterLayout m_cMasterLayout;
|
2022-03-19 15:59:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
inline std::unique_ptr<CLayoutManager> g_pLayoutManager;
|