![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GUI/Animations.h>
Dummy implementation of the AnimationBackendBase interface that will not execute any animation but only call its update() function exactly once with t=1.0. More...
Dummy implementation of the AnimationBackendBase interface that will not execute any animation but only call its update() function exactly once with t=1.0.
You can use this backend in the absence of a suitable event loop
Protected Member Functions | |
void | runImpl (std::shared_ptr< Animation > animation) override |
Called by the base interface once animation is fully configured and ready to dispatch. | |
![]() | |
void | setAnimationState (Animation &animation, Animation::State newState) const |
![]() | |
void | disconnectAll () |
Disconnects all existing connections. | |
Additional Inherited Members | |
![]() | |
void | run (std::shared_ptr< Animation > animation, const std::optional< UniqueId > &uniqueId=std::nullopt) |
Dispatches the given animation canceling any running animation with the same ID if applicable. | |
void | cancelAllAnimations () |
Cancels all animations currently in flight. | |
bool | isEnabled () const |
Returns the flag whether dispatching of new animations is enabled. | |
void | setEnabled (bool value) |
Sets the flag whether dispatching of new animations is enabled. | |
double | animationDurationFactor () const |
Returns the duration multiplier for run animations; enables you to change the speed of all animations consistently. | |
void | setAnimationDurationFactor (double value) |
Sets the duration multiplier for run animations, must be >= 0; enables you to change the speed of all animations consistently. | |
![]() | |
SignalReceiver ()=default | |
Default constructor. | |
SignalReceiver (const SignalReceiver &other) | |
Copy constructor, does not copy any existing signal connections from other. | |
SignalReceiver & | operator= (SignalReceiver rhs) |
Assignment operator, disconnects all existing connections, does not copy any existing signal connections from rhs. | |
virtual | ~SignalReceiver () |
Virtual destructor disconnects from all connected signals. | |
|
overrideprotectedvirtual |
Called by the base interface once animation is fully configured and ready to dispatch.
Derived classes must take care of actually dispatching the animation so that the interface invariants are met.
Implements AnimationBackendBase.