The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Functions
preferences.hpp File Reference
#include "terrain/translation.hpp"
#include <SDL.h>
#include <utility>
Include dependency graph for preferences.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  preferences::base_manager
 

Namespaces

 hotkey
 Keyboard shortcuts for game actions.
 
 preferences
 Modify, read and display user preferences.
 

Functions

void preferences::write_preferences ()
 
void preferences::set (const std::string &key, const std::string &value)
 
void preferences::set (const std::string &key, char const *value)
 
void preferences::set (const std::string &key, bool value)
 
void preferences::set (const std::string &key, int value)
 
void preferences::clear (const std::string &key)
 
void preferences::set_child (const std::string &key, const config &val)
 
const configpreferences::get_child (const std::string &key)
 
std::string preferences::get (const std::string &key)
 
std::string preferences::get (const std::string &key, const std::string &def)
 
bool preferences::get (const std::string &key, bool def)
 
void preferences::erase (const std::string &key)
 
bool preferences::have_setting (const std::string &key)
 
void preferences::disable_preferences_save ()
 
configpreferences::get_prefs ()
 
std::string preferences::core_id ()
 
void preferences::set_core_id (const std::string &core_id)
 
bool preferences::scroll_to_action ()
 
void preferences::set_scroll_to_action (bool ison)
 
int preferences::min_allowed_width ()
 
int preferences::min_allowed_height ()
 
std::pair< int, intpreferences::resolution ()
 
void preferences::_set_resolution (const std::pair< int, int > &res)
 
bool preferences::maximized ()
 
void preferences::_set_maximized (bool ison)
 
bool preferences::fullscreen ()
 
void preferences::_set_fullscreen (bool ison)
 
bool preferences::turbo ()
 
void preferences::_set_turbo (bool ison)
 
double preferences::turbo_speed ()
 
void preferences::save_turbo_speed (const double speed)
 
int preferences::font_scaling ()
 
void preferences::set_font_scaling (int scale)
 
int preferences::font_scaled (int size)
 
bool preferences::idle_anim ()
 
void preferences::_set_idle_anim (const bool ison)
 
int preferences::idle_anim_rate ()
 
void preferences::_set_idle_anim_rate (const int rate)
 
std::string preferences::language ()
 
void preferences::set_language (const std::string &s)
 
bool preferences::sound_on ()
 
bool preferences::set_sound (bool ison)
 
unsigned int preferences::sample_rate ()
 
void preferences::save_sample_rate (const unsigned int rate)
 
size_t preferences::sound_buffer_size ()
 
void preferences::save_sound_buffer_size (const size_t size)
 
int preferences::sound_volume ()
 
void preferences::set_sound_volume (int vol)
 
int preferences::bell_volume ()
 
void preferences::set_bell_volume (int vol)
 
int preferences::UI_volume ()
 
void preferences::set_UI_volume (int vol)
 
bool preferences::music_on ()
 
bool preferences::set_music (bool ison)
 
int preferences::music_volume ()
 
void preferences::set_music_volume (int vol)
 
bool preferences::turn_bell ()
 
bool preferences::set_turn_bell (bool ison)
 
bool preferences::UI_sound_on ()
 
bool preferences::set_UI_sound (bool ison)
 
bool preferences::message_bell ()
 
void preferences::load_hotkeys ()
 
void preferences::save_hotkeys ()
 
void preferences::clear_hotkeys ()
 
void preferences::add_alias (const std::string &alias, const std::string &command)
 
const configpreferences::get_alias ()
 
std::string preferences::allied_color ()
 
void preferences::set_allied_color (const std::string &color_id)
 
std::string preferences::enemy_color ()
 
void preferences::set_enemy_color (const std::string &color_id)
 
std::string preferences::unmoved_color ()
 
void preferences::set_unmoved_color (const std::string &color_id)
 
std::string preferences::partial_color ()
 
void preferences::set_partial_color (const std::string &color_id)
 
std::string preferences::moved_color ()
 
void preferences::set_moved_color (const std::string &color_id)
 
bool preferences::show_allied_orb ()
 
void preferences::set_show_allied_orb (bool show_orb)
 
bool preferences::show_enemy_orb ()
 
void preferences::set_show_enemy_orb (bool show_orb)
 
bool preferences::show_moved_orb ()
 
void preferences::set_show_moved_orb (bool show_orb)
 
bool preferences::show_unmoved_orb ()
 
void preferences::set_show_unmoved_orb (bool show_orb)
 
bool preferences::show_partial_orb ()
 
void preferences::set_show_partial_orb (bool show_orb)
 
bool preferences::use_color_cursors ()
 
void preferences::_set_color_cursors (bool value)
 
bool preferences::joystick_support_enabled ()
 
int preferences::joystick_mouse_deadzone ()
 
int preferences::joystick_num_mouse_xaxis ()
 
int preferences::joystick_num_mouse_yaxis ()
 
int preferences::joystick_mouse_xaxis_num ()
 
int preferences::joystick_mouse_yaxis_num ()
 
int preferences::joystick_scroll_deadzone ()
 
int preferences::joystick_num_scroll_xaxis ()
 
int preferences::joystick_num_scroll_yaxis ()
 
int preferences::joystick_scroll_xaxis_num ()
 
int preferences::joystick_scroll_yaxis_num ()
 
int preferences::joystick_cursor_deadzone ()
 
int preferences::joystick_num_cursor_xaxis ()
 
int preferences::joystick_num_cursor_yaxis ()
 
int preferences::joystick_cursor_xaxis_num ()
 
int preferences::joystick_cursor_yaxis_num ()
 
int preferences::joystick_cursor_threshold ()
 
int preferences::joystick_thrusta_deadzone ()
 
int preferences::joystick_num_thrusta_axis ()
 
int preferences::joystick_thrusta_axis_num ()
 
int preferences::joystick_thrustb_deadzone ()
 
int preferences::joystick_num_thrustb_axis ()
 
int preferences::joystick_thrustb_axis_num ()
 
int preferences::scroll_speed ()
 
void preferences::set_scroll_speed (const int new_speed)
 
bool preferences::middle_click_scrolls ()
 
bool preferences::mouse_scroll_enabled ()
 
void preferences::enable_mouse_scroll (bool value)
 
int preferences::mouse_scroll_threshold ()
 Gets the threshold for when to scroll. More...
 
int preferences::draw_delay ()
 
void preferences::set_draw_delay (int value)
 
bool preferences::animate_map ()
 
void preferences::set_animate_map (bool value)
 
bool preferences::animate_water ()
 
void preferences::set_animate_water (bool value)
 
bool preferences::minimap_movement_coding ()
 
void preferences::toggle_minimap_movement_coding ()
 
bool preferences::minimap_terrain_coding ()
 
void preferences::toggle_minimap_terrain_coding ()
 
bool preferences::minimap_draw_units ()
 
void preferences::toggle_minimap_draw_units ()
 
bool preferences::minimap_draw_villages ()
 
void preferences::toggle_minimap_draw_villages ()
 
bool preferences::minimap_draw_terrain ()
 
void preferences::toggle_minimap_draw_terrain ()
 
bool preferences::show_standing_animations ()
 
void preferences::set_show_standing_animations (bool value)
 
bool preferences::show_fps ()
 
void preferences::set_show_fps (bool value)
 
bool preferences::ellipses ()
 
void preferences::set_ellipses (bool ison)
 
bool preferences::grid ()
 
void preferences::_set_grid (bool ison)
 
bool preferences::confirm_load_save_from_different_version ()
 
bool preferences::use_twelve_hour_clock_format ()
 
void preferences::set_use_twelve_hour_clock_format (bool value)
 
bool preferences::disable_auto_moves ()
 
void preferences::set_disable_auto_moves (bool value)
 
bool preferences::disable_loadingscreen_animation ()
 
void preferences::set_disable_loadingscreen_animation (bool value)