25 #include "common/scummsys.h" 26 #include "common/singleton.h" 27 #include "common/stack.h" 28 #include "common/str.h" 29 #include "common/list.h" 30 #include "common/mutex.h" 32 #include "gui/ThemeEngine.h" 33 #include "gui/widget.h" 39 class MacWindowManager;
60 kIconsSetLoadedCmd =
'icns' 67 #define g_gui (GUI::GuiManager::instance()) 71 #define kLineHeight (g_gui.getFontHeight() + 2) 87 ~GuiManager()
override;
101 void scheduleTopDialogRedraw();
102 void scheduleFullRedraw();
104 bool isActive()
const {
return ! _dialogStack.empty(); }
109 ThemeEval *xmlEval() {
return _theme->getEvaluator(); }
111 void lockIconsSet() { _iconsMutex.lock(); }
112 void unlockIconsSet() { _iconsMutex.unlock(); }
115 int16 getGUIWidth()
const {
return _baseWidth; }
116 int16 getGUIHeight()
const {
return _baseHeight; }
117 float getScaleFactor()
const {
return _scaleFactor; }
118 void computeScaleFactor();
120 bool useLowResGUI()
const {
return _baseWidth <= 320; }
122 bool useRTL()
const {
return _useRTL; }
123 void setLanguageRTL();
125 void setDialogPaddings(
int l,
int r);
126 int getOverlayOffset() {
return _topDialogRightPadding - _topDialogLeftPadding; }
132 int getCharWidth(uint32 c,
ThemeEngine::FontStyle style = ThemeEngine::kFontStyleBold)
const {
return _theme->getCharWidth(c, style); }
133 int getKerningOffset(uint32 left, uint32 right,
ThemeEngine::FontStyle font = ThemeEngine::kFontStyleBold)
const {
return _theme->getKerningOffset(left, right, font); }
141 bool checkScreenChange();
149 void initTextToSpeech();
157 void displayTopDialogOnly(
bool mode);
175 RedrawStatus _redrawStatus;
176 int _lastScreenChangeID;
177 int16 _baseWidth, _baseHeight;
179 DialogStack _dialogStack;
187 int _topDialogLeftPadding;
188 int _topDialogRightPadding;
190 bool _displayTopDialogOnly;
194 bool _iconsSetChanged;
200 MousePos() : x(-1), y(-1), count(0) { time = 0; }
204 } _lastClick, _lastMousePosition, _globalMousePosition;
207 TooltipData() : x(-1), y(-1) { time = 0; wdg =
nullptr; }
214 uint32 _cursorAnimateCounter;
215 uint32 _cursorAnimateTimer;
226 void enableKeymap(
bool enabled);
231 void openDialog(
Dialog *dialog);
232 void closeTopDialog();
235 void redrawInternalTopDialogOnly();
236 void redrawInternal();
239 void animateCursor();
241 Dialog *getTopDialog()
const;
245 void giveFocusToDialog(
Dialog *dialog);
246 void setLastMousePos(int16 x, int16 y);
Definition: gui-manager.h:83
Definition: gui-manager.h:199
Definition: ThemeEval.h:37
Definition: macwindowmanager.h:149
Definition: gui-manager.h:219
Definition: archive.h:312
Definition: algorithm.h:29
Definition: formatinfo.h:28
FontStyle
Font style selector.
Definition: ThemeEngine.h:274
Definition: ThemeEngine.h:209
virtual int getFontHeight() const =0
GraphicsMode
Definition: ThemeEngine.h:334
Definition: singleton.h:42