# ExperimentalAcrylicMaterial

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/struct-experimentalacrylicmaterial/

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

```rust
struct ExperimentalAcrylicMaterial
```

An experimental acrylic-like material.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`tint_color_property`](#function-tint_color_property)
- [`background_source_property`](#function-background_source_property)
- [`tint_opacity_property`](#function-tint_opacity_property)
- [`material_opacity_property`](#function-material_opacity_property)
- [`platform_transparency_compensation_level_property`](#function-platform_transparency_compensation_level_property)
- [`fallback_color_property`](#function-fallback_color_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`invalidated`](#function-invalidated)
- [`background_source`](#function-background_source)
- [`set_background_source`](#function-set_background_source)
- [`tint_color`](#function-tint_color)
- [`set_tint_color`](#function-set_tint_color)
- [`tint_opacity`](#function-tint_opacity)
- [`set_tint_opacity`](#function-set_tint_opacity)
- [`fallback_color`](#function-fallback_color)
- [`set_fallback_color`](#function-set_fallback_color)
- [`material_opacity`](#function-material_opacity)
- [`set_material_opacity`](#function-set_material_opacity)
- [`platform_transparency_compensation_level`](#function-platform_transparency_compensation_level)
- [`set_platform_transparency_compensation_level`](#function-set_platform_transparency_compensation_level)
- [`affects_render`](#function-affects_render)
- [`raise_invalidated`](#function-raise_invalidated)
- [`to_immutable`](#function-to_immutable)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

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

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<ExperimentalAcrylicMaterial>
```

Returns a strong reference to this object.

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

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

### tint_color_property

```rust
fn tint_color_property() -> &'static StyledProperty<Color>
```

Defines the `TintColor` property.

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

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

### background_source_property

```rust
fn background_source_property() -> &'static StyledProperty<AcrylicBackgroundSource>
```

Defines the `BackgroundSource` property.

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

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

### tint_opacity_property

```rust
fn tint_opacity_property() -> &'static StyledProperty<f64>
```

Defines the `TintOpacity` property.

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

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

### material_opacity_property

```rust
fn material_opacity_property() -> &'static StyledProperty<f64>
```

Defines the `MaterialOpacity` property.

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

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

### platform_transparency_compensation_level_property

```rust
fn platform_transparency_compensation_level_property() -> &'static StyledProperty<f64>
```

Defines the `PlatformTransparencyCompensationLevel` property.

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

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

### fallback_color_property

```rust
fn fallback_color_property() -> &'static StyledProperty<Color>
```

Defines the `FallbackColor` property.

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

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

### construct

```rust
fn construct() -> Self
```

Creates the class data.

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

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

### new

```rust
fn new() -> Ref<Self>
```



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

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

### invalidated

```rust
fn invalidated(self: &Self, handler: impl Fn() -> () + 'static) -> Subscription
```

Raised when the material changes. Dropping the returned guard removes
the handler; `Subscription::detach` keeps it for the life of the
material.

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

<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/experimental_acrylic_material.rs#L121)

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

### set_background_source

```rust
fn set_background_source(self: &Self, value: AcrylicBackgroundSource)
```



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

<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/experimental_acrylic_material.rs#L130)

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

### set_tint_color

```rust
fn set_tint_color(self: &Self, value: Color)
```



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

<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/experimental_acrylic_material.rs#L139)

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

### set_tint_opacity

```rust
fn set_tint_opacity(self: &Self, value: f64)
```



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

<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/experimental_acrylic_material.rs#L148)

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

### set_fallback_color

```rust
fn set_fallback_color(self: &Self, value: Color)
```



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

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

### material_opacity

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

The opacity of the material layer.

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

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

### set_material_opacity

```rust
fn set_material_opacity(self: &Self, value: f64)
```



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

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

### platform_transparency_compensation_level

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

How much of the platform's own transparency is compensated for.

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

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

### set_platform_transparency_compensation_level

```rust
fn set_platform_transparency_compensation_level(self: &Self, value: f64)
```



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

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

### affects_render

```rust
fn affects_render<T: ObjectType + Upcast<ExperimentalAcrylicMaterial>>(properties: &[&'static FerroProperty])
```

Marks a property on a class deriving from this one as affecting the
material's visual appearance: a change raises
`invalidated`.

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

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

### raise_invalidated

```rust
fn raise_invalidated(self: &Self)
```

Raises the invalidated notification.

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

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

### to_immutable

```rust
fn to_immutable(self: &Self) -> Rc<dyn IExperimentalAcrylicMaterial>
```

Creates an immutable clone of the material.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<ExperimentalAcrylicMaterial>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)

## Availability

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