89 virtual bool can_wrap()
const override;
115 const bool must_be_active)
override;
119 const bool must_be_active)
const override;
122 widget*
find(
const std::string&
id,
const bool must_be_active)
override;
126 const bool must_be_active)
const override;
129 virtual void set_active(
const bool active)
override;
190 const unsigned flags,
191 const unsigned border_size)
A generic container base class.
bool disable_click_dismiss() const override
See widget::disable_click_dismiss.
void reduce_height(const unsigned maximum_height)
Tries to reduce the height of a container.
virtual iteration::walker_ptr create_walker() override
See widget::create_walker.
void set_rows(const unsigned rows)
unsigned int get_cols() const
container_base(const implementation::builder_styled_widget &builder, const std::string &control_type)
void set_rows_cols(const unsigned rows, const unsigned cols)
virtual void set_self_active(const bool active)=0
Helper for set_active.
virtual void request_reduce_width(const unsigned maximum_width) override
See widget::request_reduce_width.
unsigned int get_rows() const
virtual void request_reduce_height(const unsigned maximum_height) override
See widget::request_reduce_height.
const grid & get_grid() const
virtual void layout_initialize(const bool full_initialization) override
See widget::layout_initialize.
virtual void set_active(const bool active) override
See styled_widget::set_active.
virtual bool can_wrap() const override
See widget::can_wrap.
void set_cols(const unsigned cols)
virtual SDL_Rect get_client_rect() const
Returns the client rect.
virtual point calculate_best_size() const override
See widget::calculate_best_size.
void set_row_grow_factor(const unsigned row, const unsigned factor)
virtual void demand_reduce_width(const unsigned maximum_width) override
See widget::demand_reduce_width.
virtual void layout_children() override
See widget::layout_children.
friend class debug_layout_graph
void reduce_width(const unsigned maximum_width)
Tries to reduce the width of a container.
widget * find(const std::string &id, const bool must_be_active) override
See widget::find.
virtual widget * find_at(const point &coordinate, const bool must_be_active) override
See widget::find_at.
grid grid_
The grid which holds the child objects.
virtual void set_origin(const point &origin) override
See widget::set_origin.
virtual void place(const point &origin, const point &size) override
See widget::place.
virtual void set_visible_rectangle(const SDL_Rect &rectangle) override
See widget::set_visible_rectangle.
void set_column_grow_factor(const unsigned column, const unsigned factor)
void inject_linked_groups()
virtual void demand_reduce_height(const unsigned maximum_height) override
See widget::demand_reduce_height.
unsigned add_row(const unsigned count=1)
void set_child(std::unique_ptr< widget > widget, const unsigned row, const unsigned col, const unsigned flags, const unsigned border_size)
void init_grid(const builder_grid &grid_builder)
Initializes and builds the grid.
virtual bool has_widget(const widget &widget) const override
See widget::has_widget.
virtual void impl_draw_children() override
See widget::impl_draw_children.
virtual point border_space() const
Returns the space used by the border.
Iterator for the child items.
void set_row_grow_factor(const unsigned row, const unsigned factor)
Sets the grow factor for a row.
unsigned add_row(const unsigned count=1)
Adds a row to end of the grid.
unsigned int get_rows() const
void set_column_grow_factor(const unsigned column, const unsigned factor)
Sets the grow factor for a column.
void set_cols(const unsigned cols)
void set_rows(const unsigned rows)
void set_rows_cols(const unsigned rows, const unsigned cols)
Wrapper to set_rows and set_cols.
void set_child(std::unique_ptr< widget > widget, const unsigned row, const unsigned col, const unsigned flags, const unsigned border_size)
Sets a child in the grid.
unsigned int get_cols() const
std::unique_ptr< class walker_base > walker_ptr
map_location coordinate
Contains an x and y coordinate used for starting positions in maps.
std::size_t size(const std::string &str)
Length in characters of a UTF-8 string.