HoverRace  2.0
Classes | Public Member Functions | Private Types | Private Attributes | List of all members
HoverRace::Display::ScreenFade Class Reference

Paints a solid color over the whole screen with adjustable opacity. More...

#include <ScreenFade.h>

+ Inheritance diagram for HoverRace::Display::ScreenFade:

Classes

struct  Props
 

Public Member Functions

 ScreenFade (const Color color, double opacity)
 Constructor. More...
 
virtual ~ScreenFade ()
 
virtual void AttachView (Display &disp)
 
const Color GetColor () const
 
void SetColor (const Color color)
 Set the color of the overlay when fully-opaque. More...
 
- Public Member Functions inherited from HoverRace::Display::Background
 Background (double opacity=1.0)
 Constructor. More...
 
virtual ~Background ()=0
 
double GetOpacity () const
 
void SetOpacity (double opacity)
 Set the opacity of the overlay. More...
 
- Public Member Functions inherited from HoverRace::Display::ViewModel
 ViewModel ()
 
virtual ~ViewModel ()
 
ViewGetView () const
 
virtual Vec3 Measure ()
 Calculate the size of the component. More...
 
void PrepareRender ()
 
void Render ()
 
void SetView (std::unique_ptr< View > &&view)
 

Private Types

typedef Background SUPER
 

Private Attributes

Color color
 

Additional Inherited Members

- Protected Member Functions inherited from HoverRace::Display::ViewModel
template<class T >
void AttachViewDynamic (Display &disp, T *self)
 
virtual void FireModelUpdate (int prop)
 Indicate that a model property has changed. More...
 
virtual void Layout ()
 Adjust the size and position of any child elements. More...
 
void RequestLayout ()
 Indicate that the current layout is out-of-date and needs to be adjusted. More...
 

Detailed Description

Paints a solid color over the whole screen with adjustable opacity.

Author
Michael Imamura

Member Typedef Documentation

Constructor & Destructor Documentation

HoverRace::Display::ScreenFade::ScreenFade ( const Color  color,
double  opacity 
)

Constructor.

Parameters
colorThe color of the fade (including alpha).
opacityThe opacity (1.0 is fully-opaque, 0.0 is fully-transparent).
HoverRace::Display::ScreenFade::~ScreenFade ( )
virtual

Member Function Documentation

virtual void HoverRace::Display::ScreenFade::AttachView ( Display disp)
inlinevirtual
const Color HoverRace::Display::ScreenFade::GetColor ( ) const
inline
void HoverRace::Display::ScreenFade::SetColor ( const Color  color)

Set the color of the overlay when fully-opaque.

Parameters
colorThe color of the fade (including alpha).

Member Data Documentation

Color HoverRace::Display::ScreenFade::color
private

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