# IStyleInstance

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/styling/trait-istyleinstance/

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

```rust
trait IStyleInstance
```

Represents a style that has been instanced on a control.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/styling/i_style_instance.rs#L5)

## Members

- [`source`](#function-source)
- [`has_activator`](#function-has_activator)
- [`is_active`](#function-is_active)

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

### source

```rust
fn source(self: &Self) -> Option<Ref<StyleBase>>
```

The source style, if it is still alive.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/styling/i_style_instance.rs#L7)

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

### has_activator

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

Whether this style has an activator.

A style instance without an activator will always be active.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/styling/i_style_instance.rs#L12)

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

### is_active

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

Whether this style is active.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/styling/i_style_instance.rs#L15)

## Trait implementations

- [`IStyleInstance`](/docs/0.5.0/api/ferroui-base/styling/trait-istyleinstance/)

## Availability

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