ScummVM API documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
macgui_v5.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_V5_H
23
#define SCUMM_MACGUI_MACGUI_V5_H
24
25
#include "common/events.h"
26
#include "common/rect.h"
27
#include "common/str.h"
28
29
namespace
Scumm
{
30
31
class
MacGuiImpl;
32
33
class
MacV5Gui
:
public
MacGuiImpl
{
34
public
:
35
MacV5Gui
(
ScummEngine
*vm,
const
Common::Path
&resourceFile);
36
~
MacV5Gui
() {}
37
38
bool
initialize()
override
;
39
40
const
Common::String
name()
const override
{
return
_strsStrings[kMSIGameName]; }
41
int
getNumColors()
const override
{
return
256; }
42
43
bool
handleEvent(
Common::Event
event)
override
;
44
45
const
Graphics::Font
*getFontByScummId(int32
id
)
override
;
46
47
void
setupCursor(
int
&width,
int
&height,
int
&hotspotX,
int
&hotspotY,
int
&animate)
override
;
48
49
void
resetAfterLoad()
override
;
50
void
update(
int
delta)
override
{}
51
52
protected
:
53
bool
getFontParams(FontId fontId,
int
&
id
,
int
&size,
int
&slant)
const override
;
54
55
void
updateMenus()
override
;
56
bool
handleMenu(
int
id
,
Common::String
&name)
override
;
57
58
void
runAboutDialog()
override
;
59
bool
runOptionsDialog()
override
;
60
61
private
:
62
struct
AboutPage {
63
const
TextLine
*text;
64
int
drawArea;
65
uint32 delayMs;
66
};
67
68
uint _roughProgress = 0;
69
bool
_roughWarned =
false
;
70
71
void
runAboutDialogMI1(
MacDialogWindow
*window);
72
void
runAboutDialogMI2(
MacDialogWindow
*window);
73
void
runAboutDialogIndy4(
MacDialogWindow
*window);
74
void
runAboutDialogIndy4Demo(
MacDialogWindow
*window);
75
76
void
drawShadow(
Graphics::Surface
*s,
int
x,
int
y,
int
h,
Common::Pair<int, int>
*drawData);
77
};
78
79
}
// End of namespace Scumm
80
#endif
Common::Pair
Definition:
util.h:157
Scumm::MacGuiImpl
Definition:
macgui_impl.h:52
Common::String
Definition:
str.h:59
Graphics::Font
Definition:
font.h:83
Graphics::Surface
Definition:
surface.h:67
Common::Path
Definition:
path.h:52
Scumm::ScummEngine
Definition:
scumm.h:504
Common::Event
Definition:
events.h:199
Scumm::MacGuiImpl::MacDialogWindow
Definition:
macgui_impl.h:655
Scumm::MacV5Gui
Definition:
macgui_v5.h:33
Scumm
Definition:
actor.h:30
Scumm::MacGuiImpl::TextLine
Definition:
macgui_impl.h:199
engines
scumm
macgui
macgui_v5.h
Generated on Wed Apr 9 2025 09:20:44 for ScummVM API documentation by
1.8.13