The Battle for Wesnoth  1.19.4+dev
Public Member Functions | Public Attributes | List of all members
gui2::builder_grid Struct Reference

#include <window_builder.hpp>

Inheritance diagram for gui2::builder_grid:

Public Member Functions

 builder_grid (const config &cfg)
 
virtual std::unique_ptr< widgetbuild () const override
 Inherited from builder_widget. More...
 
virtual std::unique_ptr< widgetbuild (const replacements_map &replacements) const override
 Inherited from builder_widget. More...
 
void build (grid &grid, optional_replacements replacements=utils::nullopt) const
 
- Public Member Functions inherited from gui2::builder_widget
 builder_widget (const config &cfg)
 
virtual ~builder_widget ()
 

Public Attributes

unsigned rows
 
unsigned cols
 
std::vector< unsigned > row_grow_factor
 The grow factor for the rows / columns. More...
 
std::vector< unsigned > col_grow_factor
 
std::vector< unsigned > flags
 The flags per grid cell. More...
 
std::vector< unsigned > border_size
 The border size per grid cell. More...
 
std::vector< builder_widget_ptrwidgets
 The widgets per grid cell. 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 117 of file window_builder.hpp.

Constructor & Destructor Documentation

◆ builder_grid()

gui2::builder_grid::builder_grid ( const config cfg)
explicit

Member Function Documentation

◆ build() [1/3]

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

◆ build() [2/3]

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

Inherited from builder_widget.

Implements gui2::builder_widget.

Definition at line 250 of file window_builder.cpp.

References build().

◆ build() [3/3]

void gui2::builder_grid::build ( grid grid,
optional_replacements  replacements = utils::nullopt 
) const

Member Data Documentation

◆ border_size

std::vector<unsigned> gui2::builder_grid::border_size

The border size per grid cell.

Definition at line 132 of file window_builder.hpp.

Referenced by build(), and builder_grid().

◆ col_grow_factor

std::vector<unsigned> gui2::builder_grid::col_grow_factor

Definition at line 126 of file window_builder.hpp.

Referenced by build(), and builder_grid().

◆ cols

unsigned gui2::builder_grid::cols

Definition at line 122 of file window_builder.hpp.

Referenced by build(), and builder_grid().

◆ flags

std::vector<unsigned> gui2::builder_grid::flags

The flags per grid cell.

Definition at line 129 of file window_builder.hpp.

Referenced by build(), and builder_grid().

◆ row_grow_factor

std::vector<unsigned> gui2::builder_grid::row_grow_factor

The grow factor for the rows / columns.

Definition at line 125 of file window_builder.hpp.

Referenced by build(), and builder_grid().

◆ rows

unsigned gui2::builder_grid::rows

Definition at line 121 of file window_builder.hpp.

Referenced by build(), and builder_grid().

◆ widgets

std::vector<builder_widget_ptr> gui2::builder_grid::widgets

The widgets per grid cell.

Definition at line 135 of file window_builder.hpp.

Referenced by build(), and builder_grid().


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