pub struct ShapeBorderTween {
pub begin: Option<ShapeBorderRef>,
pub end: Option<ShapeBorderRef>,
}Expand description
An interpolation between two [ShapeBorder]s.
This class specializes the interpolation of Tween to use ShapeBorder::lerp.
A value rather than an arena object, as waft-widgets’ DecorationTween: a driven
animation holds a clone.
Fields§
§begin: Option<ShapeBorderRef>The value this variable has at the beginning of the animation.
end: Option<ShapeBorderRef>The value this variable has at the end of the animation.
Implementations§
Source§impl ShapeBorderTween
impl ShapeBorderTween
Sourcepub fn new(
begin: Option<ShapeBorderRef>,
end: Option<ShapeBorderRef>,
) -> ShapeBorderTween
pub fn new( begin: Option<ShapeBorderRef>, end: Option<ShapeBorderRef>, ) -> ShapeBorderTween
Sourcepub fn lerp(&self, t: f64) -> Option<ShapeBorderRef>
pub fn lerp(&self, t: f64) -> Option<ShapeBorderRef>
Returns the value this tween has at the given animation clock value.
Trait Implementations§
Source§impl Animatable<Option<ShapeBorderRef>> for ShapeBorderTween
Dart’s Tween.transform, which hands back the nullable endpoints themselves at 0 and 1.
impl Animatable<Option<ShapeBorderRef>> for ShapeBorderTween
Dart’s Tween.transform, which hands back the nullable endpoints themselves at 0 and 1.
Source§fn transform(&self, _app: &App, t: f64) -> Option<ShapeBorderRef>
fn transform(&self, _app: &App, t: f64) -> Option<ShapeBorderRef>
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 ShapeBorderTween
impl Clone for ShapeBorderTween
Source§impl Debug for ShapeBorderTween
impl Debug for ShapeBorderTween
Source§impl TweenSlot for ShapeBorderTween
Dart’s Tween<ShapeBorder?>: an unset endpoint and a null one are the same.
impl TweenSlot for ShapeBorderTween
Dart’s Tween<ShapeBorder?>: an unset endpoint and a null one are the same.
Source§type Value = Option<ShapeBorderRef>
type Value = Option<ShapeBorderRef>
The
T of Dart’s Tween<T>.Source§fn begin(&self, _app: &App) -> Option<Option<ShapeBorderRef>>
fn begin(&self, _app: &App) -> Option<Option<ShapeBorderRef>>
The value this variable has at the beginning of the animation.
Source§fn set_begin(&mut self, _app: &mut App, begin: Option<Option<ShapeBorderRef>>)
fn set_begin(&mut self, _app: &mut App, begin: Option<Option<ShapeBorderRef>>)
Dart’s
begin setter.Auto Trait Implementations§
impl !RefUnwindSafe for ShapeBorderTween
impl !Send for ShapeBorderTween
impl !Sync for ShapeBorderTween
impl !UnwindSafe for ShapeBorderTween
impl Forget for ShapeBorderTween
impl Freeze for ShapeBorderTweenwhere
*const RcInner<dyn ShapeBorder> is !null: Freeze,
PhantomData<RcInner<dyn ShapeBorder>>: Freeze,
impl Move for ShapeBorderTween
impl Unpin for ShapeBorderTween
impl UnsafeUnpin for ShapeBorderTweenwhere
*const RcInner<dyn ShapeBorder> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn ShapeBorder>>: UnsafeUnpin,
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