pub struct ThemeDataTween {
pub begin: Option<Rc<ThemeData>>,
pub end: Option<Rc<ThemeData>>,
}Expand description
An interpolation between two ThemeDatas.
This class specializes the interpolation of Tween<ThemeData> to call the
ThemeData::lerp method.
See Tween for a discussion on how to use interpolation objects.
Fields§
§begin: Option<Rc<ThemeData>>The value this variable has at the beginning of the animation.
end: Option<Rc<ThemeData>>The value this variable has at the end of the animation.
Implementations§
Trait Implementations§
Source§impl Animatable<Rc<ThemeData>> for ThemeDataTween
impl Animatable<Rc<ThemeData>> for ThemeDataTween
Source§fn transform(&self, _app: &App, t: f64) -> Rc<ThemeData>
fn transform(&self, _app: &App, t: f64) -> Rc<ThemeData>
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 ThemeDataTween
impl Clone for ThemeDataTween
Source§impl Debug for ThemeDataTween
impl Debug for ThemeDataTween
Auto Trait Implementations§
impl !RefUnwindSafe for ThemeDataTween
impl !Send for ThemeDataTween
impl !Sync for ThemeDataTween
impl !UnwindSafe for ThemeDataTween
impl Forget for ThemeDataTween
impl Freeze for ThemeDataTween
impl Move for ThemeDataTween
impl Unpin for ThemeDataTween
impl UnsafeUnpin for ThemeDataTweenwhere
*const RcInner<ThemeData> is !null: UnsafeUnpin,
PhantomData<RcInner<ThemeData>>: 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