# WindowDecorationsElementRole

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/input/enum-windowdecorationselementrole/

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

```rust
enum WindowDecorationsElementRole
```

Defines the cross-platform role of a visual element for non-client
hit-testing. Used to mark elements as titlebar drag areas, resize grips,
etc.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/window_decorations_element_role.rs#L6)

## Members

- [`None`](#variant-none)
- [`DecorationsElement`](#variant-decorationselement)
- [`User`](#variant-user)
- [`TitleBar`](#variant-titlebar)
- [`ResizeN`](#variant-resizen)
- [`ResizeS`](#variant-resizes)
- [`ResizeE`](#variant-resizee)
- [`ResizeW`](#variant-resizew)
- [`ResizeNE`](#variant-resizene)
- [`ResizeNW`](#variant-resizenw)
- [`ResizeSE`](#variant-resizese)
- [`ResizeSW`](#variant-resizesw)
- [`CloseButton`](#variant-closebutton)
- [`MinimizeButton`](#variant-minimizebutton)
- [`MaximizeButton`](#variant-maximizebutton)
- [`FullScreenButton`](#variant-fullscreenbutton)

<a id="variant-none"></a>

### None

```rust
None = 0
```

No special role. The element is invisible to chrome hit-testing.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/window_decorations_element_role.rs#L9)

<a id="variant-decorationselement"></a>

### DecorationsElement

```rust
DecorationsElement = 1
```

An interactive element that is part of the decorations chrome (e.g.,
a caption button). Set by themes on decoration template elements.
Input is passed through to the element rather than being intercepted
for non-client actions.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/window_decorations_element_role.rs#L15)

<a id="variant-user"></a>

### User

```rust
User = 2
```

An interactive element set by user code that should receive input
even when overlapping chrome areas. Has the same effect as
`DecorationsElement` but is intended for
use by application developers.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/window_decorations_element_role.rs#L21)

<a id="variant-titlebar"></a>

### TitleBar

```rust
TitleBar = 3
```

The element acts as a titlebar drag area. Clicking and dragging on
this element initiates a platform window move.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/window_decorations_element_role.rs#L25)

<a id="variant-resizen"></a>

### ResizeN

```rust
ResizeN = 4
```

Resize grip for the north (top) edge.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/window_decorations_element_role.rs#L28)

<a id="variant-resizes"></a>

### ResizeS

```rust
ResizeS = 5
```

Resize grip for the south (bottom) edge.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/window_decorations_element_role.rs#L31)

<a id="variant-resizee"></a>

### ResizeE

```rust
ResizeE = 6
```

Resize grip for the east (right) edge.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/window_decorations_element_role.rs#L34)

<a id="variant-resizew"></a>

### ResizeW

```rust
ResizeW = 7
```

Resize grip for the west (left) edge.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/window_decorations_element_role.rs#L37)

<a id="variant-resizene"></a>

### ResizeNE

```rust
ResizeNE = 8
```

Resize grip for the northeast corner.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/window_decorations_element_role.rs#L40)

<a id="variant-resizenw"></a>

### ResizeNW

```rust
ResizeNW = 9
```

Resize grip for the northwest corner.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/window_decorations_element_role.rs#L43)

<a id="variant-resizese"></a>

### ResizeSE

```rust
ResizeSE = 10
```

Resize grip for the southeast corner.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/window_decorations_element_role.rs#L46)

<a id="variant-resizesw"></a>

### ResizeSW

```rust
ResizeSW = 11
```

Resize grip for the southwest corner.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/window_decorations_element_role.rs#L49)

<a id="variant-closebutton"></a>

### CloseButton

```rust
CloseButton = 12
```

The element acts as the window close button. On Win32, maps to the
system close behavior. On other platforms, treated as an interactive
decoration element.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/window_decorations_element_role.rs#L54)

<a id="variant-minimizebutton"></a>

### MinimizeButton

```rust
MinimizeButton = 13
```

The element acts as the window minimize button. On Win32, maps to
the system minimize behavior. On other platforms, treated as an
interactive decoration element.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/window_decorations_element_role.rs#L59)

<a id="variant-maximizebutton"></a>

### MaximizeButton

```rust
MaximizeButton = 14
```

The element acts as the window maximize/restore button. On Win32,
maps to the system maximize behavior. On other platforms, treated as
an interactive decoration element.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/window_decorations_element_role.rs#L64)

<a id="variant-fullscreenbutton"></a>

### FullScreenButton

```rust
FullScreenButton = 15
```

The element acts as the window fullscreen toggle button. Treated as
an interactive decoration element on all platforms.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/window_decorations_element_role.rs#L68)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- [`ValueTypeRegistration`](/docs/0.5.0/api/ferroui-base/data/core/trait-valuetyperegistration/)

## Availability

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