# NativeControlHostImpl

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

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

```rust
trait NativeControlHostImpl: ControlImpl + $crate::Upcast<NativeControlHost>
```

The overridable members introduced by the class.

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

## Members

- [`create_native_control_core`](#function-create_native_control_core)
- [`destroy_native_control_core`](#function-destroy_native_control_core)

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

### create_native_control_core

```rust
fn create_native_control_core(this: &Self, parent: Rc<dyn IPlatformHandle>) -> Rc<dyn IPlatformHandle>
```

Creates the native control as a child of `parent`. The default
asks the native control host of the platform for its default
child.

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

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

### destroy_native_control_core

```rust
fn destroy_native_control_core(this: &Self, control: Rc<dyn IPlatformHandle>)
```

Destroys the native control. The default destroys a handle that
can be destroyed.

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

## Trait implementations

- [`NativeControlHostImpl`](/docs/0.5.0/api/ferroui-controls/trait-nativecontrolhostimpl/)

## Availability

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