xoreos
0.0.5
src
graphics
aurora
cursor.h
Go to the documentation of this file.
1
/* xoreos - A reimplementation of BioWare's Aurora engine
2
*
3
* xoreos is the legal property of its developers, whose names
4
* can be found in the AUTHORS file distributed with this source
5
* distribution.
6
*
7
* xoreos is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation; either version 3
10
* of the License, or (at your option) any later version.
11
*
12
* xoreos 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 xoreos. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
25
#ifndef GRAPHICS_AURORA_CURSOR_H
26
#define GRAPHICS_AURORA_CURSOR_H
27
28
#include "
src/common/ustring.h
"
29
30
#include "
src/graphics/cursor.h
"
31
32
#include "
src/graphics/aurora/texturehandle.h
"
33
34
namespace
Graphics
{
35
36
namespace
Aurora
{
37
39
class
Cursor
:
public
Graphics::Cursor
{
40
public
:
41
Cursor
(
const
Common::UString
&name,
int
hotspotX = -1,
int
hotspotY = -1);
42
~Cursor
();
43
45
void
render
();
46
47
private
:
48
Common::UString
_name
;
49
50
TextureHandle
_texture
;
51
52
int
_width
;
53
int
_height
;
54
55
int
_hotspotX
;
56
int
_hotspotY
;
57
58
void
load
();
59
};
60
61
}
// End of namespace Aurora
62
63
}
// End of namespace Graphics
64
65
#endif // GRAPHICS_AURORA_CURSOR_H
Graphics::Aurora::Cursor::_height
int _height
Definition:
cursor.h:53
Graphics::Aurora::Cursor::_texture
TextureHandle _texture
Definition:
cursor.h:50
Graphics::Aurora::Cursor::render
void render()
Render the cursor.
Definition:
cursor.cpp:59
Common::UString
A class holding an UTF-8 string.
Definition:
ustring.h:48
cursor.h
A cursor.
Graphics::Aurora::Cursor::_hotspotY
int _hotspotY
Definition:
cursor.h:56
Graphics::Cursor::Cursor
Cursor()
Definition:
cursor.cpp:29
texturehandle.h
A handle to an Aurora texture.
Graphics::Cursor
An abstract cursor.
Definition:
cursor.h:31
Aurora
Definition:
2dafile.cpp:51
Graphics::Aurora::Cursor::_name
Common::UString _name
Definition:
cursor.h:48
ustring.h
Unicode string handling.
Graphics::Aurora::Cursor::~Cursor
~Cursor()
Definition:
cursor.cpp:56
Graphics::Aurora::Cursor
A cursor as used in the Aurora engines.
Definition:
cursor.h:39
Graphics::Aurora::Cursor::_width
int _width
Definition:
cursor.h:52
Graphics
Definition:
loadprogress.h:33
Graphics::Aurora::TextureHandle
A handle to a texture.
Definition:
texturehandle.h:51
Graphics::Aurora::Cursor::_hotspotX
int _hotspotX
Definition:
cursor.h:55
Graphics::Aurora::Cursor::load
void load()
Definition:
cursor.cpp:82
Generated on Sun Nov 18 2018 15:13:41 for xoreos by
1.8.14