The Battle for Wesnoth  1.19.4+dev
Classes | Namespaces | Macros | Enumerations | Variables
preferences.hpp File Reference
#include "config.hpp"
#include "desktop/notifications.hpp"
#include "filesystem.hpp"
#include "game_config.hpp"
#include "gui/sort_order.hpp"
#include "preferences/preferences_list.hpp"
#include "serialization/compression.hpp"
#include "team.hpp"
#include "terrain/translation.hpp"
#include "lua/wrapper_lua.h"
#include "log.hpp"
#include <set>
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

class  preferences::acquaintance
 
class  preferences::secure_buffer
 
struct  preferences::login_info
 
struct  preferences::option
 
class  prefs
 
struct  preferences_dialog_friend
 

Namespaces

 pref_constants
 
 preferences
 Modify, read and display user preferences.
 

Macros

#define PREF_GETTER_SETTER(pref, type, def)
 

Enumerations

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

Variables

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

Macro Definition Documentation

◆ PREF_GETTER_SETTER

#define PREF_GETTER_SETTER (   pref,
  type,
  def 
)
Value:
void set_##pref(const type& value) { \
preferences_[prefs_list::pref] = value; \
} \
type pref() const { \
return preferences_[prefs_list::pref].to(def); \
}

Definition at line 184 of file preferences.hpp.