The Battle for Wesnoth  1.19.5+dev
Public Member Functions | Public Attributes | List of all members
gui2::implementation::builder_instance Struct Reference

#include <instance.hpp>

Inheritance diagram for gui2::implementation::builder_instance:

Public Member Functions

 builder_instance (const config &cfg)
 
virtual std::unique_ptr< widgetbuild () const override
 
virtual std::unique_ptr< widgetbuild (const replacements_map &replacements) const override
 
- Public Member Functions inherited from gui2::builder_widget
 builder_widget (const config &cfg)
 
virtual ~builder_widget ()
 

Public Attributes

config configuration
 Holds a copy of the cfg parameter in the constructor. More...
 
- Public Attributes inherited from gui2::builder_widget
std::string id
 Parameters for the widget. More...
 
std::string linked_group
 
widget::debug_border debug_border_mode
 
color_t debug_border_color
 

Additional Inherited Members

- Public Types inherited from gui2::builder_widget
using replacements_map = std::map< std::string, std::shared_ptr< builder_widget > >
 The replacements type is used to define replacement types. More...
 
using optional_replacements = utils::optional_reference< const replacements_map >
 

Detailed Description

Definition at line 28 of file instance.hpp.

Constructor & Destructor Documentation

◆ builder_instance()

gui2::implementation::builder_instance::builder_instance ( const config cfg)
explicit

Definition at line 28 of file instance.cpp.

Member Function Documentation

◆ build() [1/2]

std::unique_ptr< widget > gui2::implementation::builder_instance::build ( ) const
overridevirtual

Implements gui2::builder_widget.

Definition at line 33 of file instance.cpp.

◆ build() [2/2]

std::unique_ptr< widget > gui2::implementation::builder_instance::build ( const replacements_map replacements) const
overridevirtual

Implements gui2::builder_widget.

Definition at line 38 of file instance.cpp.

References gui2::implementation::builder_spacer::build(), and configuration.

Member Data Documentation

◆ configuration

config gui2::implementation::builder_instance::configuration

Holds a copy of the cfg parameter in the constructor.

This is used when instantiating a spacer, it can still use the parameters originally sent.

Definition at line 42 of file instance.hpp.

Referenced by build().


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