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:
|
2022-12-26 12:05:34 +01:00
|
|
|
enum HYPRLAYOUTS {
|
|
|
|
LAYOUT_DWINDLE = 0,
|
|
|
|
LAYOUT_MASTER
|
2022-03-19 15:59:53 +01:00
|
|
|
};
|
|
|
|
|
2022-12-26 12:05:34 +01:00
|
|
|
HYPRLAYOUTS m_iCurrentLayoutID = LAYOUT_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;
|