pub enum ExitTransition {
FadeOut,
SlideOut {
offset_x: f32,
offset_y: f32,
},
ScaleOut {
target: f32,
},
ShrinkVertically {
clip: bool,
shrink_towards: ExpandFrom,
},
ShrinkHorizontally {
clip: bool,
shrink_towards: ExpandFrom,
},
ShrinkOut {
clip: bool,
},
Composite(Vec<ExitTransition>),
}Expand description
Describes how content exits the screen.
Variants§
FadeOut
Fade from alpha 1 to 0.
SlideOut
Slide from position (0,0) to the given offset (dx, dy in dp).
ScaleOut
Scale from 1.0 to target combined with fade from 1 to 0.
ShrinkVertically
Animate layout height full -> 0 and clip (Compose shrinkVertically).
ShrinkHorizontally
Animate layout width full -> 0 and clip (Compose shrinkHorizontally).
ShrinkOut
Shrink both axes (Compose shrinkOut).
Composite(Vec<ExitTransition>)
Multiple exit transitions applied together (Compose +).
Implementations§
Source§impl ExitTransition
impl ExitTransition
pub fn fade_out() -> Self
pub fn shrink_vertically() -> Self
pub fn shrink_horizontally() -> Self
pub fn shrink_out() -> Self
pub fn slide_out(offset_x: f32, offset_y: f32) -> Self
pub fn scale_out(target: f32) -> Self
Trait Implementations§
Source§impl Clone for ExitTransition
impl Clone for ExitTransition
Source§fn clone(&self) -> ExitTransition
fn clone(&self) -> ExitTransition
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 ExitTransition
impl Debug for ExitTransition
Auto Trait Implementations§
impl Freeze for ExitTransition
impl RefUnwindSafe for ExitTransition
impl Send for ExitTransition
impl Sync for ExitTransition
impl Unpin for ExitTransition
impl UnsafeUnpin for ExitTransition
impl UnwindSafe for ExitTransition
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