diff options
author | Finlay Davidson <finlay.davidson@coderclass.nl> | 2022-05-09 17:16:08 +0200 |
---|---|---|
committer | Riku Isokoski <riksu9000@gmail.com> | 2022-06-05 09:15:46 +0300 |
commit | 7f45538eb53235ab4015fcf13533796c8759c7bc (patch) | |
tree | 79d9a2f60e8fb13cb5356bcc5c6e93259449530b /src/touchhandler | |
parent | 718fbdab98ae80923a548ac03b7843f5d618a4f6 (diff) |
Apply clang-format to all C++ files
Diffstat (limited to 'src/touchhandler')
-rw-r--r-- | src/touchhandler/TouchHandler.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/touchhandler/TouchHandler.h b/src/touchhandler/TouchHandler.h index fb3d2654..332041e5 100644 --- a/src/touchhandler/TouchHandler.h +++ b/src/touchhandler/TouchHandler.h @@ -11,30 +11,30 @@ namespace Pinetime { } namespace Controllers { class TouchHandler { - public: - explicit TouchHandler(Drivers::Cst816S&, Components::LittleVgl&); - void CancelTap(); - bool GetNewTouchInfo(); - void UpdateLvglTouchPoint(); + public: + explicit TouchHandler(Drivers::Cst816S&, Components::LittleVgl&); + void CancelTap(); + bool GetNewTouchInfo(); + void UpdateLvglTouchPoint(); - bool IsTouching() const { - return info.touching; - } - uint8_t GetX() const { - return info.x; - } - uint8_t GetY() const { - return info.y; - } - Pinetime::Applications::TouchEvents GestureGet(); - private: + bool IsTouching() const { + return info.touching; + } + uint8_t GetX() const { + return info.x; + } + uint8_t GetY() const { + return info.y; + } + Pinetime::Applications::TouchEvents GestureGet(); - Pinetime::Drivers::Cst816S::TouchInfos info; - Pinetime::Drivers::Cst816S& touchPanel; - Pinetime::Components::LittleVgl& lvgl; - Pinetime::Applications::TouchEvents gesture; - bool isCancelled = false; - bool gestureReleased = true; + private: + Pinetime::Drivers::Cst816S::TouchInfos info; + Pinetime::Drivers::Cst816S& touchPanel; + Pinetime::Components::LittleVgl& lvgl; + Pinetime::Applications::TouchEvents gesture; + bool isCancelled = false; + bool gestureReleased = true; }; } } |