mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2024-11-22 02:35:57 +01:00
22 lines
No EOL
437 B
C++
22 lines
No EOL
437 B
C++
#pragma once
|
|
|
|
#include <hyprland/src/plugins/PluginAPI.hpp>
|
|
|
|
inline HANDLE PHANDLE = nullptr;
|
|
|
|
struct SHyprButton {
|
|
std::string cmd = "";
|
|
CColor col = CColor(0, 0, 0, 0);
|
|
float size = 10;
|
|
std::string icon = "";
|
|
CTexture iconTex;
|
|
};
|
|
|
|
class CHyprBar;
|
|
|
|
struct SGlobalState {
|
|
std::vector<SHyprButton> buttons;
|
|
std::vector<CHyprBar*> bars;
|
|
};
|
|
|
|
inline std::unique_ptr<SGlobalState> g_pGlobalState; |