diff --git a/hyprbars/barDeco.hpp b/hyprbars/barDeco.hpp index df354a6..0c4fb12 100644 --- a/hyprbars/barDeco.hpp +++ b/hyprbars/barDeco.hpp @@ -37,36 +37,36 @@ class CHyprBar : public IHyprWindowDecoration { void setHidden(bool hidden); private: - SWindowDecorationExtents m_seExtents; + SBoxExtents m_seExtents; - PHLWINDOWREF m_pWindow; + PHLWINDOWREF m_pWindow; - CBox m_bAssignedBox; + CBox m_bAssignedBox; - SP m_pTextTex; - SP m_pButtonsTex; + SP m_pTextTex; + SP m_pButtonsTex; - bool m_bWindowSizeChanged = false; - bool m_bHidden = false; + bool m_bWindowSizeChanged = false; + bool m_bHidden = false; - Vector2D cursorRelativeToBar(); + Vector2D cursorRelativeToBar(); - void renderBarTitle(const Vector2D& bufferSize, const float scale); - void renderText(SP out, const std::string& text, const CColor& color, const Vector2D& bufferSize, const float scale, const int fontSize); - void renderBarButtons(const Vector2D& bufferSize, const float scale); - void renderBarButtonsText(CBox* barBox, const float scale, const float a); - void onMouseDown(SCallbackInfo& info, IPointer::SButtonEvent e); - void onMouseMove(Vector2D coords); - CBox assignedBoxGlobal(); + void renderBarTitle(const Vector2D& bufferSize, const float scale); + void renderText(SP out, const std::string& text, const CColor& color, const Vector2D& bufferSize, const float scale, const int fontSize); + void renderBarButtons(const Vector2D& bufferSize, const float scale); + void renderBarButtonsText(CBox* barBox, const float scale, const float a); + void onMouseDown(SCallbackInfo& info, IPointer::SButtonEvent e); + void onMouseMove(Vector2D coords); + CBox assignedBoxGlobal(); - SP m_pMouseButtonCallback; - SP m_pMouseMoveCallback; + SP m_pMouseButtonCallback; + SP m_pMouseMoveCallback; - std::string m_szLastTitle; + std::string m_szLastTitle; - bool m_bDraggingThis = false; - bool m_bDragPending = false; - bool m_bCancelledDown = false; + bool m_bDraggingThis = false; + bool m_bDragPending = false; + bool m_bCancelledDown = false; // for dynamic updates int m_iLastHeight = 0;