Apply clang-format to all C++ files
This commit is contained in:
parent
718fbdab98
commit
7f45538eb5
68 changed files with 477 additions and 381 deletions
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue