The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
preferences_display.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 #ifndef PREFERENCES_DISPLAY_HPP_INCLUDED
16 #define PREFERENCES_DISPLAY_HPP_INCLUDED
17 
18 class config;
19 class display;
20 class CVideo;
21 #include <string>
22 
23 namespace preferences {
24 
28  };
29 
31 
32  void set_turbo(bool ison);
33  void set_grid(bool ison);
34  void set_turbo_speed(double speed);
35  void set_color_cursors(bool value);
36 
37  // Control unit idle animations
38  void set_idle_anim(bool ison);
39  void set_idle_anim_rate(int rate);
40 
42  void show_preferences_dialog(CVideo& disp, const config& game_cfg,
43  const DIALOG_OPEN_TO initial_view = VIEW_DEFAULT);
44  bool show_theme_dialog(CVideo& disp);
45 } // end namespace preferences
46 
47 #endif
void set_turbo(bool ison)
void set_grid(bool ison)
void set_preference_display_settings()
void show_wesnothd_server_search(CVideo &video)
Definition: video.hpp:58
bool show_theme_dialog(CVideo &video)
const config * game_cfg
Definition: help_impl.cpp:64
void set_idle_anim_rate(int rate)
void show_preferences_dialog(CVideo &video, const config &game_cfg, const DIALOG_OPEN_TO initial_view)
GLsizei const GLfloat * value
Definition: glew.h:1817
void set_turbo_speed(double speed)
void set_idle_anim(bool ison)
Modify, read and display user preferences.
void set_color_cursors(bool value)
A config object defines a single node in a WML file, with access to child nodes.
Definition: config.hpp:83