Helper to implement private functions without modifying the header. More...
#include <grid_private.hpp>
Static Public Member Functions | |
template<class W > | |
static W * | find_at (utils::const_clone_ref< grid, W > grid, const point &coordinate, const bool must_be_active) |
Implementation for the wrappers for [const] widget* grid::find_at(const point&, const bool) [const]. More... | |
template<class W > | |
static W * | find (utils::const_clone_ref< grid, W > grid, const std::string_view id, const bool must_be_active) |
Implementation for the wrappers for [const] widget* grid::find(const std::string_view, const bool) [const]. More... | |
static unsigned | row_request_reduce_height (grid &grid, const unsigned row, const unsigned maximum_height) |
Helper function to do the resizing of a row. More... | |
static unsigned | column_request_reduce_width (grid &grid, const unsigned column, const unsigned maximum_width) |
Helper function to do the resizing of a column. More... | |
Static Private Member Functions | |
static void | cell_request_reduce_height (grid::child &child, const unsigned maximum_height) |
Helper function to do the resizing of a widget. More... | |
static void | cell_request_reduce_width (grid::child &child, const unsigned maximum_width) |
Helper function to do the resizing of a widget. More... | |
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 46 of file grid_private.hpp.
|
staticprivate |
Helper function to do the resizing of a widget.
child | The cell whose widget needs to be resized. |
maximum_height | The wanted maximum height. |
Definition at line 1076 of file grid.cpp.
References gui2::event::dispatcher::child, and gui2::widget::invisible.
|
staticprivate |
Helper function to do the resizing of a widget.
child | The cell whose widget needs to be resized. |
maximum_width | The wanted maximum width. |
Definition at line 1090 of file grid.cpp.
References gui2::event::dispatcher::child, and gui2::widget::invisible.
|
static |
Helper function to do the resizing of a column.
grid | The grid to operate upon. |
column | The column to resize. |
maximum_width | The wanted maximum width. |
Definition at line 1050 of file grid.cpp.
References DBG_GUI_L, gui2::grid::child::get_best_size(), gui2::grid::get_child(), LOG_IMPL_HEADER, gui2::grid::rows_, and utf8::size().
Referenced by gui2::grid::request_reduce_width().
|
inlinestatic |
Implementation for the wrappers for [const] widget* grid::find(const std::string_view, const bool) [const].
W | widget or const widget. |
Definition at line 83 of file grid_private.hpp.
References gui2::grid::children_, and gui2::widget::find().
|
inlinestatic |
Implementation for the wrappers for [const] widget* grid::find_at(const point&, const bool) [const].
W | widget or const widget. |
Definition at line 55 of file grid_private.hpp.
References gui2::grid::children_, and gui2::widget::find_at().
|
static |
Helper function to do the resizing of a row.
grid | The grid to operate upon. |
row | The row to resize. |
maximum_height | The wanted maximum height. |
Definition at line 1025 of file grid.cpp.
References gui2::grid::cols_, DBG_GUI_L, gui2::grid::child::get_best_size(), gui2::grid::get_child(), LOG_IMPL_HEADER, and utf8::size().
Referenced by gui2::grid::request_reduce_height().