[WIP] New notification app that uses software scrolling effect.
This commit is contained in:
36
src/displayapp/screens/Notifications.h
Normal file
36
src/displayapp/screens/Notifications.h
Normal file
@@ -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;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user