openshot-audio
0.1.2
|
#include <juce_AnimatedPositionBehaviours.h>
Public Member Functions | |
SnapToPageBoundaries () noexcept | |
void | releasedWithVelocity (double position, double releaseVelocity) noexcept |
double | getNextPosition (double oldPos, double elapsedSeconds) const noexcept |
bool | isStopped (double position) const noexcept |
A behaviour that gravitates an AnimatedPosition object towards the nearest integer position when released.
This class is intended to be used as a template parameter to the AnimatedPosition class. It's handy when using an AnimatedPosition to show a series of pages, because it allows the pages can be scrolled smoothly, but when released, snaps back to show a whole page.
|
inlinenoexcept |
|
inlinenoexcept |
Called by the AnimatedPosition class to get the new position, after the given time has elapsed.
|
inlinenoexcept |
Called by the AnimatedPosition class to check whether the object is now stationary.
|
inlinenoexcept |
Called by the AnimatedPosition class. This tells us the position and velocity at which the user is about to release the object. The velocity is measured in units/second.