The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
gui2::tbuilder_grid Struct Reference

#include <window_builder.hpp>

Inheritance diagram for gui2::tbuilder_grid:
Inheritance graph

Public Member Functions

 tbuilder_grid (const config &cfg)
 
tgridbuild () const
 
twidgetbuild (const treplacements &replacements) const
 
tgridbuild (tgrid *grid) const
 
void build (tgrid &grid, const treplacements &replacements) const
 
- Public Member Functions inherited from gui2::tbuilder_widget
 tbuilder_widget (const config &cfg)
 
virtual ~tbuilder_widget ()
 
- Public Member Functions inherited from reference_counted_object
 reference_counted_object ()
 
 reference_counted_object (const reference_counted_object &)
 
reference_counted_objectoperator= (const reference_counted_object &)
 
virtual ~reference_counted_object ()
 
void add_ref () const
 
void dec_ref () const
 
int refcount () const
 

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< tbuilder_widget_ptrwidgets
 The widgets per grid cell. More...
 
- Public Attributes inherited from gui2::tbuilder_widget
std::string id
 Parameters for the widget. More...
 
std::string linked_group
 
int debug_border_mode
 
unsigned debug_border_color
 

Additional Inherited Members

- Public Types inherited from gui2::tbuilder_widget
typedef std::map< std::string,
boost::intrusive_ptr
< tbuilder_widget > > 
treplacements
 The replacements type is used to define replacement types. More...
 
- Protected Member Functions inherited from reference_counted_object
void turn_reference_counting_off () const
 

Detailed Description

Definition at line 121 of file window_builder.hpp.

Constructor & Destructor Documentation

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

Member Function Documentation

tgrid * gui2::tbuilder_grid::build ( ) const
virtual

Implements gui2::tbuilder_widget.

Definition at line 566 of file window_builder.cpp.

Referenced by build().

twidget * gui2::tbuilder_grid::build ( const treplacements replacements) const
virtual

Implements gui2::tbuilder_widget.

Definition at line 571 of file window_builder.cpp.

References build().

tgrid * gui2::tbuilder_grid::build ( tgrid grid) const
void gui2::tbuilder_grid::build ( tgrid grid,
const treplacements replacements 
) const

Member Data Documentation

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

The border size per grid cell.

Definition at line 137 of file window_builder.hpp.

Referenced by build(), and tbuilder_grid().

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

Definition at line 131 of file window_builder.hpp.

Referenced by build(), and tbuilder_grid().

unsigned gui2::tbuilder_grid::cols

Definition at line 127 of file window_builder.hpp.

Referenced by build(), and tbuilder_grid().

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

The flags per grid cell.

Definition at line 134 of file window_builder.hpp.

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

The grow factor for the rows / columns.

Definition at line 130 of file window_builder.hpp.

Referenced by build(), and tbuilder_grid().

unsigned gui2::tbuilder_grid::rows

Definition at line 126 of file window_builder.hpp.

Referenced by build(), and tbuilder_grid().

std::vector<tbuilder_widget_ptr> gui2::tbuilder_grid::widgets

The widgets per grid cell.

Definition at line 140 of file window_builder.hpp.

Referenced by build(), and tbuilder_grid().


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