From f049f382f03c946b967e1a53368c82f845299cb4 Mon Sep 17 00:00:00 2001 From: JF Date: Sat, 18 Jan 2020 18:17:52 +0100 Subject: Encapsulate the drawing of the screen into Screens classes. --- src/DisplayApp/Screens/Message.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/DisplayApp/Screens/Message.h (limited to 'src/DisplayApp/Screens/Message.h') 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 +#include +#include +#include "Screen.h" +#include +#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}; + }; + } + } +} -- cgit v1.2.3