# IExperimentalAcrylicMaterial

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/trait-iexperimentalacrylicmaterial/

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

```rust
trait IExperimentalAcrylicMaterial: 'static
```

Experimental interface for producing acrylic-like materials.

Implemented by `ImmutableExperimentalAcrylicMaterial`
and, through an adapter, by handles of [`ExperimentalAcrylicMaterial`](/docs/0.5.0/api/ferroui-base/media/struct-experimentalacrylicmaterial/).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/i_experimental_acrylic_material.rs#L13)

## Members

- [`background_source`](#function-background_source)
- [`tint_color`](#function-tint_color)
- [`tint_opacity`](#function-tint_opacity)
- [`material_color`](#function-material_color)
- [`fallback_color`](#function-fallback_color)
- [`as_any`](#function-as_any)
- [`as_object`](#function-as_object)
- [`as_mutable_material`](#function-as_mutable_material)

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

### background_source

```rust
fn background_source(self: &Self) -> AcrylicBackgroundSource
```

The background source mode.

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

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

### tint_color

```rust
fn tint_color(self: &Self) -> Color
```

The tint color of the material.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/i_experimental_acrylic_material.rs#L18)

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

### tint_opacity

```rust
fn tint_opacity(self: &Self) -> f64
```

The tint opacity of the material.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/i_experimental_acrylic_material.rs#L21)

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

### material_color

```rust
fn material_color(self: &Self) -> Color
```

The effective material color.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/i_experimental_acrylic_material.rs#L24)

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

### fallback_color

```rust
fn fallback_color(self: &Self) -> Color
```

The fallback color if acrylic is unavailable.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/i_experimental_acrylic_material.rs#L27)

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

### as_any

```rust
fn as_any(self: &Self) -> &dyn Any
```

The implementing value, for downcasts to the immutable material.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/i_experimental_acrylic_material.rs#L30)

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

### as_object

```rust
fn as_object(self: &Self) -> Option<&FerroObject>
```

The object behind the material when it is mutable.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/i_experimental_acrylic_material.rs#L33)

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

### as_mutable_material

```rust
fn as_mutable_material(self: &Self) -> Option<&dyn IMutableExperimentalAcrylicMaterial>
```

The material viewed as `IMutableExperimentalAcrylicMaterial`, when
it is one.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/i_experimental_acrylic_material.rs#L39)

## Trait implementations

- [`IExperimentalAcrylicMaterial`](/docs/0.5.0/api/ferroui-base/media/trait-iexperimentalacrylicmaterial/)

## Availability

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