# INativeControlHostControlTopLevelAttachment

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

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

```rust
trait INativeControlHostControlTopLevelAttachment: IDisposable
```

The attachment of a native control to a top-level.

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

## Members

- [`hide_with_size`](#function-hide_with_size)
- [`show_in_bounds`](#function-show_in_bounds)

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

### hide_with_size

```rust
fn hide_with_size(self: &Self, size: Size)
```

Hides the control, keeping it at the specified size.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/platform/i_native_control_host_impl.rs#L47)

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

### show_in_bounds

```rust
fn show_in_bounds(self: &Self, rect: Rect)
```

Shows the control in the specified bounds.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/platform/i_native_control_host_impl.rs#L50)

## Availability

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