48 std::map<std::string, std::string>
tags;
64 const std::map<std::string, std::string>& tags);
80 const bool must_be_active)
override;
84 const bool must_be_active)
const override;
194 virtual std::unique_ptr<widget>
build()
const override;
A config object defines a single node in a WML file, with access to child nodes.
A pane is a container where new members can be added and removed during run-time.
void place_or_set_origin_children()
Places or moves the children on the pane.
void signal_handler_request_placement(dispatcher &dispatcher, const event::ui_event event, bool &handled)
std::function< bool(const item &, const item &)> compare_functor_t
grid * get_grid(const unsigned id)
Returns a grid in the pane.
bool disable_click_dismiss() const override
See widget::disable_click_dismiss.
std::function< bool(const item &)> filter_functor_t
std::list< item > items_
The items in the pane.
virtual widget * find_at(const point &coordinate, const bool must_be_active) override
See widget::find_at.
pane(const implementation::builder_pane &builder)
std::unique_ptr< placer_base > placer_
Helper to do the placement.
virtual iteration::walker_ptr create_walker() override
See widget::create_walker.
void sort(const compare_functor_t &compare_functor)
Sorts the contents of the pane.
builder_grid_ptr item_builder_
The builer for the items in the list.
virtual point calculate_best_size() const override
See widget::calculate_best_size.
virtual void impl_draw_children() override
See widget::impl_draw_children.
virtual void place(const point &origin, const point &size) override
See widget::place.
unsigned create_item(const widget_data &item_data, const std::map< std::string, std::string > &tags)
Creates a new item.
virtual void request_reduce_width(const unsigned maximum_width) override
See widget::request_reduce_width.
void place_children()
Places the children on the pane.
unsigned item_id_generator_
The id generator for the items.
virtual void layout_initialize(const bool full_initialization) override
See widget::layout_initialize.
void filter(const filter_functor_t &filter_functor)
Filters the contents of the pane.
void set_origin_children()
Moves the children on the pane.
void prepare_placement() const
Updates the placement for the child items.
ui_event
The event sent to the dispatcher.
std::unique_ptr< class walker_base > walker_ptr
std::shared_ptr< builder_grid > builder_grid_ptr
std::map< std::string, widget_item > widget_data
Contains the implementation details for lexical_cast and shouldn't be used directly.
map_location coordinate
Contains an x and y coordinate used for starting positions in maps.
std::size_t size(std::string_view str)
Length in characters of a UTF-8 string.
Base class for the placement helper.
builder_pane(const config &cfg)
grow_direction::type grow_dir
virtual std::unique_ptr< widget > build() const override
builder_grid_ptr item_definition
std::map< std::string, std::string > tags
std::unique_ptr< grid > item_grid
Helper to implement private functions without modifying the header.