# PageSlide

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/animation/struct-pageslide/

**struct** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
struct PageSlide
```

Transitions between two pages by sliding them horizontally or
vertically.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/page_slide.rs#L25)

## Members

- [`new`](#function-new)
- [`with_duration`](#function-with_duration)
- [`duration`](#function-duration)
- [`set_duration`](#function-set_duration)
- [`orientation`](#function-orientation)
- [`set_orientation`](#function-set_orientation)
- [`slide_in_easing`](#function-slide_in_easing)
- [`set_slide_in_easing`](#function-set_slide_in_easing)
- [`slide_out_easing`](#function-slide_out_easing)
- [`set_slide_out_easing`](#function-set_slide_out_easing)
- [`fill_mode`](#function-fill_mode)
- [`set_fill_mode`](#function-set_fill_mode)
- [`get_visual_parent`](#function-get_visual_parent)

<a id="function-new"></a>

### new

```rust
fn new() -> Self
```

Creates a horizontal slide with a zero duration.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/page_slide.rs#L41)

<a id="function-with_duration"></a>

### with_duration

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

Creates a slide with the given duration and axis.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/page_slide.rs#L46)

<a id="function-duration"></a>

### duration

```rust
fn duration(self: &Self) -> SignedDuration
```

The duration of the animation.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/page_slide.rs#L57)

<a id="function-set_duration"></a>

### set_duration

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/page_slide.rs#L61)

<a id="function-orientation"></a>

### orientation

```rust
fn orientation(self: &Self) -> SlideAxis
```

The direction of the animation.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/page_slide.rs#L66)

<a id="function-set_orientation"></a>

### set_orientation

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/page_slide.rs#L70)

<a id="function-slide_in_easing"></a>

### slide_in_easing

```rust
fn slide_in_easing(self: &Self) -> Easing
```

The easing used for the page that slides in.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/page_slide.rs#L75)

<a id="function-set_slide_in_easing"></a>

### set_slide_in_easing

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/page_slide.rs#L79)

<a id="function-slide_out_easing"></a>

### slide_out_easing

```rust
fn slide_out_easing(self: &Self) -> Easing
```

The easing used for the page that slides out.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/page_slide.rs#L84)

<a id="function-set_slide_out_easing"></a>

### set_slide_out_easing

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/page_slide.rs#L88)

<a id="function-fill_mode"></a>

### fill_mode

```rust
fn fill_mode(self: &Self) -> FillMode
```

The fill mode.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/page_slide.rs#L93)

<a id="function-set_fill_mode"></a>

### set_fill_mode

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/page_slide.rs#L97)

<a id="function-get_visual_parent"></a>

### get_visual_parent

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/page_slide.rs#L103)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`
- `Default`
- [`IPageTransition`](/docs/0.5.0/api/ferroui-base/animation/trait-ipagetransition/)
- [`IProgressPageTransition`](/docs/0.5.0/api/ferroui-base/animation/trait-iprogresspagetransition/)
- `PartialEq`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- [`ValueTypeRegistration`](/docs/0.5.0/api/ferroui-base/data/core/trait-valuetyperegistration/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
