pub struct EdgeInsetsGeometryTween {
pub begin: Option<EdgeInsetsGeometry>,
pub end: Option<EdgeInsetsGeometry>,
}Expand description
An interpolation between two EdgeInsetsGeometrys.
This class specializes the interpolation of Tween<EdgeInsetsGeometry> to use
EdgeInsetsGeometry::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).
See also:
EdgeInsetsTween, which interpolates between twoEdgeInsetsobjects.
Fields§
§begin: Option<EdgeInsetsGeometry>The value this variable has at the beginning of the animation.
end: Option<EdgeInsetsGeometry>The value this variable has at the end of the animation.
Implementations§
Source§impl EdgeInsetsGeometryTween
impl EdgeInsetsGeometryTween
Sourcepub fn new(
begin: Option<EdgeInsetsGeometry>,
end: Option<EdgeInsetsGeometry>,
) -> EdgeInsetsGeometryTween
pub fn new( begin: Option<EdgeInsetsGeometry>, end: Option<EdgeInsetsGeometry>, ) -> EdgeInsetsGeometryTween
Creates an EdgeInsetsGeometry tween.
The begin and end properties may be None; the None
value is treated as an EdgeInsetsGeometry with no inset.
Sourcepub fn lerp(&self, t: f64) -> EdgeInsetsGeometry
pub fn lerp(&self, t: f64) -> EdgeInsetsGeometry
Returns the value this variable has at the given animation clock value.
Trait Implementations§
Source§impl Animatable<EdgeInsetsGeometry> for EdgeInsetsGeometryTween
impl Animatable<EdgeInsetsGeometry> for EdgeInsetsGeometryTween
Source§fn transform(&self, _app: &App, t: f64) -> EdgeInsetsGeometry
fn transform(&self, _app: &App, t: f64) -> EdgeInsetsGeometry
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 EdgeInsetsGeometryTween
impl Clone for EdgeInsetsGeometryTween
Source§impl Debug for EdgeInsetsGeometryTween
impl Debug for EdgeInsetsGeometryTween
Source§impl Display for EdgeInsetsGeometryTween
Dart’s Tween.toString, which an implicit animation’s state dump prints.
impl Display for EdgeInsetsGeometryTween
Dart’s Tween.toString, which an implicit animation’s state dump prints.
Source§impl TweenSlot for EdgeInsetsGeometryTween
impl TweenSlot for EdgeInsetsGeometryTween
Source§type Value = EdgeInsetsGeometry
type Value = EdgeInsetsGeometry
The
T of Dart’s Tween<T>.Source§fn begin(&self, _app: &App) -> Option<EdgeInsetsGeometry>
fn begin(&self, _app: &App) -> Option<EdgeInsetsGeometry>
The value this variable has at the beginning of the animation.
Source§fn set_begin(&mut self, _app: &mut App, begin: Option<EdgeInsetsGeometry>)
fn set_begin(&mut self, _app: &mut App, begin: Option<EdgeInsetsGeometry>)
Dart’s
begin setter.Auto Trait Implementations§
impl Forget for EdgeInsetsGeometryTween
impl Freeze for EdgeInsetsGeometryTween
impl Move for EdgeInsetsGeometryTween
impl RefUnwindSafe for EdgeInsetsGeometryTween
impl Send for EdgeInsetsGeometryTween
impl Sync for EdgeInsetsGeometryTween
impl Unpin for EdgeInsetsGeometryTween
impl UnsafeUnpin for EdgeInsetsGeometryTween
impl UnwindSafe for EdgeInsetsGeometryTween
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