pub enum Kind {
Fade,
Slide(Dir),
Wipe(Dir),
ZoomIn,
ZoomOut,
Custom(fn(f64) -> Blend),
}Expand description
Which built-in, or a function of progress. Not part of the prelude;
scenes build one through crate re-exports in oxframe::Transition.
Variants§
Fade
Crossfade.
Slide(Dir)
Both layers travel toward dir.
Wipe(Dir)
The incoming layer is revealed from dir.
ZoomIn
The incoming layer grows onto the outgoing one.
ZoomOut
The outgoing layer grows and fades off the incoming one.
Custom(fn(f64) -> Blend)
progress in 0..1 (already eased) decides the poses.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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