# WindowProps

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/generated/builders/trait-windowprops/

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

```rust
trait WindowProps: ElementBuilder
```

The properties and routed events of `Window`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9570)

## Members

- [`size_to_content`](#function-size_to_content)
- [`extend_client_area_to_decorations_hint`](#function-extend_client_area_to_decorations_hint)
- [`extend_client_area_title_bar_height_hint`](#function-extend_client_area_title_bar_height_hint)
- [`window_decorations`](#function-window_decorations)
- [`window_decorations_theme`](#function-window_decorations_theme)
- [`show_activated`](#function-show_activated)
- [`show_in_taskbar`](#function-show_in_taskbar)
- [`closing_behavior`](#function-closing_behavior)
- [`window_state`](#function-window_state)
- [`title`](#function-title)
- [`icon`](#function-icon)
- [`window_startup_location`](#function-window_startup_location)
- [`can_resize`](#function-can_resize)
- [`can_minimize`](#function-can_minimize)
- [`can_maximize`](#function-can_maximize)
- [`on_window_closed`](#function-on_window_closed)
- [`on_window_opened`](#function-on_window_opened)

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

### size_to_content

```rust
fn size_to_content<M>(self: Self, value: impl IntoProp<ferroui_controls::SizeToContent, M>) -> Self
```

Sets `Window::size_to_content_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9572)

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

### extend_client_area_to_decorations_hint

```rust
fn extend_client_area_to_decorations_hint<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
```

Sets `Window::extend_client_area_to_decorations_hint_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9577)

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

### extend_client_area_title_bar_height_hint

```rust
fn extend_client_area_title_bar_height_hint<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
```

Sets `Window::extend_client_area_title_bar_height_hint_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9582)

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

### window_decorations

```rust
fn window_decorations<M>(self: Self, value: impl IntoProp<ferroui_controls::WindowDecorations, M>) -> Self
```

Sets `Window::window_decorations_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9587)

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

### window_decorations_theme

```rust
fn window_decorations_theme<M>(self: Self, value: impl IntoProp<Option<ferroui_base::Ref<ferroui_base::styling::ControlTheme>>, M>) -> Self
```

Sets `Window::window_decorations_theme_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9592)

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

### show_activated

```rust
fn show_activated<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
```

Sets `Window::show_activated_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9597)

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

### show_in_taskbar

```rust
fn show_in_taskbar<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
```

Sets `Window::show_in_taskbar_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9602)

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

### closing_behavior

```rust
fn closing_behavior<M>(self: Self, value: impl IntoProp<ferroui_controls::WindowClosingBehavior, M>) -> Self
```

Sets `Window::closing_behavior_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9607)

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

### window_state

```rust
fn window_state<M>(self: Self, value: impl IntoProp<ferroui_controls::WindowState, M>) -> Self
```

Sets `Window::window_state_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9612)

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

### title

```rust
fn title<M>(self: Self, value: impl IntoProp<Option<String>, M>) -> Self
```

Sets `Window::title_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9617)

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

### icon

```rust
fn icon<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<ferroui_controls::WindowIcon>>, M>) -> Self
```

Sets `Window::icon_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9622)

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

### window_startup_location

```rust
fn window_startup_location<M>(self: Self, value: impl IntoProp<ferroui_controls::WindowStartupLocation, M>) -> Self
```

Sets `Window::window_startup_location_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9627)

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

### can_resize

```rust
fn can_resize<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
```

Sets `Window::can_resize_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9632)

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

### can_minimize

```rust
fn can_minimize<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
```

Sets `Window::can_minimize_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9637)

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

### can_maximize

```rust
fn can_maximize<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
```

Sets `Window::can_maximize_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9642)

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

### on_window_closed

```rust
fn on_window_closed(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
```

Handles `Window::window_closed_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9647)

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

### on_window_opened

```rust
fn on_window_opened(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
```

Handles `Window::window_opened_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9652)

## Trait implementations

- [`WindowProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-windowprops/)

## Availability

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