#[non_exhaustive]pub enum StackTransitionType {
Show 20 variants
None,
Crossfade,
SlideRight,
SlideLeft,
SlideUp,
SlideDown,
SlideLeftRight,
SlideUpDown,
OverUp,
OverDown,
OverLeft,
OverRight,
UnderUp,
UnderDown,
UnderLeft,
UnderRight,
OverUpDown,
OverDownUp,
OverLeftRight,
OverRightLeft,
}Expand description
These enumeration values describe the possible transitions
between pages in a Stack widget.
New values may be added to this enumeration over time.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
None
No transition
Crossfade
A cross-fade
SlideRight
Slide from left to right
SlideLeft
Slide from right to left
SlideUp
Slide from bottom up
SlideDown
Slide from top down
SlideLeftRight
Slide from left or right according to the children order
SlideUpDown
Slide from top down or bottom up according to the order
OverUp
Cover the old page by sliding up. Since 3.12
OverDown
Cover the old page by sliding down. Since: 3.12
OverLeft
Cover the old page by sliding to the left. Since: 3.12
OverRight
Cover the old page by sliding to the right. Since: 3.12
UnderUp
Uncover the new page by sliding up. Since 3.12
UnderDown
Uncover the new page by sliding down. Since: 3.12
UnderLeft
Uncover the new page by sliding to the left. Since: 3.12
UnderRight
Uncover the new page by sliding to the right. Since: 3.12
OverUpDown
Cover the old page sliding up or uncover the new page sliding down, according to order. Since: 3.12
OverDownUp
Cover the old page sliding down or uncover the new page sliding up, according to order. Since: 3.14
OverLeftRight
Cover the old page sliding left or uncover the new page sliding right, according to order. Since: 3.14
OverRightLeft
Cover the old page sliding right or uncover the new page sliding left, according to order. Since: 3.14
Trait Implementations§
Source§impl Clone for StackTransitionType
impl Clone for StackTransitionType
Source§fn clone(&self) -> StackTransitionType
fn clone(&self) -> StackTransitionType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for StackTransitionType
Source§impl Debug for StackTransitionType
impl Debug for StackTransitionType
impl Eq for StackTransitionType
Source§impl From<StackTransitionType> for Value
impl From<StackTransitionType> for Value
Source§fn from(v: StackTransitionType) -> Self
fn from(v: StackTransitionType) -> Self
Source§impl<'a> FromValue<'a> for StackTransitionType
impl<'a> FromValue<'a> for StackTransitionType
Source§type Checker = GenericValueTypeChecker<StackTransitionType>
type Checker = GenericValueTypeChecker<StackTransitionType>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for StackTransitionType
impl HasParamSpec for StackTransitionType
type ParamSpec = ParamSpecEnum
Source§type SetValue = StackTransitionType
type SetValue = StackTransitionType
type BuilderFn = fn(&str, StackTransitionType) -> ParamSpecEnumBuilder<'_, StackTransitionType>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for StackTransitionType
impl Hash for StackTransitionType
Source§impl Ord for StackTransitionType
impl Ord for StackTransitionType
Source§fn cmp(&self, other: &StackTransitionType) -> Ordering
fn cmp(&self, other: &StackTransitionType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for StackTransitionType
impl PartialEq for StackTransitionType
Source§impl PartialOrd for StackTransitionType
impl PartialOrd for StackTransitionType
Source§impl StaticType for StackTransitionType
impl StaticType for StackTransitionType
Source§fn static_type() -> Type
fn static_type() -> Type
Self.impl StructuralPartialEq for StackTransitionType
Source§impl ToValue for StackTransitionType
impl ToValue for StackTransitionType
Source§impl ValueType for StackTransitionType
impl ValueType for StackTransitionType
Source§type Type = StackTransitionType
type Type = StackTransitionType
Type from. Read moreAuto Trait Implementations§
impl Freeze for StackTransitionType
impl RefUnwindSafe for StackTransitionType
impl Send for StackTransitionType
impl Sync for StackTransitionType
impl Unpin for StackTransitionType
impl UnsafeUnpin for StackTransitionType
impl UnwindSafe for StackTransitionType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.