SDL view for KeycapIcon.
More...
#include <SdlKeycapIconView.h>
SDL view for KeycapIcon.
- Author
- Michael Imamura
HoverRace::Display::SDL::SdlKeycapIconView::SdlKeycapIconView |
( |
SdlDisplay & |
disp, |
|
|
KeycapIcon & |
model |
|
) |
| |
HoverRace::Display::SDL::SdlKeycapIconView::~SdlKeycapIconView |
( |
| ) |
|
|
virtual |
Vec3 HoverRace::Display::SDL::SdlKeycapIconView::Measure |
( |
| ) |
|
|
overridevirtual |
void HoverRace::Display::SDL::SdlKeycapIconView::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
-
prop | The model-specific ID of the property that changed. |
Reimplemented from HoverRace::Display::View.
void HoverRace::Display::SDL::SdlKeycapIconView::PrepareRender |
( |
| ) |
|
|
overridevirtual |
void HoverRace::Display::SDL::SdlKeycapIconView::Render |
( |
| ) |
|
|
overridevirtual |
void HoverRace::Display::SDL::SdlKeycapIconView::UpdateTexture |
( |
| ) |
|
|
private |
void HoverRace::Display::SDL::SdlKeycapIconView::UpdateTextureColor |
( |
| ) |
|
|
private |
bool HoverRace::Display::SDL::SdlKeycapIconView::colorChanged |
|
private |
int HoverRace::Display::SDL::SdlKeycapIconView::height |
|
private |
int HoverRace::Display::SDL::SdlKeycapIconView::realHeight |
|
private |
int HoverRace::Display::SDL::SdlKeycapIconView::realWidth |
|
private |
std::unique_ptr<SdlTexture> HoverRace::Display::SDL::SdlKeycapIconView::texture |
|
private |
boost::signals2::scoped_connection HoverRace::Display::SDL::SdlKeycapIconView::uiScaleChangedConnection |
|
private |
double HoverRace::Display::SDL::SdlKeycapIconView::unscaledHeight |
|
private |
double HoverRace::Display::SDL::SdlKeycapIconView::unscaledWidth |
|
private |
int HoverRace::Display::SDL::SdlKeycapIconView::width |
|
private |
The documentation for this class was generated from the following files: