This commit is contained in:
Zakk
2024-04-05 21:16:13 -04:00
commit b6eef56607
7 changed files with 623 additions and 0 deletions

28
globals.hpp Normal file
View File

@@ -0,0 +1,28 @@
#pragma once
#include <list>
#include <hyprland/src/plugins/PluginAPI.hpp>
inline HANDLE PHANDLE = nullptr;
class CHyprEasyLabel;
struct SGlobalState {
std::vector<CHyprEasyLabel*> motionLabels;
};
struct SMotionActionDesc {
int textSize = 15;
CColor textColor = CColor(0,0,0,1);
CColor backgroundColor = CColor(1,1,1,1);
std::string textFont = "Sans";
std::string commandString = "";
CCssGapData boxPadding = CCssGapData();
int borderSize = 0;
CGradientValueData borderColor = CGradientValueData();
int rounding = 0;
std::string motionKeys = "abcdefghijklmnopqrstuvwxyz1234567890";
};
inline std::unique_ptr<SGlobalState> g_pGlobalState;