# StackPanelImpl

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/trait-stackpanelimpl/

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

```rust
trait StackPanelImpl: PanelImpl + $crate::Upcast<StackPanel>
```

The overridable members introduced by the class.

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

## Members

- [`arrange_child`](#function-arrange_child)
- [`get_control_in_direction`](#function-get_control_in_direction)

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

### arrange_child

```rust
fn arrange_child(this: &Self, child: &Ref<Control>, rect: Rect, panel_size: Size, orientation: Orientation)
```

Arranges a single child in the slot computed by the panel.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/stack_panel.rs#L25)

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

### get_control_in_direction

```rust
fn get_control_in_direction(this: &Self, direction: NavigationDirection, from: Option<&Ref<Control>>) -> Option<Ref<InputElement>>
```

Gets the next control in the specified direction.

`from` is the control from which movement begins.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/stack_panel.rs#L25)

## Trait implementations

- [`StackPanelImpl`](/docs/0.5.0/api/ferroui-controls/trait-stackpanelimpl/)

## Availability

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