SDL view for buttons.
More...
#include <SdlButtonView.h>
SDL view for buttons.
- Author
- Michael Imamura
HoverRace::Display::SDL::SdlButtonView::SdlButtonView |
( |
SdlDisplay & |
disp, |
|
|
Button & |
model |
|
) |
| |
|
inline |
virtual HoverRace::Display::SDL::SdlButtonView::~SdlButtonView |
( |
| ) |
|
|
inlinevirtual |
Vec2 HoverRace::Display::SDL::SdlButtonView::GetScreenPos |
( |
| ) |
const |
|
overridevirtual |
Retrieve the screen-space position, if available.
The availability of this information varies from view to view.
- Returns
- The screen position, or (0, 0) if unavailable..
Reimplemented from HoverRace::Display::View.
Vec2 HoverRace::Display::SDL::SdlButtonView::GetScreenSize |
( |
| ) |
const |
|
overridevirtual |
Retrieve the screen-space size, if available.
The availability of this information varies from view to view.
- Returns
- The screen size, or (0, 0) if unavailable.
Reimplemented from HoverRace::Display::View.
Vec3 HoverRace::Display::SDL::SdlButtonView::Measure |
( |
| ) |
|
|
overridevirtual |
void HoverRace::Display::SDL::SdlButtonView::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
-
prop | The model-specific ID of the property that changed. |
Reimplemented from HoverRace::Display::View.
void HoverRace::Display::SDL::SdlButtonView::PrepareRender |
( |
| ) |
|
|
overridevirtual |
void HoverRace::Display::SDL::SdlButtonView::Render |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: