The non-template part of Animated and Crossfade: the owner, the property name, the running transition and the registration with the shared AnimationDriver.
More...
#include <gin_animated.h>
|
| std::function< void()> | onChange |
| | Called on every change of the current value (each animation step, and jumps), after the owner was asked to repaint.
|
|
| bool | start (const Transition &t) |
| | Returns false when the change has to apply at once: an instant transition or an owner not on screen.
|
| void | stop () |
| void | changed () |
| virtual void | update (float progress)=0 |
| | Moves the current value to the eased progress between start and target.
|
| virtual void | valueChanged () |
| | For subclasses that apply the value somewhere: called on every change, before onChange.
|
| float | getLastProgress () const |
| | The eased progress of the latest step of the running transition.
|
The non-template part of Animated and Crossfade: the owner, the property name, the running transition and the registration with the shared AnimationDriver.
◆ AnimatedBase()
| AnimatedBase::AnimatedBase |
( |
juce::Component & | owner, |
|
|
const juce::String & | property ) |
◆ ~AnimatedBase()
| virtual AnimatedBase::~AnimatedBase |
( |
| ) |
|
|
virtual |
◆ isAnimating()
| bool AnimatedBase::isAnimating |
( |
| ) |
const |
◆ getOwner()
| juce::Component * AnimatedBase::getOwner |
( |
| ) |
const |
◆ getProperty()
| const juce::String & AnimatedBase::getProperty |
( |
| ) |
const |
The name the layout's "transition" entries know this value by.
◆ getTransition()
◆ start()
◆ stop()
| void AnimatedBase::stop |
( |
| ) |
|
|
protected |
◆ changed()
| void AnimatedBase::changed |
( |
| ) |
|
|
protected |
◆ update()
| virtual void AnimatedBase::update |
( |
float | progress | ) |
|
|
protectedpure virtual |
Moves the current value to the eased progress between start and target.
◆ valueChanged()
| virtual void AnimatedBase::valueChanged |
( |
| ) |
|
|
protectedvirtual |
For subclasses that apply the value somewhere: called on every change, before onChange.
◆ getLastProgress()
| float AnimatedBase::getLastProgress |
( |
| ) |
const |
|
protected |
◆ onChange
| std::function<void()> AnimatedBase::onChange |
Called on every change of the current value (each animation step, and jumps), after the owner was asked to repaint.
Use it for anything beyond a repaint, e.g. moving child components. When a transition ends, isAnimating() is already false here.
The documentation for this class was generated from the following file: