ScummVM API documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
cursors.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 MEDIASTATION_CURSORS_H
23
#define MEDIASTATION_CURSORS_H
24
25
#include "common/scummsys.h"
26
#include "common/hashmap.h"
27
#include "common/str.h"
28
#include "
common/macresman.h
"
29
#include "common/formats/winexe.h"
30
#include "graphics/wincursor.h"
31
32
namespace
MediaStation
{
33
34
// Media Station stores cursors in the executable as named resources.
35
class
CursorManager
{
36
public
:
37
CursorManager
() {}
38
virtual
~
CursorManager
() {}
39
40
virtual
void
showCursor();
41
virtual
void
hideCursor();
42
43
virtual
void
setCursor(
const
Common::String
&name) = 0;
44
45
protected
:
46
virtual
void
setDefaultCursor();
47
};
48
49
class
WindowsCursorManager
:
public
CursorManager
{
50
public
:
51
WindowsCursorManager
(
const
Common::Path
&appName);
52
~
WindowsCursorManager
()
override
;
53
54
virtual
void
setCursor(
const
Common::String
&name)
override
;
55
56
protected
:
57
void
loadCursors(
const
Common::Path
&appName);
58
59
private
:
60
Common::HashMap<Common::String, Graphics::WinCursorGroup *>
_cursors;
61
};
62
63
class
MacCursorManager
:
public
CursorManager
{
64
public
:
65
explicit
MacCursorManager
(
const
Common::Path
&appName);
66
~
MacCursorManager
()
override
;
67
68
virtual
void
setCursor(
const
Common::String
&name)
override
;
69
70
private
:
71
Common::MacResManager
*_resFork;
72
};
73
74
}
// End of namespace MediaStation
75
76
#endif
MediaStation::MacCursorManager
Definition:
cursors.h:63
Common::MacResManager
Definition:
macresman.h:125
Common::String
Definition:
str.h:59
MediaStation
Definition:
asset.h:33
Common::Path
Definition:
path.h:52
MediaStation::CursorManager
Definition:
cursors.h:35
Common::HashMap
Definition:
hashmap.h:85
MediaStation::WindowsCursorManager
Definition:
cursors.h:49
macresman.h
engines
mediastation
cursors.h
Generated on Sun Apr 13 2025 09:19:27 for ScummVM API documentation by
1.8.13