# StyleBaseImpl

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

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

```rust
trait StyleBaseImpl: FerroObjectImpl + $crate::Upcast<StyleBase>
```

The overridable members introduced by the class.

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

## Members

- [`set_parent`](#function-set_parent)
- [`to_display_string`](#function-to_display_string)

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

### set_parent

```rust
fn set_parent(this: &Self, parent: Option<&Ref<StyleBase>>)
```

Sets the parent style. Called when the style is added to or
removed from the children of another style; validates that the
style can be nested in `parent`.

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

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

### to_display_string

```rust
fn to_display_string(this: &Self) -> String
```

A string describing the style: its selector, target type or
query.

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

## Trait implementations

- [`StyleBaseImpl`](/docs/0.5.0/api/ferroui-base/styling/trait-stylebaseimpl/)

## Availability

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