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

#include <viewport.hpp>

Inheritance diagram for gui2::implementation::builder_viewport:

Public Member Functions

 builder_viewport (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

builder_widget_ptr widget_
- 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 88 of file viewport.hpp.

Constructor & Destructor Documentation

◆ builder_viewport()

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

Definition at line 168 of file viewport.cpp.

Member Function Documentation

◆ build() [1/2]

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

Implements gui2::builder_widget.

Definition at line 174 of file viewport.cpp.

◆ build() [2/2]

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

Implements gui2::builder_widget.

Definition at line 179 of file viewport.cpp.

Member Data Documentation

◆ widget_

builder_widget_ptr gui2::implementation::builder_viewport::widget_

Definition at line 96 of file viewport.hpp.

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