pub type CreateRectTween = Rc<dyn Fn(&mut App, Option<Rect>, Option<Rect>) -> Rc<dyn RectTweenObject>>;Expand description
Signature for a function that takes two Rect instances and returns a RectTween that
transitions between them.
This is typically used with a HeroController to provide an animation for Hero
positions that looks nicer than a linear movement. For example, see MaterialRectArcTween.
Aliased Typeยง
pub struct CreateRectTween { /* private fields */ }