pub struct AlignmentGeometryTween {
pub begin: Option<AlignmentGeometry>,
pub end: Option<AlignmentGeometry>,
}Expand description
An interpolation between two AlignmentGeometry.
This class specializes the interpolation of Tween<AlignmentGeometry> to be
appropriate for alignments.
See Tween for a discussion on how to use interpolation objects.
Like FractionalOffsetTween, this one is a value rather than an arena object (see
PORTING.md).
See also:
AlignmentTween, which interpolates between twoAlignmentobjects.
Fields§
§begin: Option<AlignmentGeometry>The value this variable has at the beginning of the animation.
end: Option<AlignmentGeometry>The value this variable has at the end of the animation.
Implementations§
Source§impl AlignmentGeometryTween
impl AlignmentGeometryTween
Sourcepub fn new(
begin: Option<AlignmentGeometry>,
end: Option<AlignmentGeometry>,
) -> AlignmentGeometryTween
pub fn new( begin: Option<AlignmentGeometry>, end: Option<AlignmentGeometry>, ) -> AlignmentGeometryTween
Sourcepub fn lerp(&self, t: f64) -> Option<AlignmentGeometry>
pub fn lerp(&self, t: f64) -> Option<AlignmentGeometry>
Returns the value this variable has at the given animation clock value.
Trait Implementations§
Source§impl Animatable<Option<AlignmentGeometry>> for AlignmentGeometryTween
impl Animatable<Option<AlignmentGeometry>> for AlignmentGeometryTween
Source§fn transform(&self, _app: &App, t: f64) -> Option<AlignmentGeometry>
fn transform(&self, _app: &App, t: f64) -> Option<AlignmentGeometry>
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: AnyAnimation<f64>) -> AnyAnimation<T>
fn animate(self, app: &mut App, parent: AnyAnimation<f64>) -> AnyAnimation<T>
Returns a new
AnyAnimation that is driven by the given animation but
that takes on values determined by this object.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 AlignmentGeometryTween
impl Clone for AlignmentGeometryTween
Source§fn clone(&self) -> AlignmentGeometryTween
fn clone(&self) -> AlignmentGeometryTween
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AlignmentGeometryTween
impl RefUnwindSafe for AlignmentGeometryTween
impl Send for AlignmentGeometryTween
impl Sync for AlignmentGeometryTween
impl Unpin for AlignmentGeometryTween
impl UnsafeUnpin for AlignmentGeometryTween
impl UnwindSafe for AlignmentGeometryTween
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