aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui/macwindowmanager.h
diff options
context:
space:
mode:
authorEugene Sandulenko2018-07-08 19:23:06 +0200
committerEugene Sandulenko2018-07-11 22:45:36 +0200
commit2446810378c6279583a89ca0afc3733442607860 (patch)
tree9ad4f25081fd5a787f13dc28eebd7632c12a0a0d /graphics/macgui/macwindowmanager.h
parentc3144beac9041e322a7e13637f7bbb90b1f10dc6 (diff)
downloadscummvm-rg350-2446810378c6279583a89ca0afc3733442607860.tar.gz
scummvm-rg350-2446810378c6279583a89ca0afc3733442607860.tar.bz2
scummvm-rg350-2446810378c6279583a89ca0afc3733442607860.zip
GRAPHICS: MACGUI: Added possibility to specify WM behaviour
Diffstat (limited to 'graphics/macgui/macwindowmanager.h')
-rw-r--r--graphics/macgui/macwindowmanager.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/graphics/macgui/macwindowmanager.h b/graphics/macgui/macwindowmanager.h
index bc0224a321..d2f89361bb 100644
--- a/graphics/macgui/macwindowmanager.h
+++ b/graphics/macgui/macwindowmanager.h
@@ -55,6 +55,13 @@ enum {
kPatternLightGray = 5,
kPatternDarkGray = 6
};
+
+enum {
+ kWMModeNone = 0,
+ kWMModeNoDesktop = (1 << 0),
+ kWMModeAutohideMenu = (1 << 1)
+};
+
}
using namespace MacGUIConstants;
@@ -132,6 +139,16 @@ public:
* @return Pointer to a new empty menu.
*/
MacMenu *addMenu();
+
+ /**
+ * Set hot zone where menu appears (works only with autohide menu)
+ */
+ void setMenuHotzone(const Common::Rect &rect) { _menuHotzone = rect; }
+
+ /**
+ * Set delay in milliseconds when menu appears (works only with autohide menu)
+ */
+ void setMenuDelay(int delay) { _menuDelay = delay; }
/**
* Set the desired window state to active.
* @param id ID of the window that has to be set to active.
@@ -187,6 +204,8 @@ public:
void pushWatchCursor();
void popCursor();
+ void setMode(uint32 mode) { _mode = mode; }
+
public:
MacFontManager *_fontMan;
@@ -200,6 +219,8 @@ private:
private:
ManagedSurface *_screen;
+ uint32 _mode;
+
Common::List<BaseMacWindow *> _windowStack;
Common::Array<BaseMacWindow *> _windows;
@@ -214,6 +235,8 @@ private:
MacPatterns _patterns;
MacMenu *_menu;
+ Common::Rect _menuHotzone;
+ uint32 _menuDelay;
bool _cursorIsArrow;
};