# ImmutableDropShadowEffect

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

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

```rust
struct ImmutableDropShadowEffect
```

An immutable drop shadow effect.

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

## Members

- [`new`](#function-new)
- [`offset_x`](#function-offset_x)
- [`offset_y`](#function-offset_y)
- [`blur_radius`](#function-blur_radius)
- [`color`](#function-color)
- [`opacity`](#function-opacity)

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

### new

```rust
fn new(offset_x: f64, offset_y: f64, blur_radius: f64, color: Color, opacity: f64) -> Self
```



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

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

### offset_x

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

The horizontal offset of the shadow.

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

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

### offset_y

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

The vertical offset of the shadow.

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

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

### blur_radius

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

The blur radius of the shadow.

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

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

### color

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

The color of the shadow.

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

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

### opacity

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

The opacity of the shadow.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- [`IEffect`](/docs/0.5.0/api/ferroui-base/media/effects/trait-ieffect/)
- [`IDropShadowEffect`](/docs/0.5.0/api/ferroui-base/media/effects/trait-idropshadoweffect/)
- [`IImmutableEffect`](/docs/0.5.0/api/ferroui-base/media/effects/trait-iimmutableeffect/)

## Availability

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