aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/windows.h
diff options
context:
space:
mode:
authorPaul Gilbert2019-08-04 14:40:01 -0700
committerPaul Gilbert2019-08-04 16:44:22 -0700
commit8a51f305335810d52d3633f8b1cc910b84c5f0e6 (patch)
tree4d3330d15c82086bd6fb94e04ef3f4cdd208cfba /engines/glk/windows.h
parent2d0912b59b6a5d02f5bfb131e0c288382ca83432 (diff)
downloadscummvm-rg350-8a51f305335810d52d3633f8b1cc910b84c5f0e6.tar.gz
scummvm-rg350-8a51f305335810d52d3633f8b1cc910b84c5f0e6.tar.bz2
scummvm-rg350-8a51f305335810d52d3633f8b1cc910b84c5f0e6.zip
GLK: Create an intermediate TextWindow base class for text windows
This will make it easier to check whether a window is textual without having to check for both the grid & buffer classes explicitly
Diffstat (limited to 'engines/glk/windows.h')
-rw-r--r--engines/glk/windows.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/glk/windows.h b/engines/glk/windows.h
index 1974b3e4a4..f3edbb2069 100644
--- a/engines/glk/windows.h
+++ b/engines/glk/windows.h
@@ -595,6 +595,17 @@ public:
BlankWindow(Windows *windows, uint rock);
};
+/**
+ * Abstract common base for the text window classes
+ */
+class TextWindow : public Window {
+public:
+ /**
+ * Constructor
+ */
+ TextWindow(Windows *windows, uint rock) : Window(windows, rock) {}
+};
+
} // End of namespace Glk
#endif