# InfoBarPanel

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-themes-winui/primitives/struct-infobarpanel/

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

```rust
struct InfoBarPanel
```

Lays out its children on one line when they fit in its width, and below each other otherwise
(`InfoBarPanel` of WinUI). One line: the children side by side, each moved by its
`HorizontalOrientationMargin` (the left margin of the first and the right margin of the last
left out), the last one given the rest of the width, the panel padded by
`HorizontalOrientationPadding`. Below each other: each child moved by its
`VerticalOrientationMargin` (the top margin of the first and the bottom margin of the last
left out), the panel padded by `VerticalOrientationPadding`. A child without a width or a
height (a collapsed one) is left out of both. One child, children wider than the panel, or a
child that would be taller on one line than the minimum height of the parent of the panel
(less the vertical margins of the panel) give the layout below each other.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.WinUI/Primitives/info_bar_panel.rs#L37)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`horizontal_orientation_padding_property`](#function-horizontal_orientation_padding_property)
- [`vertical_orientation_padding_property`](#function-vertical_orientation_padding_property)
- [`horizontal_orientation_margin_property`](#function-horizontal_orientation_margin_property)
- [`vertical_orientation_margin_property`](#function-vertical_orientation_margin_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`horizontal_orientation_padding`](#function-horizontal_orientation_padding)
- [`set_horizontal_orientation_padding`](#function-set_horizontal_orientation_padding)
- [`vertical_orientation_padding`](#function-vertical_orientation_padding)
- [`set_vertical_orientation_padding`](#function-set_vertical_orientation_padding)
- [`get_horizontal_orientation_margin`](#function-get_horizontal_orientation_margin)
- [`set_horizontal_orientation_margin`](#function-set_horizontal_orientation_margin)
- [`get_vertical_orientation_margin`](#function-get_vertical_orientation_margin)
- [`set_vertical_orientation_margin`](#function-set_vertical_orientation_margin)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.WinUI/Primitives/info_bar_panel.rs#L42)

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<InfoBarPanel>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.WinUI/Primitives/info_bar_panel.rs#L42)

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

### horizontal_orientation_padding_property

```rust
fn horizontal_orientation_padding_property() -> &'static StyledProperty<Thickness>
```

Defines the `HorizontalOrientationPadding` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.WinUI/Primitives/info_bar_panel.rs#L54)

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

### vertical_orientation_padding_property

```rust
fn vertical_orientation_padding_property() -> &'static StyledProperty<Thickness>
```

Defines the `VerticalOrientationPadding` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.WinUI/Primitives/info_bar_panel.rs#L54)

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

### horizontal_orientation_margin_property

```rust
fn horizontal_orientation_margin_property() -> &'static AttachedProperty<Thickness>
```

Defines the `HorizontalOrientationMargin` attached property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.WinUI/Primitives/info_bar_panel.rs#L54)

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

### vertical_orientation_margin_property

```rust
fn vertical_orientation_margin_property() -> &'static AttachedProperty<Thickness>
```

Defines the `VerticalOrientationMargin` attached property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.WinUI/Primitives/info_bar_panel.rs#L54)

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

### construct

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

Creates the class data; see `ferroui_base::FerroObject::construct`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.WinUI/Primitives/info_bar_panel.rs#L233)

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

### new

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

Creates an InfoBar panel.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.WinUI/Primitives/info_bar_panel.rs#L238)

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

### horizontal_orientation_padding

```rust
fn horizontal_orientation_padding(self: &Self) -> Thickness
```

The padding of the panel when its children are on one line.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.WinUI/Primitives/info_bar_panel.rs#L243)

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

### set_horizontal_orientation_padding

```rust
fn set_horizontal_orientation_padding(self: &Self, value: Thickness)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.WinUI/Primitives/info_bar_panel.rs#L247)

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

### vertical_orientation_padding

```rust
fn vertical_orientation_padding(self: &Self) -> Thickness
```

The padding of the panel when its children are below each other.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.WinUI/Primitives/info_bar_panel.rs#L252)

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

### set_vertical_orientation_padding

```rust
fn set_vertical_orientation_padding(self: &Self, value: Thickness)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.WinUI/Primitives/info_bar_panel.rs#L256)

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

### get_horizontal_orientation_margin

```rust
fn get_horizontal_orientation_margin(control: &Control) -> Thickness
```

Gets the margin of `control` when the children of the panel are on one line.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.WinUI/Primitives/info_bar_panel.rs#L261)

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

### set_horizontal_orientation_margin

```rust
fn set_horizontal_orientation_margin(control: &Control, value: Thickness)
```

Sets the margin of `control` when the children of the panel are on one line.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.WinUI/Primitives/info_bar_panel.rs#L266)

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

### get_vertical_orientation_margin

```rust
fn get_vertical_orientation_margin(control: &Control) -> Thickness
```

Gets the margin of `control` when the children of the panel are below each other.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.WinUI/Primitives/info_bar_panel.rs#L271)

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

### set_vertical_orientation_margin

```rust
fn set_vertical_orientation_margin(control: &Control, value: Thickness)
```

Sets the margin of `control` when the children of the panel are below each other.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.WinUI/Primitives/info_bar_panel.rs#L276)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`InputElementImplExt`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimplext/)
- [`InteractiveImplExt`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimplext/)
- [`LayoutableImplExt`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimplext/)
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`StyledElementImplExt`](/docs/0.5.0/api/ferroui-base/trait-styledelementimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- [`VisualImplExt`](/docs/0.5.0/api/ferroui-base/trait-visualimplext/)
- `ErasedDestructor`
- `IntoEither`
- [`ControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-controlimplext/)
- [`PanelImplExt`](/docs/0.5.0/api/ferroui-controls/trait-panelimplext/)
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<InfoBarPanel>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`VisualImpl`](/docs/0.5.0/api/ferroui-base/trait-visualimpl/)
- [`InteractiveImpl`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimpl/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)
- [`PanelImpl`](/docs/0.5.0/api/ferroui-controls/trait-panelimpl/)
- [`LayoutableImpl`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimpl/)

## Availability

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