aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui/macwindowborder.h
diff options
context:
space:
mode:
authorEugene Sandulenko2019-09-29 23:24:37 +0200
committerEugene Sandulenko2019-09-29 23:26:05 +0200
commit3fbcc67766745d28f1b39d95459e53835beb628a (patch)
tree998fdb7b1df000fc73aa8e95479b22a90bf2b96a /graphics/macgui/macwindowborder.h
parent45ef1eb16683ea876758b35eef48a54be34d5f2a (diff)
downloadscummvm-rg350-3fbcc67766745d28f1b39d95459e53835beb628a.tar.gz
scummvm-rg350-3fbcc67766745d28f1b39d95459e53835beb628a.tar.bz2
scummvm-rg350-3fbcc67766745d28f1b39d95459e53835beb628a.zip
GRAPHICS: MACGUI: Load border padding directly from the 9-patch
Diffstat (limited to 'graphics/macgui/macwindowborder.h')
-rw-r--r--graphics/macgui/macwindowborder.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/graphics/macgui/macwindowborder.h b/graphics/macgui/macwindowborder.h
index 1500b9b847..330e407460 100644
--- a/graphics/macgui/macwindowborder.h
+++ b/graphics/macgui/macwindowborder.h
@@ -32,13 +32,6 @@
namespace Graphics {
-enum MacBorderOffset {
- kBorderOffsetLeft = 0,
- kBorderOffsetRight = 1,
- kBorderOffsetTop = 2,
- kBorderOffsetBottom = 3
-};
-
/**
* A representation of a custom border, which allows for arbitrary border offsets
* and nine-patch resizable displays for both active and inactive states.
@@ -89,6 +82,7 @@ public:
* @param bottom Thickness (in pixels) of the bottom side of the border.
*/
void setOffsets(int left, int right, int top, int bottom);
+ void setOffsets(Common::Rect &rect);
/**
* Accessor method to retrieve a given border.
@@ -97,7 +91,7 @@ public:
* @param offset The identifier of the offset wanted.
* @return The desired offset in pixels.
*/
- int getOffset(MacBorderOffset offset);
+ Common::Rect &getOffset();
/**
* Blit the desired border (active or inactive) into a destination surface.
@@ -115,8 +109,7 @@ private:
bool _activeInitialized;
bool _inactiveInitialized;
- bool _hasOffsets;
- int _borderOffsets[4];
+ Common::Rect _borderOffsets;
};