hyprland-dwindle-autogroup/include/globals.hpp

23 lines
873 B
C++
Raw Permalink Normal View History

2023-03-31 11:48:22 +00:00
#pragma once
2024-05-14 12:22:09 +00:00
#include <hyprland/src/config/ConfigManager.hpp>
#include <hyprland/src/desktop/DesktopTypes.hpp> // needed for DwindleLayout.hpp
2023-10-02 20:27:13 +00:00
#include <hyprland/src/layout/DwindleLayout.hpp>
#include <hyprland/src/plugins/HookSystem.hpp>
#include <hyprland/src/plugins/PluginAPI.hpp>
2024-05-14 12:22:09 +00:00
#include <hyprlang.hpp>
2023-03-31 11:48:22 +00:00
2023-10-02 20:27:13 +00:00
const CColor s_notifyColor = {0x61 / 255.0f, 0xAF / 255.0f, 0xEF / 255.0f, 1.0f}; // RGBA
const PLUGIN_DESCRIPTION_INFO s_pluginDescription = {"dwindle-autogroup", "Dwindle Autogroup", "ItsDrike", "1.0"};
2023-03-31 11:48:22 +00:00
inline HANDLE PHANDLE = nullptr;
2023-10-02 20:27:13 +00:00
typedef void* (*createGroupFuncT)(CWindow*);
inline CFunctionHook* g_pCreateGroupHook = nullptr;
typedef void* (*destroyGroupFuncT)(CWindow*);
inline CFunctionHook* g_pDestroyGroupHook = nullptr;
2024-05-14 12:22:09 +00:00
typedef SDwindleNodeData* (*nodeFromWindowFuncT)(void*, PHLWINDOW);
2023-10-02 20:27:13 +00:00
inline nodeFromWindowFuncT g_pNodeFromWindow = nullptr;