aboutsummaryrefslogtreecommitdiff
path: root/engines/gargoyle/windows.h
diff options
context:
space:
mode:
authorPaul Gilbert2018-11-03 12:35:55 -0700
committerPaul Gilbert2018-12-08 19:05:59 -0800
commit063cfb35efa155e6383a0262b20baa656732a89a (patch)
treebbd1de7dede6ea610b0a28614b852a74e22bf6c6 /engines/gargoyle/windows.h
parenta24b27b14ac72f5f88d9dce57f79f5b9039fe482 (diff)
downloadscummvm-rg350-063cfb35efa155e6383a0262b20baa656732a89a.tar.gz
scummvm-rg350-063cfb35efa155e6383a0262b20baa656732a89a.tar.bz2
scummvm-rg350-063cfb35efa155e6383a0262b20baa656732a89a.zip
GLK: Added glk style methods
Diffstat (limited to 'engines/gargoyle/windows.h')
-rw-r--r--engines/gargoyle/windows.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/engines/gargoyle/windows.h b/engines/gargoyle/windows.h
index 20ce03d9b2..bd24892939 100644
--- a/engines/gargoyle/windows.h
+++ b/engines/gargoyle/windows.h
@@ -222,7 +222,14 @@ struct WindowStyle {
FACES font;
byte bg[3];
byte fg[3];
- int reverse;
+ bool reverse;
+
+ /**
+ * Equality comparison
+ */
+ bool operator==(const WindowStyle &src) const {
+ return !memcmp(this, &src, sizeof(WindowStyle));
+ }
};
/**
@@ -295,6 +302,8 @@ struct Attributes {
* Window definition
*/
class Window {
+protected:
+ WindowStyle _styles[style_NUMSTYLES]; ///< style hints and settings for grid and buffer windows
public:
Windows *_windows;
glui32 _rock;
@@ -448,6 +457,11 @@ public:
virtual void fillRect(glui32 color, const Rect &box);
virtual void setBackgroundColor(glui32 color);
+
+ /**
+ * Returns a pointer to the styles for the window
+ */
+ virtual const WindowStyle *getStyles() const;
};
typedef Window *winid_t;