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

SDL view for Wallpaper. More...

#include <SdlWallpaperView.h>

+ Inheritance diagram for HoverRace::Display::SDL::SdlWallpaperView:

Public Member Functions

 SdlWallpaperView (SdlDisplay &disp, Wallpaper &model)
 
virtual ~SdlWallpaperView ()
 
Vec3 Measure () override
 
void OnModelUpdate (int prop) override
 Called by the view model to indicate that a property has changed. More...
 
void PrepareRender () override
 
void Render () override
 
- Public Member Functions inherited from HoverRace::Display::SDL::SdlView< Wallpaper >
 SdlView (SdlDisplay &display, Wallpaper &model)
 
virtual ~SdlView ()
 
- Public Member Functions inherited from HoverRace::Display::View
virtual ~View ()
 
virtual Vec2 GetScreenPos () const
 Retrieve the screen-space position, if available. More...
 
virtual Vec2 GetScreenSize () const
 Retrieve the screen-space size, if available. More...
 
Viewoperator= (const View &)=delete
 

Private Types

typedef SdlView< WallpaperSUPER
 

Private Member Functions

void Update ()
 

Private Attributes

MR_UInt8 computedAlpha
 
SDL_Rect destRect
 
const SDL_Rect * destRectPtr
 
boost::signals2::connection displayConfigChangedConn
 
bool fillChanged
 
bool opacityChanged
 
std::shared_ptr< SdlTexturetexture
 

Additional Inherited Members

- Protected Attributes inherited from HoverRace::Display::SDL::SdlView< Wallpaper >
SdlDisplaydisplay
 
Wallpapermodel
 

Detailed Description

SDL view for Wallpaper.

Author
Michael Imamura

Member Typedef Documentation

Constructor & Destructor Documentation

HoverRace::Display::SDL::SdlWallpaperView::SdlWallpaperView ( SdlDisplay disp,
Wallpaper model 
)
virtual HoverRace::Display::SDL::SdlWallpaperView::~SdlWallpaperView ( )
inlinevirtual

Member Function Documentation

Vec3 HoverRace::Display::SDL::SdlWallpaperView::Measure ( )
overridevirtual
void HoverRace::Display::SDL::SdlWallpaperView::OnModelUpdate ( int  prop)
overridevirtual

Called by the view model to indicate that a property has changed.

The view can use this to decide if view-specific resources need to be reloaded.

Parameters
propThe model-specific ID of the property that changed.

Reimplemented from HoverRace::Display::View.

void HoverRace::Display::SDL::SdlWallpaperView::PrepareRender ( )
overridevirtual
void HoverRace::Display::SDL::SdlWallpaperView::Render ( )
overridevirtual
void HoverRace::Display::SDL::SdlWallpaperView::Update ( )
private

Member Data Documentation

MR_UInt8 HoverRace::Display::SDL::SdlWallpaperView::computedAlpha
private
SDL_Rect HoverRace::Display::SDL::SdlWallpaperView::destRect
private
const SDL_Rect* HoverRace::Display::SDL::SdlWallpaperView::destRectPtr
private
boost::signals2::connection HoverRace::Display::SDL::SdlWallpaperView::displayConfigChangedConn
private
bool HoverRace::Display::SDL::SdlWallpaperView::fillChanged
private
bool HoverRace::Display::SDL::SdlWallpaperView::opacityChanged
private
std::shared_ptr<SdlTexture> HoverRace::Display::SDL::SdlWallpaperView::texture
private

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