summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/Notifications.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-10-18 15:35:36 (GMT)
committerJF <jf@codingfield.com>2020-10-18 15:35:36 (GMT)
commit28bc4344193cda2936ff0f69ae51aa79a7840998 (patch)
treede18b2878c8bea8b745a63e9969a88460ca175d8 /src/displayapp/screens/Notifications.h
parente4f0a95af8ce6cfb71602c5f5e437ab68dd582ec (diff)
[WIP] New notification app that uses software scrolling effect.
Diffstat (limited to 'src/displayapp/screens/Notifications.h')
-rw-r--r--src/displayapp/screens/Notifications.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/displayapp/screens/Notifications.h b/src/displayapp/screens/Notifications.h
new file mode 100644
index 0000000..b4d0bed
--- /dev/null
+++ b/src/displayapp/screens/Notifications.h
@@ -0,0 +1,36 @@
+#pragma once
+
+#include <cstdint>
+#include "Screen.h"
+#include <bits/unique_ptr.h>
+#include "Modal.h"
+#include <lvgl/src/lv_core/lv_style.h>
+#include <displayapp/Apps.h>
+
+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;
+ };
+ }
+ }
+}