The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces
grid_private.hpp File Reference

Helper for header for the grid. More...

#include "gui/widgets/grid.hpp"
#include "utils/const_clone.hpp"
Include dependency graph for grid_private.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  gui2::tgrid_implementation
 Helper to implement private functions without modifying the header. More...
 

Namespaces

 gui2
 A class inherited from ttext_box that displays its input as stars.
 

Detailed Description

Helper for header for the grid.

Note
This file should only be included by grid.cpp.

This file is being used for a small experiment in which some private functions of tgrid are no longer in tgrid but moved in a friend class with static functions. The goal is to have less header recompilations, when there's a need to add or remove a private function. Also non-trivial functions like 'const foo& bar() const' and 'foo& bar()' are wrapped in a template to avoid code duplication (for typing not for the binary) to make maintenance easier.

Definition in file grid_private.hpp.