# ScrollBarProps

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/generated/builders/trait-scrollbarprops/

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

```rust
trait ScrollBarProps: ElementBuilder
```

The properties and routed events of `ScrollBar`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L7404)

## Members

- [`viewport_size`](#function-viewport_size)
- [`visibility`](#function-visibility)
- [`orientation`](#function-orientation)
- [`allow_auto_hide`](#function-allow_auto_hide)
- [`hide_delay`](#function-hide_delay)
- [`show_delay`](#function-show_delay)

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

### viewport_size

```rust
fn viewport_size<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
```

Sets `ScrollBar::viewport_size_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L7406)

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

### visibility

```rust
fn visibility<M>(self: Self, value: impl IntoProp<ferroui_controls::primitives::ScrollBarVisibility, M>) -> Self
```

Sets `ScrollBar::visibility_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L7411)

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

### orientation

```rust
fn orientation<M>(self: Self, value: impl IntoProp<ferroui_base::layout::Orientation, M>) -> Self
```

Sets `ScrollBar::orientation_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L7416)

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

### allow_auto_hide

```rust
fn allow_auto_hide<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
```

Sets `ScrollBar::allow_auto_hide_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L7421)

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

### hide_delay

```rust
fn hide_delay<M>(self: Self, value: impl IntoProp<std::time::Duration, M>) -> Self
```

Sets `ScrollBar::hide_delay_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L7426)

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

### show_delay

```rust
fn show_delay<M>(self: Self, value: impl IntoProp<std::time::Duration, M>) -> Self
```

Sets `ScrollBar::show_delay_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L7431)

## Trait implementations

- [`ScrollBarProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-scrollbarprops/)

## Availability

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