The Battle for Wesnoth  1.15.9+dev
Public Types | Public Member Functions | Public Attributes | List of all members
preferences::advanced_manager::option Struct Reference

#include <advanced.hpp>

Public Types

enum  avd_type { avd_type::TOGGLE, avd_type::SLIDER, avd_type::COMBO, avd_type::SPECIAL }
 

Public Member Functions

 option (const config &pref)
 

Public Attributes

avd_type type
 The preference type. More...
 
t_string name
 Displayed name. More...
 
t_string description
 Displayed description. More...
 
std::string field
 The actual field saved in the prefs file and by which this preference may be accessed. More...
 
config cfg
 The full config, including type-specific options. More...
 

Detailed Description

Definition at line 34 of file advanced.hpp.

Member Enumeration Documentation

◆ avd_type

Enumerator
TOGGLE 
SLIDER 
COMBO 
SPECIAL 

Definition at line 38 of file advanced.hpp.

Constructor & Destructor Documentation

◆ option()

preferences::advanced_manager::option::option ( const config pref)

Definition at line 49 of file advanced.cpp.

References cfg, COMBO, name, SLIDER, SPECIAL, TOGGLE, and type.

Member Data Documentation

◆ cfg

config preferences::advanced_manager::option::cfg

The full config, including type-specific options.

Definition at line 53 of file advanced.hpp.

Referenced by option().

◆ description

t_string preferences::advanced_manager::option::description

Displayed description.

Definition at line 47 of file advanced.hpp.

◆ field

std::string preferences::advanced_manager::option::field

The actual field saved in the prefs file and by which this preference may be accessed.

Definition at line 50 of file advanced.hpp.

◆ name

t_string preferences::advanced_manager::option::name

Displayed name.

Definition at line 44 of file advanced.hpp.

Referenced by option().

◆ type

avd_type preferences::advanced_manager::option::type

The preference type.

Definition at line 41 of file advanced.hpp.

Referenced by option().


The documentation for this struct was generated from the following files: