hyprerror: make hyprerror reserve space (#8040)

This commit is contained in:
Vaxry 2024-10-08 21:20:25 +01:00 committed by GitHub
parent 60308a2bb5
commit 91299f7039
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 45 additions and 4 deletions

View file

@ -11,9 +11,12 @@ class CHyprError {
CHyprError();
~CHyprError();
void queueCreate(std::string message, const CColor& color);
void draw();
void destroy();
void queueCreate(std::string message, const CColor& color);
void draw();
void destroy();
bool active();
float height(); // logical
private:
void createQueued();
@ -23,7 +26,8 @@ class CHyprError {
bool m_bIsCreated = false;
SP<CTexture> m_pTexture;
CAnimatedVariable<float> m_fFadeOpacity;
CBox m_bDamageBox = {0, 0, 0, 0};
CBox m_bDamageBox = {0, 0, 0, 0};
float m_fLastHeight = 0.F;
bool m_bMonitorChanged = false;
};