# NativeDock

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/struct-nativedock/

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

```rust
struct NativeDock
```

Allows native menu support on platforms where a [`NativeMenu`](/docs/0.5.0/api/ferroui-controls/struct-nativemenu/) can be
attached to the dock.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`menu_property`](#function-menu_property)
- [`set_menu`](#function-set_menu)
- [`get_menu`](#function-get_menu)

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

### TYPE

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

The runtime type of this type.

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

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

### menu_property

```rust
fn menu_property() -> &'static AttachedProperty<Option<Ref<NativeMenu>>>
```

Defines the Menu attached property.

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

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

### set_menu

```rust
fn set_menu(o: &FerroObject, menu: Option<Ref<NativeMenu>>)
```

Sets the value of the attached `menu_property`.

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

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

### get_menu

```rust
fn get_menu(o: &FerroObject) -> Option<Ref<NativeMenu>>
```

Gets the value of the attached `menu_property`.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)

## Availability

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