The Battle for Wesnoth  1.15.1+dev
cursor.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2003 - 2018 by David White <dave@whitevine.net>
3  Part of the Battle for Wesnoth Project https://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 #pragma once
18 
19 class surface;
20 
21 namespace cursor
22 {
23 
24 struct manager
25 {
26  manager();
27  ~manager();
28 };
29 
31 
32 /**
33  * Use the default parameter to reset cursors.
34  * e.g. after a change in color cursor preferences
35  */
36 void set(CURSOR_TYPE type = NUM_CURSORS);
37 void set_dragging(bool drag);
38 CURSOR_TYPE get();
39 
40 void set_focus(bool focus);
41 
42 struct setter
43 {
44  setter(CURSOR_TYPE type);
45  ~setter();
46 
47 private:
49 };
50 
51 } // end namespace cursor
CURSOR_TYPE
Definition: cursor.hpp:30
void set_dragging(bool drag)
Definition: cursor.cpp:193
void set_focus(bool focus)
Definition: cursor.cpp:218
CURSOR_TYPE old_
Definition: cursor.hpp:48