Enum gtk4::StackTransitionType
source · #[non_exhaustive]
pub enum StackTransitionType {
Show 23 variants
None,
Crossfade,
SlideRight,
SlideLeft,
SlideUp,
SlideDown,
SlideLeftRight,
SlideUpDown,
OverUp,
OverDown,
OverLeft,
OverRight,
UnderUp,
UnderDown,
UnderLeft,
UnderRight,
OverUpDown,
OverDownUp,
OverLeftRight,
OverRightLeft,
RotateLeft,
RotateRight,
RotateLeftRight,
}
Expand description
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
OverDown
Cover the old page by sliding down
OverLeft
Cover the old page by sliding to the left
OverRight
Cover the old page by sliding to the right
UnderUp
Uncover the new page by sliding up
UnderDown
Uncover the new page by sliding down
UnderLeft
Uncover the new page by sliding to the left
UnderRight
Uncover the new page by sliding to the right
OverUpDown
Cover the old page sliding up or uncover the new page sliding down, according to order
OverDownUp
Cover the old page sliding down or uncover the new page sliding up, according to order
OverLeftRight
Cover the old page sliding left or uncover the new page sliding right, according to order
OverRightLeft
Cover the old page sliding right or uncover the new page sliding left, according to order
RotateLeft
Pretend the pages are sides of a cube and rotate that cube to the left
RotateRight
Pretend the pages are sides of a cube and rotate that cube to the right
RotateLeftRight
Pretend the pages are sides of a cube and rotate that cube to the left or right according to the children order
Trait Implementations§
source§impl Clone for StackTransitionType
impl Clone for StackTransitionType
source§fn clone(&self) -> StackTransitionType
fn clone(&self) -> StackTransitionType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StackTransitionType
impl Debug for StackTransitionType
source§impl Display for StackTransitionType
impl Display 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
§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
§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 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<StackTransitionType> for StackTransitionType
impl PartialEq<StackTransitionType> for StackTransitionType
source§fn eq(&self, other: &StackTransitionType) -> bool
fn eq(&self, other: &StackTransitionType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<StackTransitionType> for StackTransitionType
impl PartialOrd<StackTransitionType> for StackTransitionType
source§fn partial_cmp(&self, other: &StackTransitionType) -> Option<Ordering>
fn partial_cmp(&self, other: &StackTransitionType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for StackTransitionType
impl StaticType for StackTransitionType
source§fn static_type() -> Type
fn static_type() -> Type
Self
.source§impl ToValue for StackTransitionType
impl ToValue for StackTransitionType
source§impl ValueType for StackTransitionType
impl ValueType for StackTransitionType
§type Type = StackTransitionType
type Type = StackTransitionType
Type
from. Read moreimpl Copy for StackTransitionType
impl Eq for StackTransitionType
impl StructuralEq for StackTransitionType
impl StructuralPartialEq for StackTransitionType
Auto Trait Implementations§
impl RefUnwindSafe for StackTransitionType
impl Send for StackTransitionType
impl Sync for StackTransitionType
impl Unpin for StackTransitionType
impl UnwindSafe for StackTransitionType
Blanket Implementations§
source§impl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
impl<T> IntoClosureReturnValue for Twhere T: Into<Value>,
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 Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere T: Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.