xoreos  0.0.5
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 
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:
49 
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
TextureHandle _texture
Definition: cursor.h:50
void render()
Render the cursor.
Definition: cursor.cpp:59
A class holding an UTF-8 string.
Definition: ustring.h:48
A cursor.
A handle to an Aurora texture.
An abstract cursor.
Definition: cursor.h:31
Common::UString _name
Definition: cursor.h:48
Unicode string handling.
A cursor as used in the Aurora engines.
Definition: cursor.h:39
A handle to a texture.
Definition: texturehandle.h:51