Skip to main content

Rotate3DTransition

Struct Rotate3DTransition 

Source
pub struct Rotate3DTransition { /* private fields */ }
Expand description

Transitions between two pages by rotating them around a shared axis in 3D. It is a PageSlide whose members it derefs to.

Implementations§

Source§

impl Rotate3DTransition

Source

pub fn new() -> Self

Creates a horizontal rotation with a zero duration.

Source

pub fn with_duration( duration: TimeSpan, orientation: SlideAxis, depth: Option<f64>, ) -> Self

Creates a rotation with the given duration and axis. depth defines the depth of the 3D effect; when None it is calculated automatically.

Source

pub fn depth(&self) -> Option<f64>

Defines the depth of the 3D effect. If None, the depth is calculated automatically.

Source

pub fn set_depth(&self, value: Option<f64>)

Methods from Deref<Target = PageSlide>§

Source

pub fn duration(&self) -> TimeSpan

The duration of the animation.

Source

pub fn set_duration(&self, value: TimeSpan)

Source

pub fn orientation(&self) -> SlideAxis

The direction of the animation.

Source

pub fn set_orientation(&self, value: SlideAxis)

Source

pub fn slide_in_easing(&self) -> Easing

The easing used for the page that slides in.

Source

pub fn set_slide_in_easing(&self, value: impl Into<Easing>)

Source

pub fn slide_out_easing(&self) -> Easing

The easing used for the page that slides out.

Source

pub fn set_slide_out_easing(&self, value: impl Into<Easing>)

Source

pub fn fill_mode(&self) -> FillMode

The fill mode.

Source

pub fn set_fill_mode(&self, value: FillMode)

Trait Implementations§

Source§

impl Default for Rotate3DTransition

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Deref for Rotate3DTransition

Source§

type Target = PageSlide

The resulting type after dereferencing.
Source§

fn deref(&self) -> &PageSlide

Dereferences the value.
Source§

impl IPageTransition for Rotate3DTransition

Source§

fn start( &self, from: Option<&Ref<Visual>>, to: Option<&Ref<Visual>>, forward: bool, cancellation_token: CancellationToken, ) -> DispatcherTask<()> ⓘ

Starts the animation. Read more
Source§

fn as_progress_page_transition(&self) -> Option<&dyn IProgressPageTransition>

The transition as a progress-driven transition, if it is one.
Source§

fn as_page_slide(&self) -> Option<&PageSlide>

The transition as a page slide, if it is one.
Source§

fn as_composite_page_transition(&self) -> Option<&CompositePageTransition>

The transition as a composite page transition, if it is one.
Source§

impl IProgressPageTransition for Rotate3DTransition

Source§

fn update( &self, progress: f64, from: Option<&Ref<Visual>>, to: Option<&Ref<Visual>>, forward: bool, page_length: f64, visible_items: &[PageTransitionItem], )

Updates the transition to reflect the specified progress. Read more
Source§

fn reset(&self, visual: &Ref<Visual>)

Resets any visual state applied to the given visual by this transition.
Source§

impl MarkupTyped for Rotate3DTransition

Source§

const MARKUP: &'static MarkupType

The markup metadata of the type.
Source§

impl PartialEq for Rotate3DTransition

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AnyValue for T
where T: PartialEq + 'static,

Source§

fn any_value_as_any(&self) -> &(dyn Any + 'static)

Source§

fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool

Source§

fn any_value_type_name(&self) -> &'static str

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ClassDefaults for T
where T: ?Sized,

Source§

fn static_constructor()

The static constructor of a type: work done once per thread, after the properties of the type are registered and before its first instance exists (class handlers, affects_render, metadata overrides). Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.