15 #ifndef GUI_WIDGETS_CONTAINER_HPP_INCLUDED
16 #define GUI_WIDGETS_CONTAINER_HPP_INCLUDED
94 virtual bool can_wrap()
const override;
113 int y_offset)
override;
122 const std::vector<twidget*>& call_stack)
override;
127 const bool must_be_active)
override;
131 const bool must_be_active)
const override;
138 const bool must_be_active)
const override;
141 virtual void set_active(
const bool active)
override;
208 const unsigned flags,
209 const unsigned border_size)
virtual void request_reduce_height(const unsigned maximum_height) override
See twidget::request_reduce_height.
virtual void layout_initialise(const bool full_initialisation) override
See twidget::layout_initialise.
void set_child(twidget *widget, const unsigned row, const unsigned col, const unsigned flags, const unsigned border_size)
virtual bool has_widget(const twidget &widget) const override
See twidget::has_widget.
const tgrid & grid() const
void set_row_grow_factor(const unsigned row, const unsigned factor)
Sets the grow factor for a row.
void set_cols(const unsigned cols)
virtual void set_visible_rectangle(const SDL_Rect &rectangle) override
See twidget::set_visible_rectangle.
virtual void set_active(const bool active) override
See tcontrol::set_active.
void set_rows_cols(const unsigned rows, const unsigned cols)
virtual void impl_draw_children(surface &frame_buffer, int x_offset, int y_offset) override
See twidget::impl_draw_children.
twidget * find(const std::string &id, const bool must_be_active) override
See twidget::find.
tgrid grid_
The grid which holds the child objects.
unsigned int get_rows() const
void set_row_grow_factor(const unsigned row, const unsigned factor)
virtual void set_self_active(const bool active)=0
Helper for set_active.
virtual void request_reduce_width(const unsigned maximum_width) override
See twidget::request_reduce_width.
virtual void set_origin(const tpoint &origin) override
See twidget::set_origin.
tcontainer_(const unsigned canvas_count)
base class of top level items, the only item which needs to store the final canvases to draw on ...
A class inherited from ttext_box that displays its input as stars.
virtual bool can_wrap() const override
See twidget::can_wrap.
bool disable_click_dismiss() const override
See twidget::disable_click_dismiss.
void set_column_grow_factor(const unsigned column, const unsigned factor)
Sets the grow factor for a column.
void set_rows(const unsigned rows)
unsigned int get_cols() const
void set_column_grow_factor(const unsigned column, const unsigned factor)
virtual iterator::twalker_ * create_walker() override
See twidget::create_walker.
void init_grid(const boost::intrusive_ptr< tbuilder_grid > &grid_builder)
Initializes and builds the grid.
Iterator for the tchild items.
virtual void place(const tpoint &origin, const tpoint &size) override
See twidget::place.
void set_rows(const unsigned rows)
GLuint GLuint GLsizei count
cl_event GLbitfield flags
void reduce_width(const unsigned maximum_width)
Tries to reduce the width of a container.
GLenum GLenum GLvoid GLvoid * column
virtual void layout_children() override
See twidget::layout_children.
virtual tpoint calculate_best_size() const override
See twidget::calculate_best_size.
virtual void child_populate_dirty_list(twindow &caller, const std::vector< twidget * > &call_stack) override
See twidget::child_populate_dirty_list.
virtual SDL_Rect get_client_rect() const
Returns the client rect.
virtual tgrid & initial_grid()
Returns the grid to initialize while building.
virtual twidget * find_at(const tpoint &coordinate, const bool must_be_active) override
See twidget::find_at.
unsigned add_row(const unsigned count=1)
Adds a row to end of the grid.
Base class for all visible items.
A generic container base class.
void set_rows_cols(const unsigned rows, const unsigned cols)
Wrapper to set_rows and set_cols.
GLenum GLenum GLvoid * row
void reduce_height(const unsigned maximum_height)
Tries to reduce the height of a container.
void set_cols(const unsigned cols)
unsigned int get_rows() const
virtual tpoint border_space() const
Returns the space used by the border.
void set_child(twidget *widget, const unsigned row, const unsigned col, const unsigned flags, const unsigned border_size)
Sets a child in the grid.
The walker abstract base class.
virtual void demand_reduce_width(const unsigned maximum_width) override
See twidget::demand_reduce_width.
unsigned int get_cols() const
GLsizei const GLcharARB ** string
unsigned add_row(const unsigned count=1)
virtual void demand_reduce_height(const unsigned maximum_height) override
See twidget::demand_reduce_height.
friend class tdebug_layout_graph