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

SDL view for SymbolIcon. More...

#include <SdlSymbolIconView.h>

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

Public Member Functions

 SdlSymbolIconView (SdlDisplay &disp, SymbolIcon &model)
 
virtual ~SdlSymbolIconView ()
 
virtual Vec3 Measure ()
 
virtual void OnModelUpdate (int prop)
 Called by the view model to indicate that a property has changed. More...
 
virtual void PrepareRender ()
 
virtual void Render ()
 
- Public Member Functions inherited from HoverRace::Display::SDL::SdlView< SymbolIcon >
 SdlView (SdlDisplay &display, SymbolIcon &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

using SUPER = SdlView< SymbolIcon >
 

Private Member Functions

void UpdateTexture ()
 

Private Attributes

int height
 
std::unique_ptr< TypeLinetypeLine
 
boost::signals2::scoped_connection uiScaleChangedConnection
 
double unscaledHeight
 
double unscaledWidth
 
int width
 

Additional Inherited Members

- Protected Attributes inherited from HoverRace::Display::SDL::SdlView< SymbolIcon >
SdlDisplaydisplay
 
SymbolIconmodel
 

Detailed Description

SDL view for SymbolIcon.

Author
Michael Imamura

Member Typedef Documentation

Constructor & Destructor Documentation

HoverRace::Display::SDL::SdlSymbolIconView::SdlSymbolIconView ( SdlDisplay disp,
SymbolIcon model 
)
HoverRace::Display::SDL::SdlSymbolIconView::~SdlSymbolIconView ( )
virtual

Member Function Documentation

Vec3 HoverRace::Display::SDL::SdlSymbolIconView::Measure ( )
virtual
void HoverRace::Display::SDL::SdlSymbolIconView::OnModelUpdate ( int  prop)
virtual

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::SdlSymbolIconView::PrepareRender ( )
virtual
void HoverRace::Display::SDL::SdlSymbolIconView::Render ( )
virtual
void HoverRace::Display::SDL::SdlSymbolIconView::UpdateTexture ( )
private

Member Data Documentation

int HoverRace::Display::SDL::SdlSymbolIconView::height
private
std::unique_ptr<TypeLine> HoverRace::Display::SDL::SdlSymbolIconView::typeLine
private
boost::signals2::scoped_connection HoverRace::Display::SDL::SdlSymbolIconView::uiScaleChangedConnection
private
double HoverRace::Display::SDL::SdlSymbolIconView::unscaledHeight
private
double HoverRace::Display::SDL::SdlSymbolIconView::unscaledWidth
private
int HoverRace::Display::SDL::SdlSymbolIconView::width
private

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