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
impl Rotate3DTransition
Sourcepub fn with_duration(
duration: TimeSpan,
orientation: SlideAxis,
depth: Option<f64>,
) -> Self
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.
Sourcepub fn depth(&self) -> Option<f64>
pub fn depth(&self) -> Option<f64>
Defines the depth of the 3D effect. If None, the depth is
calculated automatically.
pub fn set_depth(&self, value: Option<f64>)
Methods from Deref<Target = PageSlide>§
pub fn set_duration(&self, value: TimeSpan)
Sourcepub fn orientation(&self) -> SlideAxis
pub fn orientation(&self) -> SlideAxis
The direction of the animation.
pub fn set_orientation(&self, value: SlideAxis)
Sourcepub fn slide_in_easing(&self) -> Easing
pub fn slide_in_easing(&self) -> Easing
The easing used for the page that slides in.
pub fn set_slide_in_easing(&self, value: impl Into<Easing>)
Sourcepub fn slide_out_easing(&self) -> Easing
pub fn slide_out_easing(&self) -> Easing
The easing used for the page that slides out.
pub fn set_slide_out_easing(&self, value: impl Into<Easing>)
pub fn set_fill_mode(&self, value: FillMode)
Trait Implementations§
Source§impl Default for Rotate3DTransition
impl Default for Rotate3DTransition
Source§impl Deref for Rotate3DTransition
impl Deref for Rotate3DTransition
Source§impl IPageTransition for Rotate3DTransition
impl IPageTransition for Rotate3DTransition
Source§fn start(
&self,
from: Option<&Ref<Visual>>,
to: Option<&Ref<Visual>>,
forward: bool,
cancellation_token: CancellationToken,
) -> DispatcherTask<()> ⓘ
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>
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>
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>
fn as_composite_page_transition(&self) -> Option<&CompositePageTransition>
The transition as a composite page transition, if it is one.
Source§impl IProgressPageTransition for Rotate3DTransition
impl IProgressPageTransition for Rotate3DTransition
Source§impl MarkupTyped for Rotate3DTransition
impl MarkupTyped for Rotate3DTransition
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Auto Trait Implementations§
impl !Freeze for Rotate3DTransition
impl !RefUnwindSafe for Rotate3DTransition
impl !Send for Rotate3DTransition
impl !Sync for Rotate3DTransition
impl !UnwindSafe for Rotate3DTransition
impl Unpin for Rotate3DTransition
impl UnsafeUnpin for Rotate3DTransition
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
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