|
HoverRace
2.0
|
Paints a solid color over the whole screen with adjustable opacity. More...
#include <ScreenFade.h>
Inheritance diagram for HoverRace::Display::ScreenFade:Classes | |
| struct | Props |
Public Member Functions | |
| ScreenFade (const Color color, double opacity) | |
| Constructor. More... | |
| virtual | ~ScreenFade () |
| virtual void | AttachView (Display &disp) |
| const Color | GetColor () const |
| void | SetColor (const Color color) |
| Set the color of the overlay when fully-opaque. More... | |
Public Member Functions inherited from HoverRace::Display::Background | |
| Background (double opacity=1.0) | |
| Constructor. More... | |
| virtual | ~Background ()=0 |
| double | GetOpacity () const |
| void | SetOpacity (double opacity) |
| Set the opacity of the overlay. More... | |
Public Member Functions inherited from HoverRace::Display::ViewModel | |
| ViewModel () | |
| virtual | ~ViewModel () |
| View * | GetView () const |
| virtual Vec3 | Measure () |
| Calculate the size of the component. More... | |
| void | PrepareRender () |
| void | Render () |
| void | SetView (std::unique_ptr< View > &&view) |
Private Types | |
| typedef Background | SUPER |
Private Attributes | |
| Color | color |
Additional Inherited Members | |
Protected Member Functions inherited from HoverRace::Display::ViewModel | |
| template<class T > | |
| void | AttachViewDynamic (Display &disp, T *self) |
| virtual void | FireModelUpdate (int prop) |
| Indicate that a model property has changed. More... | |
| virtual void | Layout () |
| Adjust the size and position of any child elements. More... | |
| void | RequestLayout () |
| Indicate that the current layout is out-of-date and needs to be adjusted. More... | |
Paints a solid color over the whole screen with adjustable opacity.
|
private |
| HoverRace::Display::ScreenFade::ScreenFade | ( | const Color | color, |
| double | opacity | ||
| ) |
Constructor.
| color | The color of the fade (including alpha). |
| opacity | The opacity (1.0 is fully-opaque, 0.0 is fully-transparent). |
|
virtual |
|
inlinevirtual |
Implements HoverRace::Display::ViewModel.
|
inline |
| void HoverRace::Display::ScreenFade::SetColor | ( | const Color | color | ) |
Set the color of the overlay when fully-opaque.
| color | The color of the fade (including alpha). |
|
private |
1.8.11