summaryrefslogtreecommitdiff
path: root/src/DisplayApp/Screens/Message.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-01-18 18:17:52 +0100
committerJF <jf@codingfield.com>2020-01-18 18:17:52 +0100
commitf049f382f03c946b967e1a53368c82f845299cb4 (patch)
treeca3da186765e5d0bc89a310d2c648bc12ff189d3 /src/DisplayApp/Screens/Message.h
parentf14ba4a7e336607f88548963213100cf1478290c (diff)
Encapsulate the drawing of the screen into Screens classes.
Diffstat (limited to 'src/DisplayApp/Screens/Message.h')
-rw-r--r--src/DisplayApp/Screens/Message.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/DisplayApp/Screens/Message.h b/src/DisplayApp/Screens/Message.h
new file mode 100644
index 00000000..ac300faf
--- /dev/null
+++ b/src/DisplayApp/Screens/Message.h
@@ -0,0 +1,26 @@
+#pragma once
+
+#include <cstdint>
+#include <chrono>
+#include <Components/Gfx/Gfx.h>
+#include "Screen.h"
+#include <bits/unique_ptr.h>
+#include "../Fonts/lcdfont14.h"
+#include "../Fonts/lcdfont70.h"
+#include "../../Version.h"
+
+namespace Pinetime {
+ namespace Applications {
+ namespace Screens {
+ class Message : public Screen{
+ public:
+ Message(Components::Gfx& gfx) : Screen(gfx) {}
+ void Refresh(bool fullRefresh) override;
+
+ private:
+ const FONT_INFO largeFont {lCD_70ptFontInfo.height, lCD_70ptFontInfo.startChar, lCD_70ptFontInfo.endChar, lCD_70ptFontInfo.spacePixels, lCD_70ptFontInfo.charInfo, lCD_70ptFontInfo.data};
+ const FONT_INFO smallFont {lCD_14ptFontInfo.height, lCD_14ptFontInfo.startChar, lCD_14ptFontInfo.endChar, lCD_14ptFontInfo.spacePixels, lCD_14ptFontInfo.charInfo, lCD_14ptFontInfo.data};
+ };
+ }
+ }
+}