# Win32Properties

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/platform/struct-win32properties/

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

```rust
struct Win32Properties
```

Set of Win32 specific properties and events that allow deeper customization of the
application per platform.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`non_client_hit_test_result_property`](#function-non_client_hit_test_result_property)
- [`window_corner_preference_property`](#function-window_corner_preference_property)
- [`add_window_styles_callback`](#function-add_window_styles_callback)
- [`remove_window_styles_callback`](#function-remove_window_styles_callback)
- [`add_wnd_proc_hook_callback`](#function-add_wnd_proc_hook_callback)
- [`remove_wnd_proc_hook_callback`](#function-remove_wnd_proc_hook_callback)
- [`set_non_client_hit_test_result`](#function-set_non_client_hit_test_result)
- [`get_non_client_hit_test_result`](#function-get_non_client_hit_test_result)
- [`set_window_corner_preference`](#function-set_window_corner_preference)
- [`get_window_corner_preference`](#function-get_window_corner_preference)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this type.

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

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

### non_client_hit_test_result_property

```rust
fn non_client_hit_test_result_property() -> &'static AttachedProperty<Win32HitTestValue>
```

Defines the `NonClientHitTestResult` attached property: the non-client hit test
result of a visual.

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

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

### window_corner_preference_property

```rust
fn window_corner_preference_property() -> &'static AttachedProperty<WindowCornerPreference>
```

Defines the `WindowCornerPreference` attached property: the rounded corner
preference of a window.

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

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

### add_window_styles_callback

```rust
fn add_window_styles_callback(top_level: &TopLevel, callback: Option<CustomWindowStylesCallback>)
```

Adds a callback to set the window's style.

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

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

### remove_window_styles_callback

```rust
fn remove_window_styles_callback(top_level: &TopLevel, callback: Option<CustomWindowStylesCallback>)
```

Removes a callback that sets the window's style.

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

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

### add_wnd_proc_hook_callback

```rust
fn add_wnd_proc_hook_callback(top_level: &TopLevel, callback: Option<CustomWndProcHookCallback>)
```

Adds a custom callback for the window procedure.

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

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

### remove_wnd_proc_hook_callback

```rust
fn remove_wnd_proc_hook_callback(top_level: &TopLevel, callback: Option<CustomWndProcHookCallback>)
```

Removes a custom callback for the window procedure.

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

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

### set_non_client_hit_test_result

```rust
fn set_non_client_hit_test_result(obj: &Visual, value: Win32HitTestValue)
```

Sets the non-client hit test result for a visual.

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

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

### get_non_client_hit_test_result

```rust
fn get_non_client_hit_test_result(obj: &Visual) -> Win32HitTestValue
```

Gets the non-client hit test result for a visual.

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

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

### set_window_corner_preference

```rust
fn set_window_corner_preference(window: &Window, value: WindowCornerPreference)
```

Sets a hint for the corner preference of a window.

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

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

### get_window_corner_preference

```rust
fn get_window_corner_preference(window: &Window) -> WindowCornerPreference
```

Gets the corner preference hint of a window.

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

## 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`
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)

## Availability

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