hyprland-plugins/hyprbars/globals.hpp

24 lines
527 B
C++
Raw Normal View History

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 = "";
2024-12-04 15:58:09 +01:00
CHyprColor col = CHyprColor(0, 0, 0, 0);
2024-06-08 11:12:34 +02:00
float size = 10;
std::string icon = "";
SP<CTexture> iconTex = makeShared<CTexture>();
2023-10-29 18:33:32 +01:00
};
class CHyprBar;
2023-10-29 18:33:32 +01:00
struct SGlobalState {
std::vector<SHyprButton> buttons;
std::vector<CHyprBar*> bars;
2023-10-29 18:33:32 +01:00
};
2024-12-04 15:58:09 +01:00
inline std::unique_ptr<SGlobalState> g_pGlobalState;