00001 /* $Id: preferences_display.hpp 23842 2008-02-16 08:47:16Z mordante $ */ 00002 /* 00003 Copyright (C) 2003 - 2008 by David White <dave@whitevine.net> 00004 Part of the Battle for Wesnoth Project http://www.wesnoth.org/ 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License version 2 00008 or at your option any later version. 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY. 00011 00012 See the COPYING file for more details. 00013 */ 00014 00015 //! @file preferences_display.hpp 00016 //! 00017 00018 #ifndef PREFERENCES_DISPLAY_HPP_INCLUDED 00019 #define PREFERENCES_DISPLAY_HPP_INCLUDED 00020 00021 #include "game_preferences.hpp" 00022 00023 namespace preferences { 00024 00025 struct display_manager 00026 { 00027 display_manager(display* disp); 00028 ~display_manager(); 00029 }; 00030 00031 void set_fullscreen(bool ison); 00032 void set_resolution(const std::pair<int,int>& res); 00033 void set_turbo(bool ison); 00034 void set_grid(bool ison); 00035 void set_gamma(int gamma); 00036 void set_adjust_gamma(bool val); 00037 void set_turbo_speed(double speed); 00038 void set_colour_cursors(bool value); 00039 00040 // Control unit idle animations 00041 void set_idle_anim(bool ison); 00042 void set_idle_anim_rate(int rate); 00043 00044 void show_preferences_dialog(display& disp, const config& game_cfg); 00045 bool show_video_mode_dialog(display& disp); 00046 bool show_theme_dialog(display& disp); 00047 00048 // If prefs is non-null, save the hotkeys in that config 00049 // instead of the default. 00050 void show_hotkeys_dialog (display & disp, config *prefs=NULL); 00051 } // end namespace preferences 00052 00053 #endif
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |