# OffscreenTopLevelImplOverrides

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

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

```rust
trait OffscreenTopLevelImplOverrides
```

The abstract and the overridable members of an offscreen top-level
implementation: what a class deriving from
[`OffscreenTopLevelImplBase`](/docs/0.5.0/api/ferroui-controls/embedding/offscreen/struct-offscreentoplevelimplbase/) provides.

This API is unstable.

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

## Members

- [`surfaces`](#function-surfaces)
- [`mouse_device`](#function-mouse_device)
- [`dispose`](#function-dispose)
- [`desktop_scaling`](#function-desktop_scaling)
- [`point_to_client`](#function-point_to_client)
- [`point_to_screen`](#function-point_to_screen)
- [`set_cursor`](#function-set_cursor)
- [`try_get_feature`](#function-try_get_feature)

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

### surfaces

```rust
fn surfaces(self: &Self) -> Vec<std::sync::Arc<dyn IPlatformRenderSurface>>
```

The surfaces the top-level is rendered to.

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

<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#L24)

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

### dispose

```rust
fn dispose(self: &Self, base: &OffscreenTopLevelImplBase)
```

Disposes the implementation. An override calls
`OffscreenTopLevelImplBase::base_dispose`, as this does.

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

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

### desktop_scaling

```rust
fn desktop_scaling(self: &Self, base: &OffscreenTopLevelImplBase) -> f64
```

The scaling of the desktop the top-level is on; the render scaling
by default.

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

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

### point_to_client

```rust
fn point_to_client(self: &Self, point: PixelPoint) -> Point
```

Converts a point from screen to client coordinates.

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

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

### point_to_screen

```rust
fn point_to_screen(self: &Self, point: Point) -> PixelPoint
```

Converts a point from client to screen coordinates.

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

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

### set_cursor

```rust
fn set_cursor(self: &Self, _cursor: Option<Rc<dyn ICursorImpl>>)
```

Sets the cursor associated with the top-level; ignored by default.

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

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

### try_get_feature

```rust
fn try_get_feature(self: &Self, _feature_type: TypeId) -> Option<Rc<dyn Any>>
```

Queries for an optional feature; none by default.

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

## Availability

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