aboutsummaryrefslogtreecommitdiffstats
path: root/src/DisplayApp/Screens/Screen.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/Screen.h
parentf14ba4a7e336607f88548963213100cf1478290c (diff)
Encapsulate the drawing of the screen into Screens classes.
Diffstat (limited to 'src/DisplayApp/Screens/Screen.h')
-rw-r--r--src/DisplayApp/Screens/Screen.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/DisplayApp/Screens/Screen.h b/src/DisplayApp/Screens/Screen.h
new file mode 100644
index 00000000..5e2fa43e
--- /dev/null
+++ b/src/DisplayApp/Screens/Screen.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#include <Components/Gfx/Gfx.h>
+
+namespace Pinetime {
+ namespace Applications {
+ namespace Screens {
+ class Screen {
+ public:
+ Screen(Components::Gfx& gfx) : gfx{gfx} {}
+ virtual void Refresh(bool fullRefresh) = 0;
+
+ protected:
+ Components::Gfx& gfx;
+ };
+ }
+ }
+}