From 063cfb35efa155e6383a0262b20baa656732a89a Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 3 Nov 2018 12:35:55 -0700 Subject: GLK: Added glk style methods --- engines/gargoyle/windows.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'engines/gargoyle/windows.h') 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; -- cgit v1.2.3