hyprland-plugins/hyprbars/globals.hpp

22 lines
437 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>
2023-02-28 21:30:51 +01:00
2023-10-29 18:33:32 +01:00
inline HANDLE PHANDLE = nullptr;
struct SHyprButton {
std::string cmd = "";
CColor col = CColor(0, 0, 0, 0);
float size = 10;
std::string icon = "";
CTexture iconTex;
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
};
inline std::unique_ptr<SGlobalState> g_pGlobalState;