# IDropShadowEffect

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

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

```rust
trait IDropShadowEffect: IEffect
```

An effect that draws a shadow behind its content.

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

## Members

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

<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#L14)

<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#L17)

<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#L20)

<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#L23)

<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#L26)

## Trait implementations

- [`IDropShadowEffect`](/docs/0.5.0/api/ferroui-base/media/effects/trait-idropshadoweffect/)

## Availability

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