Enum freya::prelude::Transition
pub enum Transition {
Size(f64, f64),
Color(Color, Color),
}
Expand description
Configure a Transition
animation.
Variants§
Size(f64, f64)
Transition from one size to another.
Color(Color, Color)
Transition from one color to another.
Implementations§
§impl Transition
impl Transition
pub fn new_size(start: f64, end: f64) -> Transition
pub fn new_size(start: f64, end: f64) -> Transition
Create a Size transition.
pub fn new_color(start: &str, end: &str) -> Transition
pub fn new_color(start: &str, end: &str) -> Transition
Create a Color transition.
Trait Implementations§
§impl Clone for Transition
impl Clone for Transition
§fn clone(&self) -> Transition
fn clone(&self) -> Transition
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for Transition
impl Debug for Transition
§impl From<&Transition> for TransitionState
impl From<&Transition> for TransitionState
§fn from(value: &Transition) -> TransitionState
fn from(value: &Transition) -> TransitionState
Converts to this type from the input type.
§impl PartialEq<Transition> for Transition
impl PartialEq<Transition> for Transition
§fn eq(&self, other: &Transition) -> bool
fn eq(&self, other: &Transition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.