Static Public Member Functions | Static Private Member Functions

gui2::tgrid_implementation Struct Reference

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

#include <grid_private.hpp>

List of all members.

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.

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 47 of file grid_private.hpp.


Member Function Documentation

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.

Parameters:
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().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters:
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().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters:
grid The grid to operate upon.
column The column to resize.
maximum_width The wanted maximum width.
Returns:
The required column width after resizing.

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().

Here is the call graph for this function:

Here is the caller graph for this function:

template<class W >
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].

Template Parameters:
W twidget or const twidget.

Definition at line 85 of file grid_private.hpp.

template<class W >
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].

Template Parameters:
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.

Parameters:
grid The grid to operate upon.
row The row to resize.
maximum_height The wanted maximum height.
Returns:
The required row height after resizing.

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().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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