The Battle for Wesnoth  1.15.0-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:
Inheritance graph

Public Member Functions

 builder_instance (const config &cfg)
 
virtual widget_ptr build () const override
 
virtual widget_ptr build (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
 
int 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_t = boost::optional< const replacements_map & >
 

Detailed Description

Definition at line 27 of file instance.hpp.

Constructor & Destructor Documentation

◆ builder_instance()

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

Definition at line 27 of file instance.cpp.

Member Function Documentation

◆ build() [1/2]

widget_ptr gui2::implementation::builder_instance::build ( ) const
overridevirtual

Implements gui2::builder_widget.

Definition at line 32 of file instance.cpp.

◆ build() [2/2]

widget_ptr gui2::implementation::builder_instance::build ( const replacements_map replacements) const
overridevirtual

Implements gui2::builder_widget.

Definition at line 37 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 41 of file instance.hpp.

Referenced by build().


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