The Battle for Wesnoth  1.15.1+dev
Public Member Functions | Public Attributes | List of all members
gui2::styled_widget_definition Struct Reference

#include <widget_definition.hpp>

Inheritance diagram for gui2::styled_widget_definition:
Inheritance graph

Public Member Functions

 styled_widget_definition (const config &cfg)
 
template<class T >
void load_resolutions (const config &cfg)
 

Public Attributes

std::string id
 
t_string description
 
std::vector< resolution_definition_ptrresolutions
 

Detailed Description

Definition at line 76 of file widget_definition.hpp.

Constructor & Destructor Documentation

◆ styled_widget_definition()

gui2::styled_widget_definition::styled_widget_definition ( const config cfg)
explicit

Member Function Documentation

◆ load_resolutions()

template<class T >
void gui2::styled_widget_definition::load_resolutions ( const config cfg)
inline

Definition at line 81 of file widget_definition.hpp.

References config::child_range(), and preferences::resolution().

Member Data Documentation

◆ description

t_string gui2::styled_widget_definition::description

Definition at line 89 of file widget_definition.hpp.

Referenced by styled_widget_definition().

◆ id

std::string gui2::styled_widget_definition::id

Definition at line 88 of file widget_definition.hpp.

◆ resolutions

std::vector<resolution_definition_ptr> gui2::styled_widget_definition::resolutions

Definition at line 91 of file widget_definition.hpp.


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