Struct components::engine::d2::scene::SlideTransition
source · [−]pub struct SlideTransition {
pub inner: TweenTransition,
/* private fields */
}
Expand description
Slides the old scene off the stage, and the new scene into its place.
Fields
inner: TweenTransition
Implementations
sourceimpl SlideTransition
impl SlideTransition
pub const UP: u32 = 0u32
pub const DOWN: u32 = 1u32
pub const LEFT: u32 = 2u32
pub const RIGHT: u32 = 3u32
pub fn new(
duration: f32,
ease: Option<Rc<dyn Fn(f32) + 'static>>
) -> SlideTransition
sourcepub fn up_signal(&mut self) -> &SlideTransition
pub fn up_signal(&mut self) -> &SlideTransition
Slides the transition upwards. @returns This instance, for chaining.
sourcepub fn down(&mut self) -> &SlideTransition
pub fn down(&mut self) -> &SlideTransition
Slides the transition downwards. @returns This instance, for chaining.
sourcepub fn left(&mut self) -> &SlideTransition
pub fn left(&mut self) -> &SlideTransition
Slides the transition to the left. @returns This instance, for chaining.
sourcepub fn right(&mut self) -> &SlideTransition
pub fn right(&mut self) -> &SlideTransition
Slides the transition to the right. @returns This instance, for chaining.
pub fn init(&mut self, from: Entity, to: Entity)
pub fn update(&mut self, dt: f32) -> bool
pub fn complete(&self)
Trait Implementations
sourceimpl AsRef<TweenTransition> for SlideTransition
impl AsRef<TweenTransition> for SlideTransition
sourcefn as_ref(&self) -> &TweenTransition
fn as_ref(&self) -> &TweenTransition
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations
impl !RefUnwindSafe for SlideTransition
impl !Send for SlideTransition
impl !Sync for SlideTransition
impl Unpin for SlideTransition
impl !UnwindSafe for SlideTransition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.