# RippleWave

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

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

```rust
struct RippleWave
```

One ripple of the water ripple: a ring that spreads from its centre as it
ages and fades out (Effector's `RippleWaveState`).

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

## Members

- [`center`](#struct_field-center)
- [`age`](#struct_field-age)
- [`strength`](#struct_field-strength)
- [`LIFETIME`](#assoc_const-lifetime)
- [`INACTIVE`](#assoc_const-inactive)
- [`new`](#function-new)
- [`is_active`](#function-is_active)
- [`advance`](#function-advance)

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

### center

```rust
center: crate::Point
```

The centre, normalized to the area (0 to 1 on each axis).

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

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

### age

```rust
age: f64
```

The age, 0 (just made) to 1.25 (gone); the ring has spread over
`max-radius` of the area at an age of 1.

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

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

### strength

```rust
strength: f64
```

The strength, 0 to 1.

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

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

### LIFETIME

```rust
const LIFETIME: f64
```

The age at which a ripple is gone.

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

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

### INACTIVE

```rust
const INACTIVE: Self
```

A ripple that is not there (Effector's `RippleWaveState.Inactive`).

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

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

### new

```rust
fn new(center: Point, strength: f64) -> Self
```

A new ripple at `center` (clamped to the area) of `strength` (clamped
to 0..1).

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

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

### is_active

```rust
fn is_active(self: &Self) -> bool
```

Whether the ripple is there.

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

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

### advance

```rust
fn advance(self: Self, delta: f64) -> Self
```

The ripple aged by `delta` (an active ripple only).

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

## 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`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Default`

## Availability

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