diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-03-26 06:49:50 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-03-26 06:49:50 (GMT) |
| commit | 1a8621c7b31746c86f59af0aa3f24c99b2eb0a69 (patch) | |
| tree | a3c250cb4b25cb05e6626ff804bb746804265e8c /src/displayapp/LittleVgl.h | |
| parent | 82fdffe8ad9b567655a81353b2b498bea19222fe (diff) | |
Revert "sans animations"
This reverts commit 268ddbdc7622ab2a6b0490701064ffdde13fee51.
Diffstat (limited to 'src/displayapp/LittleVgl.h')
| -rw-r--r-- | src/displayapp/LittleVgl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/displayapp/LittleVgl.h b/src/displayapp/LittleVgl.h index af77eba..1f8a3d7 100644 --- a/src/displayapp/LittleVgl.h +++ b/src/displayapp/LittleVgl.h @@ -11,6 +11,7 @@ namespace Pinetime { namespace Components { class LittleVgl { public: + enum class FullRefreshDirections { None, Up, Down, Left, Right, LeftAnim, RightAnim }; LittleVgl(Pinetime::Drivers::St7789& lcd, Pinetime::Drivers::Cst816S& touchPanel); LittleVgl(const LittleVgl&) = delete; @@ -22,6 +23,7 @@ namespace Pinetime { void FlushDisplay(const lv_area_t* area, lv_color_t* color_p); bool GetTouchPadInfo(lv_indev_data_t* ptr); + void SetFullRefresh(FullRefreshDirections direction); void SetNewTouchPoint(uint16_t x, uint16_t y, bool contact); private: @@ -46,6 +48,7 @@ namespace Pinetime { static constexpr uint8_t MaxScrollOffset() { return LV_VER_RES_MAX - nbWriteLines; } + FullRefreshDirections scrollDirection = FullRefreshDirections::None; uint16_t writeOffset = 0; uint16_t scrollOffset = 0; |
