From e9c3fcbb64c2df147a176052fb219f0f8a7b89ec Mon Sep 17 00:00:00 2001 From: davc0n Date: Tue, 29 Apr 2025 19:51:07 +0200 Subject: devices: refactor class member vars (#10206) --- src/devices/Tablet.hpp | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'src/devices/Tablet.hpp') diff --git a/src/devices/Tablet.hpp b/src/devices/Tablet.hpp index c3a9a2c9..b98c7f85 100644 --- a/src/devices/Tablet.hpp +++ b/src/devices/Tablet.hpp @@ -86,20 +86,20 @@ class CTablet : public IHID { CSignal proximity; CSignal tip; CSignal button; - } tabletEvents; + } m_tabletEvents; - WP self; + WP m_self; - bool relativeInput = false; - bool absolutePos = false; - std::string boundOutput = ""; - CBox activeArea; - CBox boundBox; + bool m_relativeInput = false; + bool m_absolutePos = false; + std::string m_boundOutput = ""; + CBox m_activeArea; + CBox m_boundBox; private: CTablet(SP tablet); - WP tablet; + WP m_tablet; struct { CHyprSignalListener destroy; @@ -107,7 +107,7 @@ class CTablet : public IHID { CHyprSignalListener proximity; CHyprSignalListener tip; CHyprSignalListener button; - } listeners; + } m_listeners; }; class CTabletPad : public IHID { @@ -148,15 +148,15 @@ class CTabletPad : public IHID { CSignal ring; CSignal strip; CSignal attach; - } padEvents; + } m_padEvents; - WP self; - WP parent; + WP m_self; + WP m_parent; private: CTabletPad(SP pad); - WP pad; + WP m_pad; struct { CHyprSignalListener destroy; @@ -164,7 +164,7 @@ class CTabletPad : public IHID { CHyprSignalListener strip; CHyprSignalListener button; CHyprSignalListener attach; - } listeners; + } m_listeners; }; class CTabletTool : public IHID { @@ -198,23 +198,23 @@ class CTabletTool : public IHID { SP getSurface(); void setSurface(SP); - WP self; - Vector2D tilt; - bool active = false; // true if in proximity - uint32_t toolCapabilities = 0; + WP m_self; + Vector2D m_tilt; + bool m_active = false; // true if in proximity + uint32_t m_toolCapabilities = 0; - bool isDown = false; - std::vector buttonsDown; - Vector2D absolutePos; // last known absolute position. + bool m_isDown = false; + std::vector m_buttonsDown; + Vector2D m_absolutePos; // last known absolute position. private: CTabletTool(SP tool); - WP pSurface; - WP tool; + WP m_surface; + WP m_tool; struct { CHyprSignalListener destroySurface; CHyprSignalListener destroyTool; - } listeners; + } m_listeners; }; \ No newline at end of file -- cgit v1.2.3