diff --git a/hyprbars/barDeco.hpp b/hyprbars/barDeco.hpp index 4d2cd97..7cc7287 100644 --- a/hyprbars/barDeco.hpp +++ b/hyprbars/barDeco.hpp @@ -36,36 +36,36 @@ class CHyprBar : public IHyprWindowDecoration { void setHidden(bool hidden); private: - SWindowDecorationExtents m_seExtents; + SWindowDecorationExtents m_seExtents; - PHLWINDOWREF m_pWindow; + PHLWINDOWREF m_pWindow; - CBox m_bAssignedBox; + CBox m_bAssignedBox; - CTexture m_tTextTex; - CTexture m_tButtonsTex; + CTexture m_tTextTex; + CTexture m_tButtonsTex; - 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(CTexture& 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, wlr_pointer_button_event* e); - void onMouseMove(Vector2D coords); - CBox assignedBoxGlobal(); + void renderBarTitle(const Vector2D& bufferSize, const float scale); + void renderText(CTexture& 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, wlr_pointer_button_event* e); + void onMouseMove(Vector2D coords); + CBox assignedBoxGlobal(); - std::shared_ptr m_pMouseButtonCallback; - std::shared_ptr 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; diff --git a/hyprexpo/overview.hpp b/hyprexpo/overview.hpp index ad5efb7..6a862f9 100644 --- a/hyprexpo/overview.hpp +++ b/hyprexpo/overview.hpp @@ -54,27 +54,27 @@ class COverview { CBox box; }; - Vector2D lastMousePosLocal = Vector2D{}; + Vector2D lastMousePosLocal = Vector2D{}; - int openedID = -1; - int closeOnID = -1; + int openedID = -1; + int closeOnID = -1; - std::vector images; + std::vector images; - PHLWORKSPACE startedOn; + PHLWORKSPACE startedOn; - CAnimatedVariable size; - CAnimatedVariable pos; + CAnimatedVariable size; + CAnimatedVariable pos; - bool closing = false; + bool closing = false; - std::shared_ptr mouseMoveHook; - std::shared_ptr mouseButtonHook; - std::shared_ptr touchMoveHook; - std::shared_ptr touchUpHook; + SP mouseMoveHook; + SP mouseButtonHook; + SP touchMoveHook; + SP touchUpHook; - bool swipe = false; - bool swipeWasCommenced = false; + bool swipe = false; + bool swipeWasCommenced = false; }; inline std::unique_ptr g_pOverview; \ No newline at end of file diff --git a/hyprtrails/trail.hpp b/hyprtrails/trail.hpp index c7fd84f..ce31640 100644 --- a/hyprtrails/trail.hpp +++ b/hyprtrails/trail.hpp @@ -46,7 +46,7 @@ class CTrail : public IHyprWindowDecoration { virtual void damageEntire(); private: - std::shared_ptr pTickCb; + SP pTickCb; void onTick(); std::deque> m_dLastGeoms;