15 #define GETTEXT_DOMAIN "wesnoth-lib"
23 #define LOG_SCOPE_HEADER "tviewport [" + id() + "] " + __func__
24 #define LOG_HEADER LOG_SCOPE_HEADER + ':'
54 if(viewport->twidget::find_at(coordinate, must_be_active) != viewport) {
62 coordinate.
x -= viewport->get_x();
63 coordinate.
y -= viewport->get_y();
65 return viewport->widget_.find_at(coordinate, must_be_active);
72 if(viewport->twidget::find(
id, must_be_active)) {
75 return viewport->widget_.find(
id, must_be_active);
88 , widget_(*builder.widget->
build(replacements))
104 return new tviewport(builder, replacements);
139 const std::vector<twidget*>& call_stack)
141 std::vector<twidget*> child_call_stack = call_stack;
155 const bool must_be_active)
const
virtual void child_populate_dirty_list(twindow &caller, const std::vector< twidget * > &call_stack) override
See twidget::child_populate_dirty_list.
Define the common log macros for the gui toolkit.
virtual tpoint calculate_best_size() const override
See twidget::calculate_best_size.
virtual void request_reduce_width(const unsigned maximum_width) override
See twidget::request_reduce_width.
twindow * build(CVideo &video, const twindow_builder::tresolution *definition)
Builds a window.
virtual void impl_draw_children(surface &frame_buffer, int x_offset, int y_offset) override
See twidget::impl_draw_children.
virtual iterator::twalker_ * create_walker() override
See twidget::create_walker.
tviewport(twidget &widget)
Definitions for the interface to Wesnoth Markup Language (WML).
static utils::tconst_clone< twidget, W >::pointer find_at(W viewport, tpoint coordinate, const bool must_be_active)
Implementation for the wrappers for [const] twidget* tpane::find_at(const tpoint&, const bool) [const].
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.
Helper to implement private functions without modifying the header.
static utils::tconst_clone< twidget, W >::pointer find(W viewport, const std::string &id, const bool must_be_active)
bool disable_click_dismiss() const override
See twidget::disable_click_dismiss.
virtual void place(const tpoint &origin, const tpoint &size) override
See twidget::place.
tbuilder_viewport(const config &cfg)
virtual void layout_initialise(const bool full_initialisation) override
See twidget::layout_initialise.
D * pointer
A pointer to the destination type, possibly const qualified.
twidget * find(const std::string &id, const bool must_be_active) override
See twidget::find.
tbuilder_widget_ptr create_builder_widget(const config &cfg)
Create a widget builder.
static tviewport * build(const implementation::tbuilder_viewport &builder, const tbuilder_widget::treplacements &replacements)
The walker abstract base class.
A config object defines a single node in a WML file, with access to child nodes.
virtual twidget * find_at(const tpoint &coordinate, const bool must_be_active) override
See twidget::find_at.
GLsizei const GLcharARB ** string
Contains the implementation details for lexical_cast and shouldn't be used directly.