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

Contains the state info for a resolution. More...

#include <widget_definition.hpp>

Public Member Functions

 state_definition (const config &cfg)
 
 operator const config & () const
 Allows us to use this object in vector's range constructor. More...
 

Public Attributes

config canvas_cfg_
 

Detailed Description

Contains the state info for a resolution.

At the moment all states are the same so there is no need to use inheritance. If that is needed at some point the containers should contain pointers

Definition at line 36 of file widget_definition.hpp.

Constructor & Destructor Documentation

◆ state_definition()

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

Definition at line 28 of file widget_definition.cpp.

Member Function Documentation

◆ operator const config &()

gui2::state_definition::operator const config & ( ) const
inline

Allows us to use this object in vector's range constructor.

Definition at line 43 of file widget_definition.hpp.

References canvas_cfg_.

Member Data Documentation

◆ canvas_cfg_

config gui2::state_definition::canvas_cfg_

Definition at line 40 of file widget_definition.hpp.

Referenced by operator const config &().


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