ScummVM API documentation
macgui_loom.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_LOOM_H
23
#define SCUMM_MACGUI_MACGUI_LOOM_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
MacLoomGui
:
public
MacGuiImpl
{
34
public
:
35
MacLoomGui
(
ScummEngine
*vm,
const
Common::Path
&resourceFile);
36
~
MacLoomGui
();
37
38
const
Common::String
name()
const
{
return
"Loom"
; }
39
40
bool
handleEvent(
Common::Event
event);
41
42
const
Graphics::Font
*getFontByScummId(int32
id
);
43
44
void
setupCursor(
int
&width,
int
&height,
int
&hotspotX,
int
&hotspotY,
int
&animate);
45
46
void
resetAfterLoad();
47
void
update(
int
delta);
48
49
void
runDraftsInventory();
50
51
protected
:
52
bool
getFontParams(FontId fontId,
int
&
id
,
int
&size,
int
&slant)
const
;
53
54
bool
handleMenu(
int
id
,
Common::String
&name);
55
56
void
runAboutDialog();
57
bool
runOpenDialog(
int
&saveSlotToHandle);
58
bool
runSaveDialog(
int
&saveSlotToHandle,
Common::String
&name);
59
bool
runOptionsDialog();
60
61
private
:
62
Graphics::Surface
*_practiceBox =
nullptr
;
63
Common::Point
_practiceBoxPos;
64
int
_practiceBoxNotes;
65
};
66
67
}
// End of namespace Scumm
68
#endif
Scumm::MacGuiImpl
Definition:
macgui_impl.h:47
Common::String
Definition:
str.h:59
Graphics::Font
Definition:
font.h:82
Graphics::Surface
Definition:
surface.h:66
Common::Path
Definition:
path.h:52
Scumm::ScummEngine
Definition:
scumm.h:518
Common::Event
Definition:
events.h:198
Common::Point
Definition:
rect.h:45
Scumm::MacLoomGui
Definition:
macgui_loom.h:33
Scumm
Definition:
actor.h:30
engines
scumm
macgui
macgui_loom.h
Generated on Thu May 16 2024 09:14:31 for ScummVM API documentation by
1.8.13