pub enum EnterTransition {
FadeIn,
SlideIn {
offset_x: Dp,
offset_y: Dp,
},
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§impl Debug for EnterTransition
impl Debug for EnterTransition
Auto Trait Implementations§
impl Forget for EnterTransition
impl Freeze for EnterTransition
impl Move for EnterTransition
impl RefUnwindSafe for EnterTransition
impl Send for EnterTransitionwhere
RawVecInner: Send,
impl Sync for EnterTransitionwhere
RawVecInner: Sync,
impl Unpin for EnterTransition
impl UnsafeUnpin for EnterTransition
impl UnwindSafe for EnterTransitionwhere
RawVecInner: UnwindSafe,
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