HoverRace
2.0
|
Base class for FillBox views. More...
#include <SdlBoxView.h>
Public Member Functions | |
SdlBoxView (SdlDisplay &disp, T &model) | |
virtual | ~SdlBoxView () |
Vec2 | GetScreenPos () const override |
Retrieve the screen-space position, if available. More... | |
Vec2 | GetScreenSize () const override |
Retrieve the screen-space size, if available. More... | |
Public Member Functions inherited from HoverRace::Display::SDL::SdlView< T > | |
SdlView (SdlDisplay &display, T &model) | |
virtual | ~SdlView () |
Public Member Functions inherited from HoverRace::Display::View | |
virtual | ~View () |
virtual Vec3 | Measure ()=0 |
virtual void | OnModelUpdate (int prop) |
Called by the view model to indicate that a property has changed. More... | |
View & | operator= (const View &)=delete |
virtual void | PrepareRender ()=0 |
virtual void | Render ()=0 |
Protected Member Functions | |
void | CalcScreenBounds () |
Update the screen-space bounds from the UI-space bounds. More... | |
Protected Attributes | |
Vec2 | screenPos |
Vec2 | screenSize |
Protected Attributes inherited from HoverRace::Display::SDL::SdlView< T > | |
SdlDisplay & | display |
T & | model |
Private Types | |
using | SUPER = SdlView< T > |
Base class for FillBox views.
|
private |
|
inline |
|
inlinevirtual |
|
inlineprotected |
Update the screen-space bounds from the UI-space bounds.
|
inlineoverridevirtual |
Retrieve the screen-space position, if available.
The availability of this information varies from view to view.
Reimplemented from HoverRace::Display::View.
|
inlineoverridevirtual |
Retrieve the screen-space size, if available.
The availability of this information varies from view to view.
Reimplemented from HoverRace::Display::View.
|
protected |
|
protected |