# IDirectionDropShadowEffect

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

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

```rust
trait IDirectionDropShadowEffect: IDropShadowEffect
```

A drop shadow described by a direction and a depth.

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

## Members

- [`direction`](#function-direction)
- [`shadow_depth`](#function-shadow_depth)

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

### direction

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

The direction of the shadow, in degrees.

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

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

### shadow_depth

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

The distance of the shadow from the content.

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

## Trait implementations

- [`IDirectionDropShadowEffect`](/docs/0.5.0/api/ferroui-base/media/effects/trait-idirectiondropshadoweffect/)

## Availability

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