diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-04-19 18:47:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-19 18:47:49 +0100 |
| commit | a360c31d0434898888e710f4a5f560200f50cecf (patch) | |
| tree | f68746c77b416654ec059f670e2e66af62581de3 /src/hyprerror/HyprError.hpp | |
| parent | 889ee4f26d77ff0c36f5c4767ef0629371fd2c18 (diff) | |
errorOverlay: modernize, refactor, use GPU rendering (#14122)
Improves the overlay's rendering:
- GPU accelerated
- supports gradients
- wraps
- cleaner code a bit
Diffstat (limited to 'src/hyprerror/HyprError.hpp')
| -rw-r--r-- | src/hyprerror/HyprError.hpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/hyprerror/HyprError.hpp b/src/hyprerror/HyprError.hpp deleted file mode 100644 index f9c52283..00000000 --- a/src/hyprerror/HyprError.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#pragma once - -#include "../defines.hpp" -#include "../render/Texture.hpp" -#include "../helpers/AnimatedVariable.hpp" - -#include <cairo/cairo.h> - -class CHyprError { - public: - CHyprError(); - ~CHyprError() = default; - - void queueCreate(std::string message, const CHyprColor& color); - void queueError(std::string err); - void draw(); - void destroy(); - - bool active(); - float height(); // logical - - SP<Render::ITexture> texture(); - - private: - void createQueued(); - std::string m_queued = ""; - CHyprColor m_queuedColor; - bool m_queuedDestroy = false; - bool m_isCreated = false; - SP<Render::ITexture> m_texture; - PHLANIMVAR<float> m_fadeOpacity; - CBox m_damageBox = {0, 0, 0, 0}; - float m_lastHeight = 0.F; - - bool m_monitorChanged = false; -}; - -inline UP<CHyprError> g_pHyprError; // This is a full-screen error. Treat it with respect, and there can only be one at a time. |
