# IClickableControl

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/input/trait-iclickablecontrol/

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

```rust
trait IClickableControl
```

A control that can be clicked: what the access key and hot key handling
needs from a button-like control.

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

## Members

- [`click`](#function-click)
- [`raise_click`](#function-raise_click)
- [`is_effectively_enabled`](#function-is_effectively_enabled)

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

### click

```rust
fn click(self: &Self, handler: Rc<dyn Fn(&RoutedEventArgs) -> ()>) -> Rc<dyn IDisposable>
```

Raised when the control is clicked. Disposing the returned handle
unsubscribes.

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

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

### raise_click

```rust
fn raise_click(self: &Self)
```

Raises the click of the control.

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

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

### is_effectively_enabled

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

Gets a value indicating whether this control and all its parents are
enabled.

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

## Availability

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