98 std::unique_ptr<view::SlideSorterView::DrawLock, o3tl::default_delete<view::SlideSorterView::DrawLock>>
mpDrawLock;
Show previews for all the slides in a document and allow the user to insert or delete slides and modi...
Handle one animation function by using a timer for frequent calls to the animations operator().
Experimental class for simple eye candy animations.
DECL_LINK(TimeoutHandler, Timer *, void)
AnimationList maAnimations
Animator(SlideSorter &rSlideSorter)
std::unique_ptr< view::SlideSorterView::DrawLock, o3tl::default_delete< view::SlideSorterView::DrawLock > > mpDrawLock
void RemoveAnimation(const AnimationId nAnimationId)
Abort and remove an animation.
::std::function< void()> FinishFunctor
void RemoveAllAnimations()
A typical use case for this method is the temporary shutdown of the slidesorter when the slide sorter...
AnimationId mnNextAnimationId
void Dispose()
When disposed the animator will stop its work immediately and not process any timer events anymore.
static const AnimationId NotAnAnimationId
bool ProcessAnimations(const double nTime)
Execute one step of every active animation.
AnimationId AddAnimation(const AnimationFunctor &rAnimation, const FinishFunctor &rFinishFunctor)
Schedule a new animation for execution.
::std::function< void(double)> AnimationFunctor
An animation object is called with values between 0 and 1 as single argument to its operator() method...
void CleanUpAnimationList()
Remove animations that have expired.
::std::vector< std::shared_ptr< Animation > > AnimationList
SlideSorter & mrSlideSorter
Animator(const Animator &)=delete
AnimationMode
In some circumstances we have to avoid animation and jump to the final animation state immediately.
Animator & operator=(const Animator &)=delete
::canvas::tools::ElapsedTime maElapsedTime