FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PageSlide

    struct · ferroui-base · v0.5.0

    struct PageSlide
    

    Transitions between two pages by sliding them horizontally or vertically.

    View source

    Members

    new

    fn new() -> Self
    

    Creates a horizontal slide with a zero duration.

    Source

    with_duration

    fn with_duration(duration: SignedDuration, orientation: SlideAxis) -> Self
    

    Creates a slide with the given duration and axis.

    Source

    duration

    fn duration(self: &Self) -> SignedDuration
    

    The duration of the animation.

    Source

    set_duration

    fn set_duration(self: &Self, value: SignedDuration)
    

    Source

    orientation

    fn orientation(self: &Self) -> SlideAxis
    

    The direction of the animation.

    Source

    set_orientation

    fn set_orientation(self: &Self, value: SlideAxis)
    

    Source

    slide_in_easing

    fn slide_in_easing(self: &Self) -> Easing
    

    The easing used for the page that slides in.

    Source

    set_slide_in_easing

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

    Source

    slide_out_easing

    fn slide_out_easing(self: &Self) -> Easing
    

    The easing used for the page that slides out.

    Source

    set_slide_out_easing

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

    Source

    fill_mode

    fn fill_mode(self: &Self) -> FillMode
    

    The fill mode.

    Source

    set_fill_mode

    fn set_fill_mode(self: &Self, value: FillMode)
    

    Source

    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.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.