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/DisplayApp.h | |
| parent | 82fdffe8ad9b567655a81353b2b498bea19222fe (diff) | |
Revert "sans animations"
This reverts commit 268ddbdc7622ab2a6b0490701064ffdde13fee51.
Diffstat (limited to 'src/displayapp/DisplayApp.h')
| -rw-r--r-- | src/displayapp/DisplayApp.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/displayapp/DisplayApp.h b/src/displayapp/DisplayApp.h index ad28499..b79952d 100644 --- a/src/displayapp/DisplayApp.h +++ b/src/displayapp/DisplayApp.h @@ -42,6 +42,7 @@ namespace Pinetime { class DisplayApp { public: enum class States { Idle, Running }; + enum class FullRefreshDirections { None, Up, Down, Left, Right, LeftAnim, RightAnim }; DisplayApp(Drivers::St7789& lcd, Components::LittleVgl& lvgl, @@ -59,7 +60,9 @@ namespace Pinetime { void Start(System::BootErrors error); void PushMessage(Display::Messages msg); - void StartApp(Apps app); + void StartApp(Apps app, DisplayApp::FullRefreshDirections direction); + + void SetFullRefresh(FullRefreshDirections direction); void Register(Pinetime::System::SystemTask* systemTask); @@ -93,16 +96,19 @@ namespace Pinetime { Apps currentApp = Apps::None; Apps returnToApp = Apps::None; + FullRefreshDirections returnDirection = FullRefreshDirections::None; + TouchEvents returnTouchEvent = TouchEvents::None; TouchEvents GetGesture(); static void Process(void* instance); void InitHw(); void Refresh(); - void ReturnApp(Apps app); - void LoadApp(Apps app); + void ReturnApp(Apps app, DisplayApp::FullRefreshDirections direction, TouchEvents touchEvent); + void LoadApp(Apps app, DisplayApp::FullRefreshDirections direction); void PushMessageToSystemTask(Pinetime::System::Messages message); Apps nextApp = Apps::None; + DisplayApp::FullRefreshDirections nextDirection; System::BootErrors bootError; }; } |
