The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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

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

Definition at line 27 of file instance.cpp.

Member Function Documentation

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

Implements gui2::builder_widget.

Definition at line 32 of file instance.cpp.

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

Member Data Documentation

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: