From d9cad5e1b63f2e1e86eb54551c72d17ee4dd070d Mon Sep 17 00:00:00 2001 From: davc0n Date: Sat, 3 May 2025 16:02:49 +0200 Subject: protocols: refactor class member vars (core) (#10259) --- src/protocols/core/Seat.hpp | 62 ++++++++++++++++++++++----------------------- 1 file changed, 31 insertions(+), 31 deletions(-) (limited to 'src/protocols/core/Seat.hpp') diff --git a/src/protocols/core/Seat.hpp b/src/protocols/core/Seat.hpp index a4889379..35839385 100644 --- a/src/protocols/core/Seat.hpp +++ b/src/protocols/core/Seat.hpp @@ -38,7 +38,7 @@ class CCursorSurfaceRole : public ISurfaceRole { static std::vector& cursorPixelData(SP surface); private: - std::vector cursorShmPixelData; + std::vector m_cursorShmPixelData; }; class CWLTouchResource { @@ -54,17 +54,17 @@ class CWLTouchResource { void sendShape(int32_t id, const Vector2D& shape); void sendOrientation(int32_t id, double angle); - WP owner; + WP m_owner; private: - SP resource; - WP currentSurface; + SP m_resource; + WP m_currentSurface; - int fingers = 0; + int m_fingers = 0; struct { CHyprSignalListener destroySurface; - } listeners; + } m_listeners; }; class CWLPointerResource { @@ -85,17 +85,17 @@ class CWLPointerResource { void sendAxisValue120(wl_pointer_axis axis, int32_t value120); void sendAxisRelativeDirection(wl_pointer_axis axis, wl_pointer_axis_relative_direction direction); - WP owner; + WP m_owner; private: - SP resource; - WP currentSurface; + SP m_resource; + WP m_currentSurface; - std::vector pressedButtons; + std::vector m_pressedButtons; struct { CHyprSignalListener destroySurface; - } listeners; + } m_listeners; }; class CWLKeyboardResource { @@ -110,19 +110,19 @@ class CWLKeyboardResource { void sendMods(uint32_t depressed, uint32_t latched, uint32_t locked, uint32_t group); void repeatInfo(uint32_t rate, uint32_t delayMs); - WP owner; + WP m_owner; private: - SP resource; - WP currentSurface; + SP m_resource; + WP m_currentSurface; struct { CHyprSignalListener destroySurface; - } listeners; + } m_listeners; - std::string lastKeymap = ""; - uint32_t lastRate = 0; - uint32_t lastDelayMs = 0; + std::string m_lastKeymap = ""; + uint32_t m_lastRate = 0; + uint32_t m_lastDelayMs = 0; }; class CWLSeatResource { @@ -135,19 +135,19 @@ class CWLSeatResource { bool good(); wl_client* client(); - std::vector> pointers; - std::vector> keyboards; - std::vector> touches; + std::vector> m_pointers; + std::vector> m_keyboards; + std::vector> m_touches; - WP self; + WP m_self; struct { CSignal destroy; - } events; + } m_events; private: - SP resource; - wl_client* pClient = nullptr; + SP m_resource; + wl_client* m_client = nullptr; }; class CWLSeatProtocol : public IWaylandProtocol { @@ -158,7 +158,7 @@ class CWLSeatProtocol : public IWaylandProtocol { struct { CSignal newSeatResource; // SP - } events; + } m_events; private: void updateCapabilities(uint32_t caps); // in IHID caps @@ -171,15 +171,15 @@ class CWLSeatProtocol : public IWaylandProtocol { void destroyResource(CWLPointerResource* resource); // - std::vector> m_vSeatResources; - std::vector> m_vKeyboards; - std::vector> m_vTouches; - std::vector> m_vPointers; + std::vector> m_seatResources; + std::vector> m_keyboards; + std::vector> m_touches; + std::vector> m_pointers; SP seatResourceForClient(wl_client* client); // - uint32_t currentCaps = 0; + uint32_t m_currentCaps = 0; friend class CWLSeatResource; friend class CWLKeyboardResource; -- cgit v1.2.3