summaryrefslogtreecommitdiff
path: root/src/DisplayApp/Screens/Label.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-03-22 11:03:17 (GMT)
committerJF <jf@codingfield.com>2020-03-22 11:03:17 (GMT)
commitfb64ba8fb6953fe7e98db6874207a687d0d57bac (patch)
tree786d1b187697c927dfcdb684da48e2feca80e0ce /src/DisplayApp/Screens/Label.h
parent8ed6ffaaf8d0ad681c4f84b89e4a72792edb5a8f (diff)
Add new App : Sysinfo. It displays various info about the running system : version, date/time, battery, brightness and resetreason. It contains placeholder for future use (like mac address, uptime,...).
Diffstat (limited to 'src/DisplayApp/Screens/Label.h')
-rw-r--r--src/DisplayApp/Screens/Label.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/DisplayApp/Screens/Label.h b/src/DisplayApp/Screens/Label.h
new file mode 100644
index 0000000..b73540f
--- /dev/null
+++ b/src/DisplayApp/Screens/Label.h
@@ -0,0 +1,24 @@
+#pragma once
+
+#include <vector>
+#include "Screen.h"
+
+namespace Pinetime {
+ namespace Applications {
+ namespace Screens {
+ class Label {
+ public:
+ Label() = default;
+ explicit Label(const char* text);
+ ~Label();
+ void Refresh();
+
+ void Hide();
+ void Show();
+ private:
+ lv_obj_t * label = nullptr;
+ const char* text = nullptr;
+ };
+ }
+ }
+} \ No newline at end of file