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

Public Member Functions

 builder_grid (const config &cfg)
 
virtual widget_ptr build () const override
 Inherited from builder_widget. More...
 
virtual widget_ptr build (const replacements_map &replacements) const override
 Inherited from builder_widget. More...
 
void build (grid &grid, optional_replacements_t replacements=boost::none) 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
 
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 119 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]

widget_ptr gui2::builder_grid::build ( ) const
overridevirtual

Inherited from builder_widget.

Implements gui2::builder_widget.

Definition at line 440 of file window_builder.cpp.

Referenced by build().

◆ build() [2/3]

widget_ptr gui2::builder_grid::build ( const replacements_map replacements) const
overridevirtual

Inherited from builder_widget.

Implements gui2::builder_widget.

Definition at line 447 of file window_builder.cpp.

References build().

◆ build() [3/3]

void gui2::builder_grid::build ( grid grid,
optional_replacements_t  replacements = boost::none 
) const

Member Data Documentation

◆ border_size

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

The border size per grid cell.

Definition at line 134 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 128 of file window_builder.hpp.

Referenced by build(), and builder_grid().

◆ cols

unsigned gui2::builder_grid::cols

Definition at line 124 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 131 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 127 of file window_builder.hpp.

Referenced by build(), and builder_grid().

◆ rows

unsigned gui2::builder_grid::rows

Definition at line 123 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 137 of file window_builder.hpp.

Referenced by build(), and builder_grid().


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