aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui/macwindowborder.h
diff options
context:
space:
mode:
authorBorja Lorente2016-07-29 12:16:08 +0200
committerBorja Lorente2016-07-31 14:47:19 +0200
commit3b1ba50c88931074184b63bc919cdaa47a749283 (patch)
treea5513918ff4241cfe646f16d04672d4af12db23d /graphics/macgui/macwindowborder.h
parentfafd209d04f57680c141ea34f37f3a0f59080939 (diff)
downloadscummvm-rg350-3b1ba50c88931074184b63bc919cdaa47a749283.tar.gz
scummvm-rg350-3b1ba50c88931074184b63bc919cdaa47a749283.tar.bz2
scummvm-rg350-3b1ba50c88931074184b63bc919cdaa47a749283.zip
GRAPHICS: First approximation to custom border offsets
Diffstat (limited to 'graphics/macgui/macwindowborder.h')
-rw-r--r--graphics/macgui/macwindowborder.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/graphics/macgui/macwindowborder.h b/graphics/macgui/macwindowborder.h
index 1e46e1a017..f1d0d2c81a 100644
--- a/graphics/macgui/macwindowborder.h
+++ b/graphics/macgui/macwindowborder.h
@@ -57,6 +57,13 @@
namespace Graphics {
+enum MacBorderOffset {
+ kBorderOffsetLeft = 0,
+ kBorderOffsetRight = 1,
+ kBorderOffsetTop = 2,
+ kBorderOffsetBottom = 3
+};
+
class MacWindowBorder {
public:
MacWindowBorder();
@@ -65,6 +72,11 @@ public:
bool hasBorder(bool active);
void addActiveBorder(TransparentSurface &source);
void addInactiveBorder(TransparentSurface &source);
+
+ bool hasOffsets();
+ void setBorderOffsets(int left, int right, int top, int bottom);
+ int getBorderOffset(MacBorderOffset offset);
+
void blitBorderInto(ManagedSurface &destination, bool active);
private:
@@ -75,8 +87,10 @@ private:
bool _activeInitialized;
bool _inactiveInitialized;
+ bool _hasOffsets;
+ int _borderOffsets[4];
+
};
} // End of namespace Graphics
#endif
-