The Battle for Wesnoth  1.19.5+dev
Static Public Member Functions | List of all members
gui2::window_implementation Struct Reference

Helper to implement private functions without modifying the header. More...

#include <window_private.hpp>

Static Public Member Functions

static void layout (window &window, const unsigned maximum_width, const unsigned maximum_height)
 Layouts the window. More...
 

Detailed Description

Helper to implement private functions without modifying the header.

The class is a helper to avoid recompilation and only has static functions.

Definition at line 39 of file window_private.hpp.

Member Function Documentation

◆ layout()

void gui2::window_implementation::layout ( window window,
const unsigned  maximum_width,
const unsigned  maximum_height 
)
static

Layouts the window.

This part handles the actual layouting of the window.

See Layout algorithm for more information.

Parameters
windowThe window to operate upon.
maximum_widthThe maximum width of the window.
maximum_heightThe maximum height of the window.

Definition at line 1128 of file window.cpp.

References DBG_GUI_L, gui2::widget::get_best_size(), gui2::window::layout(), gui2::container_base::layout_initialize(), gui2::window::layout_linked_widgets(), gui2::log_gui_layout, LOG_IMPL_HEADER, LOG_IMPL_SCOPE_HEADER, log_scope2, gui2::container_base::reduce_height(), gui2::container_base::reduce_width(), and utf8::size().

Referenced by gui2::window::layout().


The documentation for this struct was generated from the following files: