# IconSourceImpl

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

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

```rust
trait IconSourceImpl: FerroObjectImpl + $crate::Upcast<IconSource>
```

The overridable members introduced by the class.

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

## Members

- [`create_icon_element_core`](#function-create_icon_element_core)
- [`get_icon_element_property_core`](#function-get_icon_element_property_core)

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

### create_icon_element_core

```rust
fn create_icon_element_core(this: &Self) -> Option<Ref<IconElement>>
```

Creates the icon element of the source with the values of its properties
(`CreateIconElementCore`); `None` for the abstract base.

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

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

### get_icon_element_property_core

```rust
fn get_icon_element_property_core(this: &Self, property: &'static FerroProperty) -> Option<&'static FerroProperty>
```

The property of the icon elements that a property of the source is set on
(`GetIconElementPropertyCore`); `None` for a property that is not.

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

## Trait implementations

- [`IconSourceImpl`](/docs/0.5.0/api/ferroui-controls/trait-iconsourceimpl/)

## Availability

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