53 std::map<std::string, std::string>
tags;
68 unsigned create_item(
const std::map<std::string, string_map>& item_data,
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(
int x_offset,
int y_offset)
override;
82 child_populate_dirty_list(
window& caller,
83 const std::vector<widget*>&
call_stack)
override;
86 virtual void request_reduce_width(
const unsigned maximum_width)
override;
90 const bool must_be_active)
override;
94 const bool must_be_active)
const override;
101 void sort(
const compare_functor_t& compare_functor);
112 void filter(
const filter_functor_t& filter_functor);
116 virtual point calculate_best_size()
const override;
120 bool disable_click_dismiss()
const override;
135 grid* get_grid(
const unsigned id);
147 const grid* get_grid(
const unsigned id)
const;
163 void place_children();
172 void set_origin_children();
183 void place_or_set_origin_children();
186 void prepare_placement()
const;
190 void signal_handler_request_placement(dispatcher& dispatcher,
204 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.
static thread_local std::deque< std::string > call_stack
For printing error messages when WFL parsing or evaluation fails, this contains the names of the WFL ...
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::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.
base class of top level items, the only item which needs to store the final canvases to draw on...
Contains the implementation details for lexical_cast and shouldn't be used directly.
std::pair< std::string, unsigned > item