aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui/macwindow.h
diff options
context:
space:
mode:
authorBorja Lorente2016-07-29 12:08:41 +0200
committerBorja Lorente2016-07-31 14:05:15 +0200
commit6c89eaa1b8b3c674e5f507bd3bf5d29db959e244 (patch)
tree0a972dce82b59c6a703b3c9582d8999064a7b5a3 /graphics/macgui/macwindow.h
parent98d0838df3ee3697268b846d9d114e2a9788cb40 (diff)
downloadscummvm-rg350-6c89eaa1b8b3c674e5f507bd3bf5d29db959e244.tar.gz
scummvm-rg350-6c89eaa1b8b3c674e5f507bd3bf5d29db959e244.tar.bz2
scummvm-rg350-6c89eaa1b8b3c674e5f507bd3bf5d29db959e244.zip
GRAPHICS: Include border loading code
Diffstat (limited to 'graphics/macgui/macwindow.h')
-rw-r--r--graphics/macgui/macwindow.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/graphics/macgui/macwindow.h b/graphics/macgui/macwindow.h
index 908eab84b4..dbbaff2d1e 100644
--- a/graphics/macgui/macwindow.h
+++ b/graphics/macgui/macwindow.h
@@ -51,6 +51,7 @@
#include "graphics/managed_surface.h"
#include "graphics/transparent_surface.h"
#include "graphics/nine_patch.h"
+#include "graphics/palette.h"
namespace Graphics {
@@ -126,6 +127,7 @@ public:
const Common::Rect &getInnerDimensions() { return _innerDims; }
bool draw(ManagedSurface *g, bool forceRedraw = false);
+ bool drawTR(Surface &g, int x, int y, int w, int h, bool forceRedraw);
void setActive(bool active);
void setTitle(Common::String &title) { _title = title; }
@@ -134,21 +136,21 @@ public:
bool processEvent(Common::Event &event);
bool hasAllFocus() { return _beingDragged || _beingResized; }
+ void setBorders(TransparentSurface *source);
+
private:
void drawBorder();
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();
void updateInnerDims();
- WindowClick isInBorder(int x, int y);
-
- void initBorders(ManagedSurface *tr);
+ WindowClick isInBorder(int x, int y);
private:
ManagedSurface _borderSurface;
ManagedSurface _composeSurface;
- NinePatchBitmap *_bmp;
+ NinePatchBitmap _bmp;
bool _scrollable;
bool _resizable;