The Battle for Wesnoth  1.19.2+dev
Enumerations | Variables
pref_constants Namespace Reference

Enumerations

enum class  lobby_joins { show_none , show_friends , show_all }
 
enum  PREFERENCE_VIEW { VIEW_DEFAULT , VIEW_FRIENDS }
 

Variables

const int min_window_width = 800
 
const int min_window_height = 540
 
const int def_window_width = 1280
 
const int def_window_height = 720
 
const int max_window_width = 1920
 
const int max_window_height = 1080
 
const int min_font_scaling = 80
 
const int max_font_scaling = 150
 
const int min_pixel_scale = 1
 
const int max_pixel_scale = 4
 
const int TRANSITION_UPDATE_OFF = 0
 
const int TRANSITION_UPDATE_ON = 1
 
const int TRANSITION_UPDATE_PARTIAL = 2
 
const int TRANSITION_UPDATE_COUNT = 3
 
const unsigned char CREDENTIAL_SEPARATOR = '\f'
 
const std::string EMPTY_LOGIN = "@@"
 
const int INFINITE_AUTO_SAVES = 61
 
const std::string default_addons_server = "add-ons.wesnoth.org"
 

Enumeration Type Documentation

◆ lobby_joins

Enumerator
show_none 
show_friends 
show_all 

Definition at line 62 of file preferences.hpp.

◆ PREFERENCE_VIEW

Enumerator
VIEW_DEFAULT 
VIEW_FRIENDS 

Definition at line 64 of file preferences.hpp.

Variable Documentation

◆ CREDENTIAL_SEPARATOR

const unsigned char pref_constants::CREDENTIAL_SEPARATOR = '\f'

Definition at line 55 of file preferences.hpp.

Referenced by prefs::load_credentials(), and prefs::save_credentials().

◆ def_window_height

const int pref_constants::def_window_height = 720

Definition at line 39 of file preferences.hpp.

Referenced by prefs::resolution(), and video::update_framebuffer().

◆ def_window_width

const int pref_constants::def_window_width = 1280

Definition at line 38 of file preferences.hpp.

Referenced by prefs::resolution(), and video::update_framebuffer().

◆ default_addons_server

const std::string pref_constants::default_addons_server = "add-ons.wesnoth.org"

Definition at line 60 of file preferences.hpp.

Referenced by prefs::campaign_server().

◆ EMPTY_LOGIN

const std::string pref_constants::EMPTY_LOGIN = "@@"

Definition at line 56 of file preferences.hpp.

Referenced by prefs::login().

◆ INFINITE_AUTO_SAVES

const int pref_constants::INFINITE_AUTO_SAVES = 61

◆ max_font_scaling

const int pref_constants::max_font_scaling = 150

Definition at line 45 of file preferences.hpp.

Referenced by prefs::font_scaling(), and prefs::set_font_scaling().

◆ max_pixel_scale

const int pref_constants::max_pixel_scale = 4

◆ max_window_height

const int pref_constants::max_window_height = 1080

Definition at line 42 of file preferences.hpp.

Referenced by video::update_framebuffer().

◆ max_window_width

const int pref_constants::max_window_width = 1920

Definition at line 41 of file preferences.hpp.

Referenced by video::update_framebuffer().

◆ min_font_scaling

const int pref_constants::min_font_scaling = 80

Definition at line 44 of file preferences.hpp.

Referenced by prefs::font_scaling(), and prefs::set_font_scaling().

◆ min_pixel_scale

const int pref_constants::min_pixel_scale = 1

Definition at line 47 of file preferences.hpp.

Referenced by prefs::pixel_scale(), and prefs::set_pixel_scale().

◆ min_window_height

const int pref_constants::min_window_height = 540

◆ min_window_width

const int pref_constants::min_window_width = 800

◆ TRANSITION_UPDATE_COUNT

const int pref_constants::TRANSITION_UPDATE_COUNT = 3

Definition at line 53 of file preferences.hpp.

Referenced by editor::context_manager::toggle_update_transitions().

◆ TRANSITION_UPDATE_OFF

const int pref_constants::TRANSITION_UPDATE_OFF = 0

◆ TRANSITION_UPDATE_ON

const int pref_constants::TRANSITION_UPDATE_ON = 1

◆ TRANSITION_UPDATE_PARTIAL

const int pref_constants::TRANSITION_UPDATE_PARTIAL = 2