aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui/macwindow.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/macwindow.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/macwindow.h')
-rw-r--r--graphics/macgui/macwindow.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/graphics/macgui/macwindow.h b/graphics/macgui/macwindow.h
index e9e2ffd34c..ce5cd1a813 100644
--- a/graphics/macgui/macwindow.h
+++ b/graphics/macgui/macwindow.h
@@ -116,7 +116,7 @@ protected:
bool (*_callback)(WindowClick, Common::Event &, void *);
void *_dataPtr;
-
+
MacWindowManager *_wm;
};
@@ -130,7 +130,7 @@ public:
const Common::Rect &getInnerDimensions() { return _innerDims; }
bool draw(ManagedSurface *g, bool forceRedraw = false);
-
+
void setActive(bool active);
void setTitle(Common::String &title) { _title = title; }
void setHighlight(WindowClick highlightedPart);
@@ -138,7 +138,7 @@ public:
bool processEvent(Common::Event &event);
bool hasAllFocus() { return _beingDragged || _beingResized; }
- void setBorder(TransparentSurface &border, bool active);
+ void setBorder(TransparentSurface &border, bool active, int lo, int ro, int to, int bo);
private:
void drawBorder();
@@ -149,7 +149,7 @@ private:
void fillRect(ManagedSurface *g, int x, int y, int w, int h, int color);
const Font *getTitleFont();
void updateInnerDims();
- WindowClick isInBorder(int x, int y);
+ WindowClick isInBorder(int x, int y);
private:
ManagedSurface _borderSurface;
@@ -162,6 +162,10 @@ private:
bool _active;
bool _borderIsDirty;
+ bool _closeable;
+
+ int _borderWidth;
+
bool _beingDragged, _beingResized;
int _draggedX, _draggedY;