Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner is the main driver for animations package
func (*Runner) Active ¶ added in v1.2.0
Active reports whether any animation is running or waiting to start, so the driver keeps ticking frames for it.
func (*Runner) Stop ¶
Stop causes an animation to stop ticking (if it was still running) and removes it from the runner.
func (*Runner) TickAnimations ¶
func (r *Runner) TickAnimations()
TickAnimations progresses all running animations by one tick. This will be called from the driver to update objects immediately before next paint. Start may run on any goroutine, so runnerStarted is read under the lock.