ScummVM API documentation
macgui.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef SCUMM_MACGUI_MACGUI_H
23 #define SCUMM_MACGUI_MACGUI_H
24 
25 #include "common/events.h"
26 #include "common/str.h"
27 
28 namespace Graphics {
29 class Font;
30 struct Surface;
31 }
32 
33 namespace Scumm {
34 
35 class ScummEngine;
36 class Actor;
37 class MacGuiImpl;
38 
39 class MacGui {
40  friend class ScummEngine;
41 
42 private:
43  MacGuiImpl *_impl = nullptr;
44 
45 public:
46  MacGui(ScummEngine *vm, const Common::Path &resourceFile);
47  ~MacGui();
48 
49  int getNumColors() const;
50 
51  bool initialize();
52  void reset();
53  void update(int delta);
54  void updateWindowManager();
55 
56  void resetAfterLoad();
57  bool handleEvent(Common::Event event);
58 
59  void setupCursor(int &width, int &height, int &hotspotX, int &hotspotY, int &animate);
60 
61  void setPaletteDirty();
62 
63  const Graphics::Font *getFontByScummId(int32 id);
64 
65  void drawBanner(char *message);
66  void undrawBanner();
67 
68  bool runQuitDialog();
69  bool runRestartDialog();
70 
71  // Indiana Jones and the Last Crusade
72  bool isVerbGuiActive() const;
73 
74  Graphics::Surface *textArea() const;
75  void clearTextArea();
76  void initTextAreaForActor(Actor *a, byte color);
77  void printCharToTextArea(int chr, int x, int y, int color);
78 
79  // Loom
80  void runDraftsInventory();
81 };
82 
83 } // End of namespace Scumm
84 #endif
Definition: macgui_impl.h:55
Definition: font.h:83
Definition: surface.h:67
Definition: path.h:52
Definition: scumm.h:519
Definition: events.h:199
Definition: formatinfo.h:28
Definition: actor.h:97
Definition: macgui.h:39
Definition: actor.h:30