2023-02-28 21:30:51 +01:00
|
|
|
#pragma once
|
|
|
|
|
2023-05-01 03:57:48 +02:00
|
|
|
#include <hyprland/src/plugins/PluginAPI.hpp>
|
2024-06-08 11:12:34 +02:00
|
|
|
#include <hyprland/src/render/Texture.hpp>
|
2023-02-28 21:30:51 +01:00
|
|
|
|
2023-10-29 18:33:32 +01:00
|
|
|
inline HANDLE PHANDLE = nullptr;
|
|
|
|
|
|
|
|
struct SHyprButton {
|
2024-06-08 11:12:34 +02:00
|
|
|
std::string cmd = "";
|
|
|
|
CColor col = CColor(0, 0, 0, 0);
|
|
|
|
float size = 10;
|
|
|
|
std::string icon = "";
|
|
|
|
SP<CTexture> iconTex = makeShared<CTexture>();
|
2023-10-29 18:33:32 +01:00
|
|
|
};
|
|
|
|
|
2023-10-29 23:31:11 +01:00
|
|
|
class CHyprBar;
|
|
|
|
|
2023-10-29 18:33:32 +01:00
|
|
|
struct SGlobalState {
|
|
|
|
std::vector<SHyprButton> buttons;
|
2023-10-29 23:31:11 +01:00
|
|
|
std::vector<CHyprBar*> bars;
|
2023-10-29 18:33:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
inline std::unique_ptr<SGlobalState> g_pGlobalState;
|