# ControlElement

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/element/struct-controlelement/

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

```rust
struct ControlElement
```

An element of a control class.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/element.rs#L205)

## Members

- [`class`](#struct_field-class)
- [`key`](#struct_field-key)
- [`name`](#struct_field-name)
- [`classes`](#struct_field-classes)
- [`props`](#struct_field-props)
- [`handlers`](#struct_field-handlers)
- [`children`](#struct_field-children)
- [`on_mount`](#struct_field-on_mount)
- [`new`](#function-new)

<a id="struct_field-class"></a>

### class

```rust
class: ElementClass
```

The class of the control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/element.rs#L207)

<a id="struct_field-key"></a>

### key

```rust
key: Option<Key>
```

The key among its siblings.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/element.rs#L209)

<a id="struct_field-name"></a>

### name

```rust
name: Option<String>
```

`Name` of the control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/element.rs#L211)

<a id="struct_field-classes"></a>

### classes

```rust
classes: Vec<String>
```

Style classes of the control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/element.rs#L213)

<a id="struct_field-props"></a>

### props

```rust
props: Vec<PropEntry>
```

Values of properties, in the order they were given.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/element.rs#L215)

<a id="struct_field-handlers"></a>

### handlers

```rust
handlers: Vec<Handler>
```

Handlers.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/element.rs#L217)

<a id="struct_field-children"></a>

### children

```rust
children: Vec<Element>
```

Children, placed into the content of the control (see
`Element::mount`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/element.rs#L220)

<a id="struct_field-on_mount"></a>

### on_mount

```rust
on_mount: Vec<Attach>
```

Called with the control once it was made and given its values.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/element.rs#L222)

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

### new

```rust
fn new(class: ElementClass) -> Self
```

An element of `class` with nothing set.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/element.rs#L240)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`IntoValue<T>`](/docs/0.5.0/api/ferroui-view/builder/trait-intovalue/)
- [`FromValue<T>`](/docs/0.5.0/api/ferroui-view/builder/trait-fromvalue/)
- [`FromValue<Option<T>>`](/docs/0.5.0/api/ferroui-view/builder/trait-fromvalue/)
- [`IntoProp<T, Value>`](/docs/0.5.0/api/ferroui-view/builder/trait-intoprop/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Debug`

## Availability

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