# WindowDrawnDecorations

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/chrome/struct-windowdrawndecorations/

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

```rust
struct WindowDrawnDecorations
```

Manages client-side window decorations (app-drawn window frame).

This is a logical element that holds the decorations template and
properties. The host of the top-level extracts the overlay, underlay and
popover visuals from the template content and inserts them into its own
visual tree.

Pseudo-classes: `:normal`, `:maximized`, `:fullscreen`, `:has-shadow`,
`:has-border`, `:has-titlebar`, `:has-maximize`, `:has-fullscreen`,
`:has-minimize`, `:has-close`, `:has-title`.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`PC_NORMAL`](#assoc_const-pc_normal)
- [`PC_MAXIMIZED`](#assoc_const-pc_maximized)
- [`PC_FULLSCREEN`](#assoc_const-pc_fullscreen)
- [`PC_HAS_SHADOW`](#assoc_const-pc_has_shadow)
- [`PC_HAS_BORDER`](#assoc_const-pc_has_border)
- [`PC_HAS_TITLEBAR`](#assoc_const-pc_has_titlebar)
- [`PC_HAS_MAXIMIZE`](#assoc_const-pc_has_maximize)
- [`PC_HAS_FULLSCREEN`](#assoc_const-pc_has_fullscreen)
- [`PC_HAS_MINIMIZE`](#assoc_const-pc_has_minimize)
- [`PC_HAS_CLOSE`](#assoc_const-pc_has_close)
- [`PC_HAS_TITLE`](#assoc_const-pc_has_title)
- [`PART_CLOSE_BUTTON`](#assoc_const-part_close_button)
- [`PART_MINIMIZE_BUTTON`](#assoc_const-part_minimize_button)
- [`PART_MAXIMIZE_BUTTON`](#assoc_const-part_maximize_button)
- [`PART_FULL_SCREEN_BUTTON`](#assoc_const-part_full_screen_button)
- [`PART_POPOVER_CLOSE_BUTTON`](#assoc_const-part_popover_close_button)
- [`PART_POPOVER_FULL_SCREEN_BUTTON`](#assoc_const-part_popover_full_screen_button)
- [`PART_TITLE_BAR`](#assoc_const-part_title_bar)
- [`template_property`](#function-template_property)
- [`default_title_bar_height_property`](#function-default_title_bar_height_property)
- [`default_frame_thickness_property`](#function-default_frame_thickness_property)
- [`default_shadow_thickness_property`](#function-default_shadow_thickness_property)
- [`title_bar_height_property`](#function-title_bar_height_property)
- [`frame_thickness_property`](#function-frame_thickness_property)
- [`shadow_thickness_property`](#function-shadow_thickness_property)
- [`has_shadow_property`](#function-has_shadow_property)
- [`has_border_property`](#function-has_border_property)
- [`has_title_bar_property`](#function-has_title_bar_property)
- [`title_property`](#function-title_property)
- [`title_bar_decorations_property`](#function-title_bar_decorations_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`render_scaling`](#function-render_scaling)
- [`set_render_scaling`](#function-set_render_scaling)
- [`template`](#function-template)
- [`set_template`](#function-set_template)
- [`default_title_bar_height`](#function-default_title_bar_height)
- [`set_default_title_bar_height`](#function-set_default_title_bar_height)
- [`default_frame_thickness`](#function-default_frame_thickness)
- [`set_default_frame_thickness`](#function-set_default_frame_thickness)
- [`default_shadow_thickness`](#function-default_shadow_thickness)
- [`set_default_shadow_thickness`](#function-set_default_shadow_thickness)
- [`title_bar_height_override`](#function-title_bar_height_override)
- [`set_title_bar_height_override`](#function-set_title_bar_height_override)
- [`frame_thickness_override`](#function-frame_thickness_override)
- [`set_frame_thickness_override`](#function-set_frame_thickness_override)
- [`shadow_thickness_override`](#function-shadow_thickness_override)
- [`set_shadow_thickness_override`](#function-set_shadow_thickness_override)
- [`title`](#function-title)
- [`set_title`](#function-set_title)
- [`get_title_bar_decorations`](#function-get_title_bar_decorations)
- [`set_title_bar_decorations`](#function-set_title_bar_decorations)
- [`title_bar_decorations`](#function-title_bar_decorations)
- [`set_own_title_bar_decorations`](#function-set_own_title_bar_decorations)
- [`caption_buttons_width`](#function-caption_buttons_width)
- [`content`](#function-content)
- [`title_bar_height`](#function-title_bar_height)
- [`frame_thickness`](#function-frame_thickness)
- [`shadow_thickness`](#function-shadow_thickness)
- [`has_shadow`](#function-has_shadow)
- [`has_border`](#function-has_border)
- [`has_title_bar`](#function-has_title_bar)

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

### TYPE

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

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L62)

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<WindowDrawnDecorations>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L62)

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

### PC_NORMAL

```rust
const PC_NORMAL: &'static str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L69)

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

### PC_MAXIMIZED

```rust
const PC_MAXIMIZED: &'static str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L70)

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

### PC_FULLSCREEN

```rust
const PC_FULLSCREEN: &'static str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L71)

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

### PC_HAS_SHADOW

```rust
const PC_HAS_SHADOW: &'static str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L72)

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

### PC_HAS_BORDER

```rust
const PC_HAS_BORDER: &'static str
```



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

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

### PC_HAS_TITLEBAR

```rust
const PC_HAS_TITLEBAR: &'static str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L74)

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

### PC_HAS_MAXIMIZE

```rust
const PC_HAS_MAXIMIZE: &'static str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L75)

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

### PC_HAS_FULLSCREEN

```rust
const PC_HAS_FULLSCREEN: &'static str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L76)

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

### PC_HAS_MINIMIZE

```rust
const PC_HAS_MINIMIZE: &'static str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L77)

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

### PC_HAS_CLOSE

```rust
const PC_HAS_CLOSE: &'static str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L78)

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

### PC_HAS_TITLE

```rust
const PC_HAS_TITLE: &'static str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L79)

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

### PART_CLOSE_BUTTON

```rust
const PART_CLOSE_BUTTON: &'static str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L82)

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

### PART_MINIMIZE_BUTTON

```rust
const PART_MINIMIZE_BUTTON: &'static str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L83)

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

### PART_MAXIMIZE_BUTTON

```rust
const PART_MAXIMIZE_BUTTON: &'static str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L84)

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

### PART_FULL_SCREEN_BUTTON

```rust
const PART_FULL_SCREEN_BUTTON: &'static str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L85)

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

### PART_POPOVER_CLOSE_BUTTON

```rust
const PART_POPOVER_CLOSE_BUTTON: &'static str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L87)

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

### PART_POPOVER_FULL_SCREEN_BUTTON

```rust
const PART_POPOVER_FULL_SCREEN_BUTTON: &'static str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L88)

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

### PART_TITLE_BAR

```rust
const PART_TITLE_BAR: &'static str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L90)

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

### template_property

```rust
fn template_property() -> &'static StyledProperty<Option<Rc<dyn IWindowDrawnDecorationsTemplate>>>
```

Defines the `Template` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L93)

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

### default_title_bar_height_property

```rust
fn default_title_bar_height_property() -> &'static StyledProperty<f64>
```

Defines the `DefaultTitleBarHeight` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L93)

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

### default_frame_thickness_property

```rust
fn default_frame_thickness_property() -> &'static StyledProperty<Thickness>
```

Defines the `DefaultFrameThickness` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L93)

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

### default_shadow_thickness_property

```rust
fn default_shadow_thickness_property() -> &'static StyledProperty<Thickness>
```

Defines the `DefaultShadowThickness` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L93)

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

### title_bar_height_property

```rust
fn title_bar_height_property() -> &'static DirectProperty<WindowDrawnDecorations, f64>
```

Defines the `TitleBarHeight` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L93)

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

### frame_thickness_property

```rust
fn frame_thickness_property() -> &'static DirectProperty<WindowDrawnDecorations, Thickness>
```

Defines the `FrameThickness` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L93)

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

### shadow_thickness_property

```rust
fn shadow_thickness_property() -> &'static DirectProperty<WindowDrawnDecorations, Thickness>
```

Defines the `ShadowThickness` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L93)

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

### has_shadow_property

```rust
fn has_shadow_property() -> &'static DirectProperty<WindowDrawnDecorations, bool>
```

Defines the `HasShadow` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L93)

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

### has_border_property

```rust
fn has_border_property() -> &'static DirectProperty<WindowDrawnDecorations, bool>
```

Defines the `HasBorder` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L93)

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

### has_title_bar_property

```rust
fn has_title_bar_property() -> &'static DirectProperty<WindowDrawnDecorations, bool>
```

Defines the `HasTitleBar` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L93)

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

### title_property

```rust
fn title_property() -> &'static StyledProperty<Option<String>>
```

Defines the `Title` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L93)

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

### title_bar_decorations_property

```rust
fn title_bar_decorations_property() -> &'static AttachedProperty<TitleBarDecorations>
```

Defines the `TitleBarDecorations` attached property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L93)

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

### construct

```rust
fn construct() -> Self
```

Field initialisation only.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L245)

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

### new

```rust
fn new() -> Ref<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L273)

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

### render_scaling

```rust
fn render_scaling(self: &Self) -> f64
```

The current render scaling factor used for pixel-aligning decoration
geometry (title bar height, frame/shadow thickness).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L292)

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

### set_render_scaling

```rust
fn set_render_scaling(self: &Self, value: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L296)

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

### template

```rust
fn template(self: &Self) -> Option<Rc<dyn IWindowDrawnDecorationsTemplate>>
```

The decorations template.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L305)

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

### set_template

```rust
fn set_template(self: &Self, value: Option<Rc<dyn IWindowDrawnDecorationsTemplate>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L309)

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

### default_title_bar_height

```rust
fn default_title_bar_height(self: &Self) -> f64
```

The theme-set default titlebar height.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L314)

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

### set_default_title_bar_height

```rust
fn set_default_title_bar_height(self: &Self, value: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L318)

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

### default_frame_thickness

```rust
fn default_frame_thickness(self: &Self) -> Thickness
```

The theme-set default frame thickness.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L323)

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

### set_default_frame_thickness

```rust
fn set_default_frame_thickness(self: &Self, value: Thickness)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L327)

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

### default_shadow_thickness

```rust
fn default_shadow_thickness(self: &Self) -> Thickness
```

The theme-set default shadow thickness.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L332)

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

### set_default_shadow_thickness

```rust
fn set_default_shadow_thickness(self: &Self, value: Thickness)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L336)

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

### title_bar_height_override

```rust
fn title_bar_height_override(self: &Self) -> f64
```

The titlebar height override. When -1, falls back to
`default_title_bar_height`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L342)

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

### set_title_bar_height_override

```rust
fn set_title_bar_height_override(self: &Self, value: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L346)

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

### frame_thickness_override

```rust
fn frame_thickness_override(self: &Self) -> Option<Thickness>
```

The frame thickness override. When set, takes precedence over
`default_frame_thickness`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L353)

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

### set_frame_thickness_override

```rust
fn set_frame_thickness_override(self: &Self, value: Option<Thickness>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L357)

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

### shadow_thickness_override

```rust
fn shadow_thickness_override(self: &Self) -> Option<Thickness>
```

The shadow thickness override. When set, takes precedence over
`default_shadow_thickness`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L364)

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

### set_shadow_thickness_override

```rust
fn set_shadow_thickness_override(self: &Self, value: Option<Thickness>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L368)

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

### title

```rust
fn title(self: &Self) -> Option<String>
```

The window title displayed in the decorations. Mirrors the value set
on the host window.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L375)

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

### set_title

```rust
fn set_title(self: &Self, value: Option<String>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L379)

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

### get_title_bar_decorations

```rust
fn get_title_bar_decorations(element: &StyledElement) -> TitleBarDecorations
```

Gets which title bar elements to display.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L384)

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

### set_title_bar_decorations

```rust
fn set_title_bar_decorations(element: &StyledElement, value: TitleBarDecorations)
```

Sets which title bar elements to display.

Set this property on a window to control the elements displayed in
its drawn title bar.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L392)

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

### title_bar_decorations

```rust
fn title_bar_decorations(self: &Self) -> TitleBarDecorations
```

Which title bar elements are requested to be displayed. Mirrors the
value set on the host window.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L398)

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

### set_own_title_bar_decorations

```rust
fn set_own_title_bar_decorations(self: &Self, value: TitleBarDecorations)
```

Sets which title bar elements are requested to be displayed on these
decorations (the instance property; the associated function
`set_title_bar_decorations` is the
attached property setter).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L406)

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

### caption_buttons_width

```rust
fn caption_buttons_width(self: &Self) -> f64
```

The built template content.
The width the visible caption buttons (minimize, maximize, full screen, close) take at the
right of the title bar, from the left edge of the leftmost of them to the right edge of the
decorations; 0 without a visible caption button. Not in upstream: the caption-button inset
of a `TitleBar` drawn in the title bar of the window (WinUI's `AppWindowTitleBar.RightInset`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L425)

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

### content

```rust
fn content(self: &Self) -> Option<Ref<WindowDrawnDecorationsContent>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L442)

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

### title_bar_height

```rust
fn title_bar_height(self: &Self) -> f64
```

The effective titlebar height, resolving a -1 override to the
default. 0 if the titlebar part is disabled.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L448)

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

### frame_thickness

```rust
fn frame_thickness(self: &Self) -> Thickness
```

The effective frame thickness: the override if explicitly set,
otherwise the default. Zero if the border part is disabled.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L458)

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

### shadow_thickness

```rust
fn shadow_thickness(self: &Self) -> Thickness
```

The effective shadow thickness: the override if explicitly set,
otherwise the default. Zero if the shadow part is disabled.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L468)

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

### has_shadow

```rust
fn has_shadow(self: &Self) -> bool
```

Whether the shadow decoration part is enabled.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L477)

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

### has_border

```rust
fn has_border(self: &Self) -> bool
```

Whether the border decoration part is enabled.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L486)

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

### has_title_bar

```rust
fn has_title_bar(self: &Self) -> bool
```

Whether the title bar decoration part is enabled.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/chrome/window_drawn_decorations.rs#L495)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`StyledElementImplExt`](/docs/0.5.0/api/ferroui-base/trait-styledelementimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<WindowDrawnDecorations>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)

## Availability

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