The Battle for Wesnoth  1.15.1+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)
widgetbuild () const
widgetbuild (const replacements_map &replacements) const
- 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
typedef std::map< std::string, std::shared_ptr< builder_widget > > replacements_map
 The replacements type is used to define replacement types. More...

Detailed Description

Definition at line 27 of file instance.hpp.

Constructor & Destructor Documentation

◆ builder_instance()

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

Definition at line 27 of file instance.cpp.

Member Function Documentation

◆ build() [1/2]

widget * gui2::implementation::builder_instance::build ( ) const

Implements gui2::builder_widget.

Definition at line 32 of file instance.cpp.

◆ build() [2/2]

widget * gui2::implementation::builder_instance::build ( const replacements_map replacements) const

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: