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 {
|
2022-12-16 18:17:31 +01:00
|
|
|
public:
|
|
|
|
IHyprLayout* getCurrentLayout();
|
2022-03-19 15:59:53 +01:00
|
|
|
|
2022-12-16 18:17:31 +01:00
|
|
|
void switchToLayout(std::string);
|
2022-03-19 15:59:53 +01:00
|
|
|
|
2022-12-16 18:17:31 +01:00
|
|
|
private:
|
|
|
|
enum HYPRLAYOUTS
|
|
|
|
{
|
2022-03-19 15:59:53 +01:00
|
|
|
DWINDLE = 0,
|
2022-07-16 15:57:31 +02:00
|
|
|
MASTER
|
2022-03-19 15:59:53 +01:00
|
|
|
};
|
|
|
|
|
2022-12-16 18:17:31 +01:00
|
|
|
HYPRLAYOUTS m_iCurrentLayoutID = DWINDLE;
|
2022-03-19 15:59:53 +01:00
|
|
|
|
|
|
|
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;
|