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
void
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
setPalette(
const
byte *palette, uint size);
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
Scumm::MacGuiImpl
Definition:
macgui_impl.h:55
Graphics::Font
Definition:
font.h:83
Graphics::Surface
Definition:
surface.h:67
Common::Path
Definition:
path.h:52
Scumm::ScummEngine
Definition:
scumm.h:518
Common::Event
Definition:
events.h:199
Graphics
Definition:
formatinfo.h:28
Scumm::Actor
Definition:
actor.h:97
Scumm::MacGui
Definition:
macgui.h:39
Scumm
Definition:
actor.h:30
engines
scumm
macgui
macgui.h
Generated on Thu Nov 14 2024 09:21:02 for ScummVM API documentation by
1.8.13