aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui/macwindow.h
diff options
context:
space:
mode:
authorTorbjörn Andersson2016-09-04 00:33:38 +0200
committerTorbjörn Andersson2016-09-04 08:31:39 +0200
commit40c65540fac262fbd70478eb8017f260780fb1a4 (patch)
tree9866418945598f4b4c7e355d43969b30bc2303df /graphics/macgui/macwindow.h
parent29535c0a55410684a263b493b1c75112f352bab6 (diff)
downloadscummvm-rg350-40c65540fac262fbd70478eb8017f260780fb1a4.tar.gz
scummvm-rg350-40c65540fac262fbd70478eb8017f260780fb1a4.tar.bz2
scummvm-rg350-40c65540fac262fbd70478eb8017f260780fb1a4.zip
GRAPHICS: Add setBackgroundPattern() to MacWindow
Set a background pattern for the window surface. For instance, the exits window in the MacVenture engine should have a light gray background, rather than a white one, and this will allow it to get one without having to draw it by itself.
Diffstat (limited to 'graphics/macgui/macwindow.h')
-rw-r--r--graphics/macgui/macwindow.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/graphics/macgui/macwindow.h b/graphics/macgui/macwindow.h
index ee25a9e7e3..5d06da383d 100644
--- a/graphics/macgui/macwindow.h
+++ b/graphics/macgui/macwindow.h
@@ -216,6 +216,12 @@ public:
const Common::Rect &getInnerDimensions() { return _innerDims; }
/**
+ * Set a background pattern for the window.
+ * @param pattern
+ */
+ void setBackgroundPattern(int pattern);
+
+ /**
* Similar to that described in BaseMacWindow.
* @param g See BaseMacWindow.
* @param forceRedraw If true, the borders are guarranteed to redraw.
@@ -282,6 +288,7 @@ private:
void prepareBorderSurface(ManagedSurface *g);
void drawSimpleBorder(ManagedSurface *g);
void drawBorderFromSurface(ManagedSurface *g);
+ void drawPattern();
void drawBox(ManagedSurface *g, int x, int y, int w, int h);
void fillRect(ManagedSurface *g, int x, int y, int w, int h, int color);
const Font *getTitleFont();
@@ -298,6 +305,9 @@ private:
MacWindowBorder _macBorder;
+ int _pattern;
+ bool _hasPattern;
+
bool _scrollable;
bool _resizable;
bool _active;