PageSlide
struct · ferroui-base · v0.5.0
struct PageSlide
Transitions between two pages by sliding them horizontally or vertically.
Members
newwith_durationdurationset_durationorientationset_orientationslide_in_easingset_slide_in_easingslide_out_easingset_slide_out_easingfill_modeset_fill_modeget_visual_parent
new
fn new() -> Self
Creates a horizontal slide with a zero duration.
with_duration
fn with_duration(duration: SignedDuration, orientation: SlideAxis) -> Self
Creates a slide with the given duration and axis.
duration
fn duration(self: &Self) -> SignedDuration
The duration of the animation.
set_duration
fn set_duration(self: &Self, value: SignedDuration)
orientation
fn orientation(self: &Self) -> SlideAxis
The direction of the animation.
set_orientation
fn set_orientation(self: &Self, value: SlideAxis)
slide_in_easing
fn slide_in_easing(self: &Self) -> Easing
The easing used for the page that slides in.
set_slide_in_easing
fn set_slide_in_easing(self: &Self, value: impl Into<Easing>)
slide_out_easing
fn slide_out_easing(self: &Self) -> Easing
The easing used for the page that slides out.
set_slide_out_easing
fn set_slide_out_easing(self: &Self, value: impl Into<Easing>)
fill_mode
fn fill_mode(self: &Self) -> FillMode
The fill mode.
set_fill_mode
fn set_fill_mode(self: &Self, value: FillMode)
get_visual_parent
fn get_visual_parent(from: Option<&Ref<Visual>>, to: Option<&Ref<Visual>>) -> Ref<Visual>
The common visual parent of the two controls. Panics when the controls have different parents or no parent.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeAnyValueClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherDefaultIPageTransitionIProgressPageTransitionPartialEqMarkupTypedValueTypeRegistration
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.