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

#include <SdlActiveTextView.h>

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

Public Member Functions

 SdlActiveTextView (SdlDisplay &disp, ActiveText &model)
 
virtual ~SdlActiveTextView ()
 
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< ActiveText >
 SdlView (SdlDisplay &display, ActiveText &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< ActiveText >
 

Private Member Functions

void OnUiScaleChanged ()
 
void UpdateTexture ()
 

Private Attributes

int height
 
bool needsUpdate
 
std::shared_ptr< TypeCasetypeCase
 
TypeLine typeLine
 
boost::signals2::scoped_connection uiScaleChangedConnection
 
double unscaledHeight
 
double unscaledWidth
 
int width
 

Additional Inherited Members

- Protected Attributes inherited from HoverRace::Display::SDL::SdlView< ActiveText >
SdlDisplaydisplay
 
ActiveTextmodel
 

Member Typedef Documentation

Constructor & Destructor Documentation

HoverRace::Display::SDL::SdlActiveTextView::SdlActiveTextView ( SdlDisplay disp,
ActiveText model 
)
HoverRace::Display::SDL::SdlActiveTextView::~SdlActiveTextView ( )
virtual

Member Function Documentation

Vec3 HoverRace::Display::SDL::SdlActiveTextView::Measure ( )
overridevirtual
void HoverRace::Display::SDL::SdlActiveTextView::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::SdlActiveTextView::OnUiScaleChanged ( )
private
void HoverRace::Display::SDL::SdlActiveTextView::PrepareRender ( )
overridevirtual
void HoverRace::Display::SDL::SdlActiveTextView::Render ( )
overridevirtual
void HoverRace::Display::SDL::SdlActiveTextView::UpdateTexture ( )
private

Member Data Documentation

int HoverRace::Display::SDL::SdlActiveTextView::height
private
bool HoverRace::Display::SDL::SdlActiveTextView::needsUpdate
private
std::shared_ptr<TypeCase> HoverRace::Display::SDL::SdlActiveTextView::typeCase
private
TypeLine HoverRace::Display::SDL::SdlActiveTextView::typeLine
private
boost::signals2::scoped_connection HoverRace::Display::SDL::SdlActiveTextView::uiScaleChangedConnection
private
double HoverRace::Display::SDL::SdlActiveTextView::unscaledHeight
private
double HoverRace::Display::SDL::SdlActiveTextView::unscaledWidth
private
int HoverRace::Display::SDL::SdlActiveTextView::width
private

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