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]. | |
| 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]. | |
| static unsigned | row_request_reduce_height (tgrid &grid, const unsigned row, const unsigned maximum_height) |
| Helper function to do the resizing of a row. | |
| static unsigned | column_request_reduce_width (tgrid &grid, const unsigned column, const unsigned maximum_width) |
| Helper function to do the resizing of a column. | |
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. | |
| static void | cell_request_reduce_width (tgrid::tchild &child, const unsigned maximum_width) |
| Helper function to do the resizing of a widget. | |
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 47 of file grid_private.hpp.
| void gui2::tgrid_implementation::cell_request_reduce_height | ( | tgrid::tchild & | child, | |
| const unsigned | maximum_height | |||
| ) | [static, private] |
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 1057 of file grid.cpp.
References gui2::tgrid::tchild::border_space(), gui2::twidget::get_visible(), gui2::twidget::request_reduce_height(), gui2::tgrid::tchild::widget_, and gui2::tpoint::y.
Referenced by row_request_reduce_height().


| void gui2::tgrid_implementation::cell_request_reduce_width | ( | tgrid::tchild & | child, | |
| const unsigned | maximum_width | |||
| ) | [static, private] |
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 1070 of file grid.cpp.
References gui2::tgrid::tchild::border_space(), gui2::twidget::get_visible(), gui2::twidget::request_reduce_width(), gui2::tgrid::tchild::widget_, and gui2::tpoint::x.
Referenced by column_request_reduce_width().


| unsigned gui2::tgrid_implementation::column_request_reduce_width | ( | tgrid & | grid, | |
| const unsigned | column, | |||
| const unsigned | maximum_width | |||
| ) | [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 1030 of file grid.cpp.
References cell_request_reduce_width(), 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().


| static W* gui2::tgrid_implementation::find | ( | typename utils::tconst_clone< tgrid, W >::reference | grid, | |
| const std::string & | id, | |||
| const bool | must_be_active | |||
| ) | [inline, static] |
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.
| static W* gui2::tgrid_implementation::find_at | ( | typename utils::tconst_clone< tgrid, W >::reference | grid, | |
| const tpoint & | coordinate, | |||
| const bool | must_be_active | |||
| ) | [inline, static] |
Implementation for the wrappers for [const] twidget* tgrid::find_at(const tpoint&, const bool) [const].
| W | twidget or const twidget. |
Definition at line 56 of file grid_private.hpp.
| unsigned gui2::tgrid_implementation::row_request_reduce_height | ( | tgrid & | grid, | |
| const unsigned | row, | |||
| const unsigned | maximum_height | |||
| ) | [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 1003 of file grid.cpp.
References cell_request_reduce_height(), 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().


| Generated by doxygen 1.7.1 on Fri May 25 2012 01:22:21 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |