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)
 
gridbuild () const
 
widgetbuild (const replacements_map &replacements) const
 
gridbuild (grid *grid) const
 
void build (grid &grid, const replacements_map &replacements) 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
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 110 of file window_builder.hpp.

Constructor & Destructor Documentation

◆ builder_grid()

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

Member Function Documentation

◆ build() [1/4]

grid * gui2::builder_grid::build ( ) const
virtual

Implements gui2::builder_widget.

Definition at line 441 of file window_builder.cpp.

References preferences::grid().

Referenced by build().

◆ build() [2/4]

widget * gui2::builder_grid::build ( const replacements_map replacements) const
virtual

Implements gui2::builder_widget.

Definition at line 446 of file window_builder.cpp.

References build(), and preferences::grid().

◆ build() [3/4]

grid * gui2::builder_grid::build ( grid grid) const

◆ build() [4/4]

void gui2::builder_grid::build ( grid grid,
const replacements_map replacements 
) const

Member Data Documentation

◆ border_size

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

The border size per grid cell.

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

Referenced by build(), and builder_grid().

◆ cols

unsigned gui2::builder_grid::cols

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

Referenced by build(), and builder_grid().

◆ rows

unsigned gui2::builder_grid::rows

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

Referenced by build(), and builder_grid().


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