pub struct ColorTween {
pub begin: Option<Color>,
pub end: Option<Color>,
}Expand description
An interpolation between two colors.
Fields§
§begin: Option<Color>The value this variable has at the beginning of the animation.
end: Option<Color>The value this variable has at the end of the animation.
Implementations§
Source§impl ColorTween
impl ColorTween
Sourcepub fn new(
app: &mut App,
begin: Option<Color>,
end: Option<Color>,
) -> Retained<Handle<ColorTween>>
pub fn new( app: &mut App, begin: Option<Color>, end: Option<Color>, ) -> Retained<Handle<ColorTween>>
Creates a Color tween.
The begin and end properties may be null; the null value is treated as transparent.
Sourcepub fn begin(self: Handle<ColorTween>, app: &App) -> Option<Color>
pub fn begin(self: Handle<ColorTween>, app: &App) -> Option<Color>
The value this variable has at the beginning of the animation.
Sourcepub fn set_begin(self: Handle<ColorTween>, app: &mut App, begin: Option<Color>)
pub fn set_begin(self: Handle<ColorTween>, app: &mut App, begin: Option<Color>)
Dart’s begin setter.
Auto Trait Implementations§
impl Forget for ColorTween
impl Freeze for ColorTween
impl Move for ColorTween
impl RefUnwindSafe for ColorTween
impl Send for ColorTween
impl Sync for ColorTween
impl Unpin for ColorTween
impl UnsafeUnpin for ColorTween
impl UnwindSafe for ColorTween
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