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::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 125 of file window_builder.hpp.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Implements gui2::builder_widget.

Definition at line 449 of file window_builder.cpp.

References preferences::grid().

Referenced by build().

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

Implements gui2::builder_widget.

Definition at line 454 of file window_builder.cpp.

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

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

Member Data Documentation

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

The border size per grid cell.

Definition at line 141 of file window_builder.hpp.

Referenced by build(), and builder_grid().

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

Definition at line 135 of file window_builder.hpp.

Referenced by build(), and builder_grid().

unsigned gui2::builder_grid::cols

Definition at line 131 of file window_builder.hpp.

Referenced by build(), and builder_grid().

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

The flags per grid cell.

Definition at line 138 of file window_builder.hpp.

Referenced by build(), and builder_grid().

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

The grow factor for the rows / columns.

Definition at line 134 of file window_builder.hpp.

Referenced by build(), and builder_grid().

unsigned gui2::builder_grid::rows

Definition at line 130 of file window_builder.hpp.

Referenced by build(), and builder_grid().

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

The widgets per grid cell.

Definition at line 144 of file window_builder.hpp.

Referenced by build(), and builder_grid().


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