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

SDL view for RuleLine. More...

#include <SdlRuleLineView.h>

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

Public Member Functions

 SdlRuleLineView (SdlDisplay &disp, RuleLine &model)
 
virtual ~SdlRuleLineView ()
 
Vec3 Measure () override
 
void OnModelUpdate (int) 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< RuleLine >
 SdlView (SdlDisplay &display, RuleLine &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< RuleLine >
 

Additional Inherited Members

- Protected Attributes inherited from HoverRace::Display::SDL::SdlView< RuleLine >
SdlDisplaydisplay
 
RuleLinemodel
 

Detailed Description

SDL view for RuleLine.

Author
Michael Imamura

Member Typedef Documentation

Constructor & Destructor Documentation

HoverRace::Display::SDL::SdlRuleLineView::SdlRuleLineView ( SdlDisplay disp,
RuleLine model 
)
inline
virtual HoverRace::Display::SDL::SdlRuleLineView::~SdlRuleLineView ( )
inlinevirtual

Member Function Documentation

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

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::SdlRuleLineView::PrepareRender ( )
inlineoverridevirtual
void HoverRace::Display::SDL::SdlRuleLineView::Render ( )
overridevirtual

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