# GlowEffect

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

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

```rust
struct GlowEffect
```

A blurred halo of a colour around the content, under it (Effector's
`GlowEffect`): the alpha of the content in the colour, its alpha times
`intensity` (clamped to 0..1), blurred by `blur-radius` (the blur radius
of the drop shadow effect), and the content over it.

`glow(color=Gold, blur-radius=12, intensity=0.9)`. The graph is a
source-over composite of a shadow of the content (`Glow.BlurAmount`,
`Glow.ShadowColor`) and the content, drawn as the drop shadow effect of
the drawing contexts with no offset.

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

## Members

- [`color`](#struct_field-color)
- [`blur_radius`](#struct_field-blur_radius)
- [`intensity`](#struct_field-intensity)
- [`halo_color`](#function-halo_color)
- [`drop_shadow`](#function-drop_shadow)

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

### color

```rust
color: crate::media::Color
```

The colour of the halo (default gold).

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

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

### blur_radius

```rust
blur_radius: f64
```

The blur radius of the halo, in device independent pixels (default
12).

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

<a id="struct_field-intensity"></a>

### intensity

```rust
intensity: f64
```

The opacity of the halo, 0 to 1 (default 0.9).

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

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

### halo_color

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

The colour of the halo: the colour with its alpha times the
intensity.

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

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

### drop_shadow

```rust
fn drop_shadow(self: &Self) -> ImmutableDropShadowEffect
```

The drop shadow effect the glow is drawn as.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`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`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Default`
- [`CustomEffect`](/docs/0.5.0/api/ferroui-base/media/effects/trait-customeffect/)

## Availability

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