# register_clickable_control

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/function-register_clickable_control/

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

```rust
fn register_clickable_control<T: ObjectType>(adapter: fn(ferroui_base::Ref<T>) -> std::rc::Rc<dyn IClickableControl>)
```

Declares that class `T` (and the classes derived from it) implements
`IClickableControl` through the handle created by `adapter`.

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

## Availability

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