The Battle for Wesnoth  1.15.1+dev
Static Public Member Functions | List of all members
gui2::pane_implementation Struct Reference

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

Static Public Member Functions

template<class W >
static utils::const_clone_ptr< widget, W > find_at (W pane, point coordinate, const bool must_be_active)
 Implementation for the wrappers for [const] widget* pane::find_at(const point&, const bool) [const]. More...
 
template<class W >
static utils::const_clone_ptr< grid, W > get_grid (W pane, const unsigned id)
 Implementation for the wrappers for [const] grid* pane::grid(const unsigned id) [const]. More...
 

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 46 of file pane.cpp.

Member Function Documentation

◆ find_at()

template<class W >
static utils::const_clone_ptr<widget, W> gui2::pane_implementation::find_at ( pane,
point  coordinate,
const bool  must_be_active 
)
inlinestatic

Implementation for the wrappers for [const] widget* pane::find_at(const point&, const bool) [const].

Template Parameters
WA pointer to the pane.

Definition at line 56 of file pane.cpp.

References gui2::widget::invisible, and sdl::point_in_rect().

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

◆ get_grid()

template<class W >
static utils::const_clone_ptr<grid, W> gui2::pane_implementation::get_grid ( pane,
const unsigned  id 
)
inlinestatic

Implementation for the wrappers for [const] grid* pane::grid(const unsigned id) [const].

Template Parameters
WA pointer to the pane.

Definition at line 93 of file pane.cpp.

Referenced by gui2::pane::get_grid().


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