HoverRace
2.0
|
SDL view for basic (invisible) button. More...
#include <SdlClickRegionView.h>
Public Member Functions | |
SdlClickRegionView (SdlDisplay &disp, ClickRegion &model) | |
virtual | ~SdlClickRegionView () |
Vec2 | GetScreenPos () const override |
Retrieve the screen-space position, if available. More... | |
Vec2 | GetScreenSize () const override |
Retrieve the screen-space size, if available. More... | |
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< ClickRegion > | |
SdlView (SdlDisplay &display, ClickRegion &model) | |
virtual | ~SdlView () |
Public Member Functions inherited from HoverRace::Display::View | |
virtual | ~View () |
View & | operator= (const View &)=delete |
Private Types | |
typedef SdlView< ClickRegion > | SUPER |
Private Attributes | |
Vec2 | screenPos |
Vec2 | screenSize |
Additional Inherited Members | |
Protected Attributes inherited from HoverRace::Display::SDL::SdlView< ClickRegion > | |
SdlDisplay & | display |
ClickRegion & | model |
SDL view for basic (invisible) button.
|
private |
|
inline |
|
inlinevirtual |
|
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.
|
overridevirtual |
Implements HoverRace::Display::View.
|
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.
prop | The model-specific ID of the property that changed. |
Reimplemented from HoverRace::Display::View.
|
inlineoverridevirtual |
Implements HoverRace::Display::View.
|
overridevirtual |
Implements HoverRace::Display::View.
|
private |
|
private |