![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GUI/Animations.h>
A scope guard to set the globally available enabled property for animations.
More...
Inheritance diagram for ScopedEnabler:A scope guard to set the globally available enabled property for animations.
In the above example ImageView2D::reset() will animate the resetting if animationsEnabled() is currently true. Using the ScopedEnabler scope guard will achieve that the view is reset without any animations, regardless of the current animationsEnabled() state, and that the enabled state is reset to its original value at the end of the scope.
Public Member Functions | |
| ScopedEnabler (bool enabled) | |
Additional Inherited Members | |
Protected Member Functions inherited from NotCopyable | |
| NotCopyable (NotCopyable &&) noexcept=default | |
| NotCopyable & | operator= (NotCopyable &&) noexcept=default |
| NotCopyable (const NotCopyable &)=delete | |
| NotCopyable & | operator= (const NotCopyable &)=delete |