hyprland-plugins/hyprbars/globals.hpp

26 lines
601 B
C++
Raw Normal View History

2023-02-28 20:30:51 +00:00
#pragma once
2023-05-01 02:57:48 +01:00
#include <hyprland/src/plugins/PluginAPI.hpp>
2024-06-08 11:12:34 +02:00
#include <hyprland/src/render/Texture.hpp>
2023-02-28 20:30:51 +00:00
2023-10-29 17:33:32 +00:00
inline HANDLE PHANDLE = nullptr;
struct SHyprButton {
2024-06-08 11:12:34 +02:00
std::string cmd = "";
bool userfg = false;
CHyprColor fgcol = CHyprColor(0, 0, 0, 0);
CHyprColor bgcol = 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 17:33:32 +00:00
};
class CHyprBar;
2023-10-29 17:33:32 +00:00
struct SGlobalState {
2025-01-24 01:30:43 +00:00
std::vector<SHyprButton> buttons;
std::vector<WP<CHyprBar>> bars;
2023-10-29 17:33:32 +00:00
};
2025-01-24 01:30:43 +00:00
inline UP<SGlobalState> g_pGlobalState;