# StackPanelProps

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

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

```rust
trait StackPanelProps: ElementBuilder
```

The properties and routed events of `StackPanel`.

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

## Members

- [`spacing`](#function-spacing)
- [`orientation`](#function-orientation)
- [`are_horizontal_snap_points_regular`](#function-are_horizontal_snap_points_regular)
- [`are_vertical_snap_points_regular`](#function-are_vertical_snap_points_regular)
- [`on_horizontal_snap_points_changed`](#function-on_horizontal_snap_points_changed)
- [`on_vertical_snap_points_changed`](#function-on_vertical_snap_points_changed)

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

### spacing

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

Sets `StackPanel::spacing_property`.

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

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

### orientation

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

Sets `StackPanel::orientation_property`.

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

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

### are_horizontal_snap_points_regular

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

Sets `StackPanel::are_horizontal_snap_points_regular_property`.

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

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

### are_vertical_snap_points_regular

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

Sets `StackPanel::are_vertical_snap_points_regular_property`.

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

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

### on_horizontal_snap_points_changed

```rust
fn on_horizontal_snap_points_changed(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
```

Handles `StackPanel::horizontal_snap_points_changed_event`.

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

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

### on_vertical_snap_points_changed

```rust
fn on_vertical_snap_points_changed(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
```

Handles `StackPanel::vertical_snap_points_changed_event`.

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

## Trait implementations

- [`StackPanelProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-stackpanelprops/)

## Availability

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