# ButtonImpl

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

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

```rust
trait ButtonImpl: ContentControlImpl + $crate::Upcast<Button>
```

The overridable members introduced by the class.

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

## Members

- [`on_click`](#function-on_click)
- [`open_flyout`](#function-open_flyout)
- [`close_flyout`](#function-close_flyout)
- [`on_flyout_opened`](#function-on_flyout_opened)
- [`on_flyout_closed`](#function-on_flyout_closed)

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

### on_click

```rust
fn on_click(this: &Self)
```

Invokes the `Click` event.

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

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

### open_flyout

```rust
fn open_flyout(this: &Self)
```

Opens the button's flyout.

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

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

### close_flyout

```rust
fn close_flyout(this: &Self)
```

Closes the button's flyout.

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

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

### on_flyout_opened

```rust
fn on_flyout_opened(this: &Self)
```

Invoked when the button's flyout is opened.

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

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

### on_flyout_closed

```rust
fn on_flyout_closed(this: &Self)
```

Invoked when the button's flyout is closed.

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

## Trait implementations

- [`ButtonImpl`](/docs/0.5.0/api/ferroui-controls/trait-buttonimpl/)

## Availability

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