From 28bc4344193cda2936ff0f69ae51aa79a7840998 Mon Sep 17 00:00:00 2001 From: JF Date: Sun, 18 Oct 2020 17:35:36 +0200 Subject: [WIP] New notification app that uses software scrolling effect. --- src/displayapp/screens/Notifications.h | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/displayapp/screens/Notifications.h (limited to 'src/displayapp/screens/Notifications.h') diff --git a/src/displayapp/screens/Notifications.h b/src/displayapp/screens/Notifications.h new file mode 100644 index 00000000..b4d0beda --- /dev/null +++ b/src/displayapp/screens/Notifications.h @@ -0,0 +1,36 @@ +#pragma once + +#include +#include "Screen.h" +#include +#include "Modal.h" +#include +#include + +namespace Pinetime { + namespace Applications { + namespace Screens { + class Notifications : public Screen { + public: + explicit Notifications(DisplayApp* app); + ~Notifications() override; + + bool Refresh() override; + bool OnButtonPushed() override; + void OnObjectEvent(lv_obj_t* obj, lv_event_t event, uint32_t buttonId); + bool OnTouchEvent(Pinetime::Applications::TouchEvents event) override; + + private: + class ListWidget { + public: + ListWidget(); + private: + lv_obj_t* page = nullptr; + }; + + bool running = true; + ListWidget list; + }; + } + } +} -- cgit v1.2.3-70-g09d2