pub struct BorderTween {
pub begin: Option<Border>,
pub end: Option<Border>,
}Expand description
An interpolation between two Borders.
This class specializes the interpolation of Tween<Option<Border>> to use
Border::lerp.
See Tween for a discussion on how to use interpolation objects.
Like EdgeInsetsTween, this one is a value rather than an arena object (see PORTING.md).
Fields§
§begin: Option<Border>The value this variable has at the beginning of the animation.
end: Option<Border>The value this variable has at the end of the animation.
Implementations§
Source§impl BorderTween
impl BorderTween
Trait Implementations§
Source§impl Animatable<Option<Border>> for BorderTween
impl Animatable<Option<Border>> for BorderTween
Source§fn transform(&self, _app: &App, t: f64) -> Option<Border>
fn transform(&self, _app: &App, t: f64) -> Option<Border>
Returns the value of the object at point
t. Read moreSource§fn evaluate(&self, app: &App, animation: AnyAnimation<f64>) -> Twhere
Self: Sized,
fn evaluate(&self, app: &App, animation: AnyAnimation<f64>) -> Twhere
Self: Sized,
The current value of this object for the given animation. Read more
Source§fn animate(
self,
app: &mut App,
parent: Retained<AnyAnimation<f64>>,
) -> Retained<AnyAnimation<T>>
fn animate( self, app: &mut App, parent: Retained<AnyAnimation<f64>>, ) -> Retained<AnyAnimation<T>>
Returns a new animation that is driven by the given animation but
that takes on values determined by this object. The new animation keeps
parent; whoever keeps the result keeps both.Source§fn chain<P>(self, parent: P) -> ChainedEvaluation<P, Self>
fn chain<P>(self, parent: P) -> ChainedEvaluation<P, Self>
Returns a new
Animatable whose value is determined by first
evaluating the given parent and then evaluating this object at the
result.Source§impl Clone for BorderTween
impl Clone for BorderTween
Source§impl Debug for BorderTween
impl Debug for BorderTween
Auto Trait Implementations§
impl Forget for BorderTween
impl Freeze for BorderTween
impl Move for BorderTween
impl RefUnwindSafe for BorderTween
impl Send for BorderTween
impl Sync for BorderTween
impl Unpin for BorderTween
impl UnsafeUnpin for BorderTween
impl UnwindSafe for BorderTween
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more