56 virtual std::unique_ptr<widget>
build()
const = 0;
113 static_assert(std::is_base_of_v<widget, T>,
"Type is not a widget type");
138 virtual std::unique_ptr<widget>
build()
const override;
A config object defines a single node in a WML file, with access to child nodes.
builder_window(const config &cfg)
std::vector< window_resolution > resolutions
Resolution options for this window instance.
void read(const config &cfg)
A simple wrapper class for optional reference types.
std::shared_ptr< builder_grid > builder_grid_ptr
std::shared_ptr< builder_widget > builder_widget_ptr
std::unique_ptr< T > build_single_widget_instance(const config &cfg={})
Builds a single widget instance of the given type with the specified attributes.
std::unique_ptr< widget > build_single_widget_instance_helper(const std::string &type, const config &cfg)
Implementation detail for build_single_widget_instance.
builder_widget_ptr create_widget_builder(const config &cfg)
Create a widget builder.
std::map< std::string, builder_grid_const_ptr > builder_grid_map
std::shared_ptr< const builder_widget > builder_widget_const_ptr
std::shared_ptr< const builder_grid > builder_grid_const_ptr
The basic class for representing 8-bit RGB or RGBA colour values.
std::vector< unsigned > col_grow_factor
std::vector< unsigned > flags
The flags per grid cell.
std::vector< builder_widget_ptr > widgets
The widgets per grid cell.
builder_grid(const config &cfg)
std::vector< unsigned > row_grow_factor
The grow factor for the rows / columns.
virtual std::unique_ptr< widget > build() const override
Inherited from builder_widget.
std::vector< unsigned > border_size
The border size per grid cell.
typed_formula< unsigned > height
std::vector< linked_group_definition > linked_groups
unsigned horizontal_placement
typed_formula< unsigned > width
typed_formula< unsigned > y
wfl::function_symbol_table functions
typed_formula< bool > reevaluate_best_size
typed_formula< unsigned > x
unsigned vertical_placement
typed_formula< unsigned > maximum_height
window_resolution(const config &cfg)
typed_formula< unsigned > maximum_width