diff options
author | Borja Lorente | 2016-07-29 10:27:30 +0200 |
---|---|---|
committer | Borja Lorente | 2016-08-02 08:33:43 +0200 |
commit | bc798d9ff4d46ba758fa2d225cdd741f4c94ff18 (patch) | |
tree | 0b500c6fe1b753a224bbcc4ea279f1ede0934e17 /graphics/macgui/macwindowmanager.h | |
parent | 2b586e7c5959c839323d24d1f788c9a836ece765 (diff) | |
download | scummvm-rg350-bc798d9ff4d46ba758fa2d225cdd741f4c94ff18.tar.gz scummvm-rg350-bc798d9ff4d46ba758fa2d225cdd741f4c94ff18.tar.bz2 scummvm-rg350-bc798d9ff4d46ba758fa2d225cdd741f4c94ff18.zip |
GRAPHICS: Add custom border measures
Diffstat (limited to 'graphics/macgui/macwindowmanager.h')
-rw-r--r-- | graphics/macgui/macwindowmanager.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/graphics/macgui/macwindowmanager.h b/graphics/macgui/macwindowmanager.h index 21bc3815db..c208089c24 100644 --- a/graphics/macgui/macwindowmanager.h +++ b/graphics/macgui/macwindowmanager.h @@ -56,7 +56,7 @@ #include "graphics/fontman.h" #include "graphics/macgui/macwindow.h" -namespace Graphics { +namespace Graphics { namespace MacGUIConstants { enum { @@ -68,7 +68,8 @@ namespace MacGUIConstants { kColorGray = 1, kColorWhite = 2, kColorGreen = 3, - kColorGreen2 = 4 + kColorGreen2 = 4, + kColorCount }; enum { @@ -98,6 +99,7 @@ public: MacWindow *addWindow(bool scrollable, bool resizable, bool editable); Menu *addMenu(); void setActive(int id); + void removeWindow(MacWindow *target); void setFullRefresh(bool redraw) { _fullRefresh = true; } @@ -117,12 +119,19 @@ private: void drawDesktop(); void loadFonts(); + void removeMarked(); + void removeFromStack(BaseMacWindow *target); + void removeFromWindowList(BaseMacWindow *target); + private: ManagedSurface *_screen; Common::List<BaseMacWindow *> _windowStack; Common::Array<BaseMacWindow *> _windows; + Common::List<BaseMacWindow *> _windowsToRemove; + bool _needsRemoval; + int _lastId; int _activeWindow; |