53 std::map<std::string, std::string>
tags;
69 const std::map<std::string, std::string>& tags);
72 virtual void place(
const point& origin,
const point&
size)
override;
75 virtual void layout_initialize(
const bool full_initialization)
override;
78 virtual void impl_draw_children()
override;
81 virtual void request_reduce_width(
const unsigned maximum_width)
override;
85 const bool must_be_active)
override;
89 const bool must_be_active)
const override;
96 void sort(
const compare_functor_t& compare_functor);
107 void filter(
const filter_functor_t& filter_functor);
111 virtual point calculate_best_size()
const override;
115 bool disable_click_dismiss()
const override;
130 grid* get_grid(
const unsigned id);
142 const grid* get_grid(
const unsigned id)
const;
158 void place_children();
167 void set_origin_children();
178 void place_or_set_origin_children();
181 void prepare_placement()
const;
185 void signal_handler_request_placement(dispatcher& dispatcher,
199 virtual std::unique_ptr<widget>
build()
const override;
Base class for the placement helper.
std::unique_ptr< class walker_base > walker_ptr
std::unique_ptr< grid > item_grid
ui_event
The event sent to the dispatcher.
std::map< std::string, std::string > tags
std::list< item > items_
The items in the pane.
std::function< bool(const item &)> filter_functor_t
std::unique_ptr< placer_base > placer_
Helper to do the placement.
builder_grid_ptr item_definition
std::size_t size(const std::string &str)
Length in characters of a UTF-8 string.
grow_direction::type grow_dir
A pane is a container where new members can be added and removed during run-time. ...
std::function< bool(const item &, const item &)> compare_functor_t
std::shared_ptr< builder_grid > builder_grid_ptr
Helper to implement private functions without modifying the header.
builder_grid_ptr item_builder_
The builer for the items in the list.
std::map< std::string, widget_item > widget_data
std::unique_ptr< window > build(const builder_window::window_resolution &definition)
Builds a window.
unsigned item_id_generator_
The id generator for the items.
map_location coordinate
Contains an x and y coordinate used for starting positions in maps.
A config object defines a single node in a WML file, with access to child nodes.
Contains the implementation details for lexical_cast and shouldn't be used directly.
std::pair< std::string, unsigned > item