![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GUI/Animations.h>
A scope guard to set the globally available enabled
property for animations.
More...
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 | |
![]() | |
NotCopyable (NotCopyable &&) noexcept=default | |
NotCopyable & | operator= (NotCopyable &&) noexcept=default |
NotCopyable (const NotCopyable &)=delete | |
NotCopyable & | operator= (const NotCopyable &)=delete |