The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Static Public Member Functions | List of all members
gui2::tviewport_implementation Struct Reference

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

Static Public Member Functions

template<class W >
static utils::tconst_clone
< twidget, W >::pointer 
find_at (W viewport, tpoint coordinate, const bool must_be_active)
 Implementation for the wrappers for [const] twidget* tpane::find_at(const tpoint&, const bool) [const]. More...
 
template<class W >
static utils::tconst_clone
< twidget, W >::pointer 
find (W viewport, const std::string &id, const bool must_be_active)
 

Detailed Description

Helper to implement private functions without modifying the header.

The class is a helper to avoid recompilation and only has static functions. It also facilitates to create duplicates of functions for a const and a non-const member function.

Definition at line 38 of file viewport.cpp.

Member Function Documentation

template<class W >
static utils::tconst_clone<twidget, W>::pointer gui2::tviewport_implementation::find ( viewport,
const std::string id,
const bool  must_be_active 
)
inlinestatic

Definition at line 70 of file viewport.cpp.

Referenced by gui2::tviewport::find().

template<class W >
static utils::tconst_clone<twidget, W>::pointer gui2::tviewport_implementation::find_at ( viewport,
tpoint  coordinate,
const bool  must_be_active 
)
inlinestatic

Implementation for the wrappers for [const] twidget* tpane::find_at(const tpoint&, const bool) [const].

Template Parameters
WA pointer to the pane.

Definition at line 48 of file viewport.cpp.

References gui2::tpoint::x, and gui2::tpoint::y.

Referenced by gui2::tviewport::find_at().


The documentation for this struct was generated from the following file: