![]() |
NDEVR
API Documentation
|
An animation that slowly changes the color over the entire UI. More...
Public Member Functions | |
| ThemeChanger (NDEVRLightingTheme start, NDEVRLightingTheme end, NDEVRProxyStyle *style) | |
| Constructs a ThemeChanger animation between two themes. | |
| float | percent () const |
| Returns the current interpolation percentage of the animation. | |
| void | setPercent (float percent) |
| Sets the current interpolation percentage and updates the style. | |
| void | startAnimation () |
| Begins the theme transition animation. | |
Public Attributes | |
| NDEVRLightingTheme | end |
| The theme at the end of the animation. | |
| NDEVRLightingTheme | start |
| The theme at the beginning of the animation. | |
| NDEVRProxyStyle * | style |
| The proxy style being animated. | |
Protected Attributes | |
| QPropertyAnimation * | m_animation |
| The underlying Qt property animation driver. | |
An animation that slowly changes the color over the entire UI.
Definition at line 55 of file NDEVRTheme.h.
| ThemeChanger::ThemeChanger | ( | NDEVRLightingTheme | start, |
| NDEVRLightingTheme | end, | ||
| NDEVRProxyStyle * | style ) |
| float ThemeChanger::percent | ( | ) | const |
Returns the current interpolation percentage of the animation.
Referenced by setPercent().
| void ThemeChanger::setPercent | ( | float | percent | ) |