# OffscreenTopLevelImplBase

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/embedding/offscreen/struct-offscreentoplevelimplbase/

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

```rust
struct OffscreenTopLevelImplBase
```

The base of the top-level implementations that are not backed by a
window of the platform: the client size and the scaling are set by the
owner, which also feeds the input and provides the surfaces.

This API is unstable.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/embedding/offscreen/offscreen_top_level_impl.rs#L62)

## Members

- [`new`](#function-new)
- [`overrides`](#function-overrides)
- [`input_root`](#function-input_root)
- [`is_disposed`](#function-is_disposed)
- [`base_dispose`](#function-base_dispose)
- [`compositor`](#function-compositor)
- [`client_size`](#function-client_size)
- [`frame_size`](#function-frame_size)
- [`set_client_size`](#function-set_client_size)
- [`render_scaling`](#function-render_scaling)
- [`set_render_scaling`](#function-set_render_scaling)
- [`mouse_device`](#function-mouse_device)

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

### new

```rust
fn new(overrides: Rc<dyn OffscreenTopLevelImplOverrides>) -> Rc<Self>
```

Creates the implementation over the members of the deriving class,
with a compositor of its own.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/embedding/offscreen/offscreen_top_level_impl.rs#L81)

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

### overrides

```rust
fn overrides(self: &Self) -> &Rc<dyn OffscreenTopLevelImplOverrides>
```

The members of the deriving class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/embedding/offscreen/offscreen_top_level_impl.rs#L100)

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

### input_root

```rust
fn input_root(self: &Self) -> Option<Rc<dyn IInputRoot>>
```

The input root the top-level set.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/embedding/offscreen/offscreen_top_level_impl.rs#L105)

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

### is_disposed

```rust
fn is_disposed(self: &Self) -> bool
```

Whether the implementation has been disposed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/embedding/offscreen/offscreen_top_level_impl.rs#L110)

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

### base_dispose

```rust
fn base_dispose(self: &Self)
```

The `Dispose` of the base class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/embedding/offscreen/offscreen_top_level_impl.rs#L115)

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

### compositor

```rust
fn compositor(self: &Self) -> &Rc<Compositor>
```

The compositor of the top-level.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/embedding/offscreen/offscreen_top_level_impl.rs#L120)

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

### client_size

```rust
fn client_size(self: &Self) -> Size
```

The client size of the top-level.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/embedding/offscreen/offscreen_top_level_impl.rs#L125)

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

### frame_size

```rust
fn frame_size(self: &Self) -> Option<Size>
```

The size of the frame of the top-level: an offscreen top-level has none.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/embedding/offscreen/offscreen_top_level_impl.rs#L130)

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

### set_client_size

```rust
fn set_client_size(self: &Self, value: Size)
```

Sets the client size and notifies the top-level.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/embedding/offscreen/offscreen_top_level_impl.rs#L135)

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

### render_scaling

```rust
fn render_scaling(self: &Self) -> f64
```

The scaling factor of the top-level.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/embedding/offscreen/offscreen_top_level_impl.rs#L144)

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

### set_render_scaling

```rust
fn set_render_scaling(self: &Self, value: f64)
```

Sets the scaling factor and notifies the top-level.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/embedding/offscreen/offscreen_top_level_impl.rs#L149)

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

### mouse_device

```rust
fn mouse_device(self: &Self) -> Rc<dyn IMouseDevice>
```

The mouse device of the top-level.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/embedding/offscreen/offscreen_top_level_impl.rs#L158)

## 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`
- [`IDisposable`](/docs/0.5.0/api/ferroui-base/reactive/use-idisposable/)
- [`IOptionalFeatureProvider`](/docs/0.5.0/api/ferroui-base/platform/trait-ioptionalfeatureprovider/)
- `ITopLevelImpl`

## Availability

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