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 (typename utils::tconst_clone< tgrid, W >::reference grid, const tpoint &coordinate, const bool must_be_active) |
Implementation for the wrappers for [const] twidget* tgrid::find_at(const tpoint&, const bool) [const]. More... | |
template<class W > | |
static W * | find (typename utils::tconst_clone< tgrid, W >::reference grid, const std::string &id, const bool must_be_active) |
Implementation for the wrappers for [const] twidget* tgrid::find(const std::string&, const bool) [const]. More... | |
static unsigned | row_request_reduce_height (tgrid &grid, const unsigned row, const unsigned maximum_height) |
Helper function to do the resizing of a row. More... | |
static unsigned | column_request_reduce_width (tgrid &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 (tgrid::tchild &child, const unsigned maximum_height) |
Helper function to do the resizing of a widget. More... | |
static void | cell_request_reduce_width (tgrid::tchild &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 995 of file grid.cpp.
References gui2::tgrid::tchild::border_space(), gui2::twidget::get_visible(), gui2::twidget::tvisible::invisible, gui2::twidget::request_reduce_height(), gui2::tgrid::tchild::widget_, and gui2::tpoint::y.
|
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 1009 of file grid.cpp.
References gui2::tgrid::tchild::border_space(), gui2::twidget::get_visible(), gui2::twidget::tvisible::invisible, gui2::twidget::request_reduce_width(), gui2::tgrid::tchild::widget_, and gui2::tpoint::x.
|
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 969 of file grid.cpp.
References gui2::tgrid::child(), DBG_GUI_L, gui2::tgrid::tchild::get_best_size(), LOG_IMPL_HEADER, and gui2::tgrid::rows_.
Referenced by gui2::tgrid::request_reduce_width().
|
inlinestatic |
Implementation for the wrappers for [const] twidget* tgrid::find(const std::string&, const bool) [const].
W | twidget or const twidget. |
Definition at line 85 of file grid_private.hpp.
|
inlinestatic |
Implementation for the wrappers for [const] twidget* tgrid::find_at(const tpoint&, const bool) [const].
W | twidget or const twidget. |
Definition at line 55 of file grid_private.hpp.
|
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 944 of file grid.cpp.
References gui2::tgrid::child(), gui2::tgrid::cols_, DBG_GUI_L, gui2::tgrid::tchild::get_best_size(), and LOG_IMPL_HEADER.
Referenced by gui2::tgrid::request_reduce_height().