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
28namespace Graphics {
29class Font;
30struct Surface;
31}
32
33namespace Scumm {
34
35class ScummEngine;
36class Actor;
37class MacGuiImpl;
38
39class MacGui {
40 friend class ScummEngine;
41
42private:
43 MacGuiImpl *_impl = nullptr;
44
45public:
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 void queryQuit(bool returnToLauncher);
69
70 bool runQuitDialog();
71 bool runRestartDialog();
72
73 // Indiana Jones and the Last Crusade
74 bool isVerbGuiActive() const;
75
76 Graphics::Surface *textArea() const;
77 void clearTextArea();
78 void initTextAreaForActor(Actor *a, byte color);
79 void printCharToTextArea(int chr, int x, int y, int color);
80
81 // Loom
82 void runDraftsInventory();
83};
84
85} // End of namespace Scumm
86#endif
Definition: path.h:52
Definition: font.h:83
Definition: actor.h:100
Definition: macgui.h:39
Definition: macgui_impl.h:52
Definition: scumm.h:536
Definition: formatinfo.h:28
Definition: actor.h:30
Definition: events.h:218
Definition: surface.h:67