summaryrefslogtreecommitdiff
path: root/src/DisplayApp/Screens/Label.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-08-14 19:51:03 +0200
committerGitea <gitea@fake.local>2020-08-14 19:51:03 +0200
commit32f20fa994fec9e21d2af4d7bd287b94316b3970 (patch)
tree00ad6d1e622b113b8e0a03f890703f5b7adeb8c1 /src/DisplayApp/Screens/Label.h
parent27fa273d8315f972931dba7971a99b0fbba7360e (diff)
parent6c678e872d51247f5e47730218598209e96bdd0a (diff)
Merge branch 'application-list' of JF/PineTime into develop
Diffstat (limited to 'src/DisplayApp/Screens/Label.h')
-rw-r--r--src/DisplayApp/Screens/Label.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/DisplayApp/Screens/Label.h b/src/DisplayApp/Screens/Label.h
index b73540f4..3e7b3797 100644
--- a/src/DisplayApp/Screens/Label.h
+++ b/src/DisplayApp/Screens/Label.h
@@ -2,19 +2,18 @@
#include <vector>
#include "Screen.h"
+#include <lvgl/lvgl.h>
namespace Pinetime {
namespace Applications {
namespace Screens {
- class Label {
+
+ class Label : public Screen {
public:
- Label() = default;
- explicit Label(const char* text);
- ~Label();
- void Refresh();
+ Label(DisplayApp* app, const char* text);
+ ~Label() override;
+ bool Refresh() override {return false;}
- void Hide();
- void Show();
private:
lv_obj_t * label = nullptr;
const char* text = nullptr;