The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cursor.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2003 - 2016 by David White <[email protected]>
3  Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 /** @file */
16 
17 #ifndef CURSOR_HPP_INCLUDED
18 #define CURSOR_HPP_INCLUDED
19 
20 struct surface;
21 
22 namespace cursor
23 {
24 
25 struct manager
26 {
27  manager();
28  ~manager();
29 };
30 
32 
33 /**
34  * Use the default parameter to reset cursors.
35  * e.g. after a change in color cursor preferences
36  */
38 void set_dragging(bool drag);
39 CURSOR_TYPE get();
40 
41 // These aren't used, but leaving the prototypes doesn't hurt and allows avoiding an SDL include
42 void draw(surface screen);
43 void undraw(surface screen);
44 
45 void set_focus(bool focus);
46 
47 struct setter
48 {
50  ~setter();
51 
52 private:
54 };
55 
56 } // end namespace cursor
57 
58 #endif
void set(CURSOR_TYPE type)
Use the default parameter to reset cursors.
Definition: cursor.cpp:154
GLuint GLuint GLsizei GLenum type
Definition: glew.h:1221
game_display * screen
Definition: resources.cpp:27
CURSOR_TYPE
Definition: cursor.hpp:31
void set_dragging(bool drag)
Definition: cursor.cpp:174
void set_focus(bool focus)
Definition: cursor.cpp:199
void draw(surface screen)
void undraw(surface screen)
setter(CURSOR_TYPE type)
Definition: cursor.cpp:207
CURSOR_TYPE old_
Definition: cursor.hpp:53