# IHeadered

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

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

```rust
trait IHeadered
```

Defines an object that has a header.

A class implementing the trait is made known with [`register_headered`](/docs/0.5.0/api/ferroui-controls/function-register_headered/),
normally from its class initialization; [`as_headered`](/docs/0.5.0/api/ferroui-controls/function-as_headered/) then views an
object of the class (or of a class derived from it) as the interface.

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

## Members

- [`header`](#function-header)
- [`set_header`](#function-set_header)

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

### header

```rust
fn header(self: &Self) -> Option<BoxedValue>
```

The header content.

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

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

### set_header

```rust
fn set_header(self: &Self, value: Option<BoxedValue>)
```

Sets the header content.

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

## Trait implementations

- [`IHeadered`](/docs/0.5.0/api/ferroui-controls/trait-iheadered/)

## Availability

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