HoverRace  2.0
Public Member Functions | Private Attributes | List of all members
HoverRace::Display::Hud::HudLocProxy Class Reference

A reference to a HUD location; useful for adding new HUD elements. More...

#include <Hud.h>

Public Member Functions

 HudLocProxy (Hud &hud, HudAlignment::type alignment)
 
 HudLocProxy (const HudLocProxy &)=default
 
 HudLocProxy (HudLocProxy &&)=default
 
template<class T , class... Args>
std::enable_if< std::is_base_of< HudDecor, T >::value, std::shared_ptr< T > >::type NewChild (Args &&...args)
 Append a child element at this location. More...
 
HudLocProxyoperator= (const HudLocProxy &)=delete
 
HudLocProxyoperator= (HudLocProxy &&)=delete
 

Private Attributes

HudAlignment::type alignment
 
Hudhud
 

Detailed Description

A reference to a HUD location; useful for adding new HUD elements.

Constructor & Destructor Documentation

HoverRace::Display::Hud::HudLocProxy::HudLocProxy ( Hud hud,
HudAlignment::type  alignment 
)
inline
HoverRace::Display::Hud::HudLocProxy::HudLocProxy ( const HudLocProxy )
default
HoverRace::Display::Hud::HudLocProxy::HudLocProxy ( HudLocProxy &&  )
default

Member Function Documentation

template<class T , class... Args>
std::enable_if< std::is_base_of<HudDecor, T>::value, std::shared_ptr<T> >::type HoverRace::Display::Hud::HudLocProxy::NewChild ( Args &&...  args)
inline

Append a child element at this location.

Template Parameters
TThe type of the child widget.
ArgsThe types of the arguments.
Parameters
argsThe arguments to pass to the child widget's constructor.
Returns
The actual grid cell
HudLocProxy& HoverRace::Display::Hud::HudLocProxy::operator= ( const HudLocProxy )
delete
HudLocProxy& HoverRace::Display::Hud::HudLocProxy::operator= ( HudLocProxy &&  )
delete

Member Data Documentation

HudAlignment::type HoverRace::Display::Hud::HudLocProxy::alignment
private
Hud& HoverRace::Display::Hud::HudLocProxy::hud
private

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