The Battle for Wesnoth  1.19.5+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 47 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 57 of file pane.cpp.

References gui2::widget::invisible, and gui2::pane::items_.

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

References gui2::pane::items_.

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


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