#include <window_builder.hpp>
Public Member Functions | |
builder_grid (const config &cfg) | |
virtual std::unique_ptr< widget > | build () const override |
Inherited from builder_widget. More... | |
virtual std::unique_ptr< widget > | build (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_ptr > | widgets |
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 > |
Definition at line 117 of file window_builder.hpp.
|
explicit |
Definition at line 171 of file window_builder.cpp.
References border_size, c, config::child_range(), col_grow_factor, cols, gui2::create_widget_builder(), DBG_GUI_P, FAIL, flags, gui2::log_gui_parse, log_scope2, wfl::msg(), gui2::implementation::read_flags(), row_grow_factor, rows, VGETTEXT, and widgets.
|
overridevirtual |
Inherited from builder_widget.
Implements gui2::builder_widget.
Definition at line 224 of file window_builder.cpp.
Referenced by build(), gui2::generator< minimum_selection, maximum_selection, my_placement, select_action >::create_item(), gui2::window::finalize(), and gui2::container_base::init_grid().
|
overridevirtual |
Inherited from builder_widget.
Implements gui2::builder_widget.
Definition at line 231 of file window_builder.cpp.
References build().
void gui2::builder_grid::build | ( | grid & | grid, |
optional_replacements | replacements = utils::nullopt |
||
) | const |
Definition at line 238 of file window_builder.cpp.
References border_size, col_grow_factor, cols, DBG_GUI_G, flags, i, gui2::builder_widget::linked_group, gui2::log_gui_general, log_scope2, row_grow_factor, rows, gui2::grid::set_child(), gui2::grid::set_column_grow_factor(), gui2::widget::set_id(), gui2::widget::set_linked_group(), gui2::grid::set_row_grow_factor(), gui2::grid::set_rows_cols(), utils::optional_reference< T >::value(), and widgets.
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().
std::vector<unsigned> gui2::builder_grid::col_grow_factor |
Definition at line 126 of file window_builder.hpp.
Referenced by build(), and builder_grid().
unsigned gui2::builder_grid::cols |
Definition at line 122 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 129 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 125 of file window_builder.hpp.
Referenced by build(), and builder_grid().
unsigned gui2::builder_grid::rows |
Definition at line 121 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 135 of file window_builder.hpp.
Referenced by build(), and builder_grid().