# WindowImpl

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

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

```rust
trait WindowImpl: WindowBaseImpl + $crate::Upcast<Window>
```

The overridable members introduced by the class.

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

## Members

- [`handle_closing`](#function-handle_closing)
- [`on_closing`](#function-on_closing)

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

### handle_closing

```rust
fn handle_closing(this: &Self, reason: WindowCloseReason) -> bool
```

Handles a closing notification from the platform implementation.
Returns true if closing is cancelled, otherwise false. `reason`
is the reason the window is closing.

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

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

### on_closing

```rust
fn on_closing(this: &Self, e: &WindowClosingEventArgs)
```

Raises the `Closing` event.

A type that derives from `Window` may override this member. The
override must call the base implementation if the `Closing`
event needs to be raised.

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

## Trait implementations

- [`WindowImpl`](/docs/0.5.0/api/ferroui-controls/trait-windowimpl/)

## Availability

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