summaryrefslogtreecommitdiff
path: root/src/devices/Tablet.hpp
diff options
context:
space:
mode:
authordavc0n <dconti.dev@gmail.com>2025-04-29 19:51:07 +0200
committerGitHub <noreply@github.com>2025-04-29 19:51:07 +0200
commite9c3fcbb64c2df147a176052fb219f0f8a7b89ec (patch)
treee95dcd235eff2027cbc7e8269100399d00da858e /src/devices/Tablet.hpp
parent40147d3a3f0843b548769e79e4a345d67b9e3c04 (diff)
devices: refactor class member vars (#10206)
Diffstat (limited to 'src/devices/Tablet.hpp')
-rw-r--r--src/devices/Tablet.hpp48
1 files changed, 24 insertions, 24 deletions
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<CTablet> self;
+ WP<CTablet> 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<Aquamarine::ITablet> tablet);
- WP<Aquamarine::ITablet> tablet;
+ WP<Aquamarine::ITablet> 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<CTabletPad> self;
- WP<CTabletTool> parent;
+ WP<CTabletPad> m_self;
+ WP<CTabletTool> m_parent;
private:
CTabletPad(SP<Aquamarine::ITabletPad> pad);
- WP<Aquamarine::ITabletPad> pad;
+ WP<Aquamarine::ITabletPad> 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<CWLSurfaceResource> getSurface();
void setSurface(SP<CWLSurfaceResource>);
- WP<CTabletTool> self;
- Vector2D tilt;
- bool active = false; // true if in proximity
- uint32_t toolCapabilities = 0;
+ WP<CTabletTool> m_self;
+ Vector2D m_tilt;
+ bool m_active = false; // true if in proximity
+ uint32_t m_toolCapabilities = 0;
- bool isDown = false;
- std::vector<uint32_t> buttonsDown;
- Vector2D absolutePos; // last known absolute position.
+ bool m_isDown = false;
+ std::vector<uint32_t> m_buttonsDown;
+ Vector2D m_absolutePos; // last known absolute position.
private:
CTabletTool(SP<Aquamarine::ITabletTool> tool);
- WP<CWLSurfaceResource> pSurface;
- WP<Aquamarine::ITabletTool> tool;
+ WP<CWLSurfaceResource> m_surface;
+ WP<Aquamarine::ITabletTool> m_tool;
struct {
CHyprSignalListener destroySurface;
CHyprSignalListener destroyTool;
- } listeners;
+ } m_listeners;
}; \ No newline at end of file