53 virtual widget*
build(
const replacements_map& replacements)
const = 0;
139 , description_(cfg[
"description"])
246 std::unique_ptr<window>
build(
const std::string&
type);
Key Type Default Description window_width unsigned 0 Width of the application window.
typed_formula< unsigned > y
unsigned horizontal_placement
typed_formula< unsigned > x
std::shared_ptr< builder_widget > builder_widget_ptr
std::vector< linked_group_definition > linked_groups
std::shared_ptr< const builder_widget > builder_widget_const_ptr
typed_formula< unsigned > maximum_height
std::vector< unsigned > row_grow_factor
The grow factor for the rows / columns.
void read(config &cfg, std::istream &in, abstract_validator *validator)
std::vector< unsigned > col_grow_factor
widget * build_single_widget_instance_helper(const std::string &type, const config &cfg)
Helper function to implement build_single_widget_instance.
builder_window(const config &cfg)
T * build_single_widget_instance(const config &cfg=config())
Builds a single widget instance of the given type with the specified attributes.
std::vector< unsigned > flags
The flags per grid cell.
unsigned vertical_placement
std::shared_ptr< const builder_grid > builder_grid_const_ptr
wfl::function_symbol_table functions
typed_formula< bool > reevaluate_best_size
std::vector< builder_widget_ptr > widgets
The widgets per grid cell.
A config object defines a single node in a WML file, with access to child nodes.
std::shared_ptr< builder_grid > builder_grid_ptr
std::vector< window_resolution > resolutions
Resolution options for this window instance.
std::vector< unsigned > border_size
The border size per grid cell.
typed_formula< unsigned > maximum_width
typed_formula< unsigned > height
typed_formula< unsigned > width
builder_widget_ptr create_widget_builder(const config &cfg)
Create a widget builder.