pub enum EnterTransition {
FadeIn,
SlideIn {
offset_x: f32,
offset_y: f32,
},
ScaleIn {
initial: f32,
},
ExpandVertically {
clip: bool,
expand_from: ExpandFrom,
},
ExpandHorizontally {
clip: bool,
expand_from: ExpandFrom,
},
ExpandIn {
clip: bool,
},
Composite(Vec<EnterTransition>),
}Expand description
Describes how content enters the screen.
Variants§
FadeIn
Fade from alpha 0 to 1.
SlideIn
Slide from the given offset (dx, dy in dp) to position (0,0).
ScaleIn
Scale from initial to 1.0 combined with fade from 0 to 1.
ExpandVertically
Animate layout height 0 -> full and clip (Compose expandVertically).
Participates in layout: siblings reflow as the height animates.
Fields
§
expand_from: ExpandFrom0.0 = top, 0.5 = center, 1.0 = bottom.
ExpandHorizontally
Animate layout width 0 -> full and clip (Compose expandHorizontally).
ExpandIn
Expand both axes (Compose expandIn).
Composite(Vec<EnterTransition>)
Multiple enter transitions applied together (Compose +).
Implementations§
Trait Implementations§
Source§impl Clone for EnterTransition
impl Clone for EnterTransition
Source§fn clone(&self) -> EnterTransition
fn clone(&self) -> EnterTransition
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 moreSource§impl Debug for EnterTransition
impl Debug for EnterTransition
Auto Trait Implementations§
impl Freeze for EnterTransition
impl RefUnwindSafe for EnterTransition
impl Send for EnterTransition
impl Sync for EnterTransition
impl Unpin for EnterTransition
impl UnsafeUnpin for EnterTransition
impl UnwindSafe for EnterTransition
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