# InteractiveReactiveGridEffect

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

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

```rust
struct InteractiveReactiveGridEffect
```

The reactive grid as an interactive effect class (Effector's
`ReactiveGridShaderEffect`): the halo follows the pointer over the host,
and the host captures the pointer while it is pressed. Its value is a
[`ReactiveGridShaderEffect`](/docs/0.5.0/api/ferroui-base/media/effects/library/struct-reactivegridshadereffect/).

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`new`](#function-new)
- [`with_value`](#function-with_value)
- [`value`](#function-value)
- [`set_value`](#function-set_value)
- [`update`](#function-update)

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

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

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

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<InteractiveReactiveGridEffect>
```

Returns a strong reference to this object.

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

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

### new

```rust
fn new() -> Ref<Self>
```

A new effect with the default value.

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

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

### with_value

```rust
fn with_value(value: ReactiveGridShaderEffect) -> Ref<Self>
```

A new effect with `value`.

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

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

### value

```rust
fn value(self: &Self) -> ReactiveGridShaderEffect
```

The current value of the effect: what its next snapshot is.

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

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

### set_value

```rust
fn set_value(self: &Self, value: ReactiveGridShaderEffect)
```

Replaces the value of the effect; a different value
invalidates the effect.

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

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

### update

```rust
fn update(self: &Self, f: impl FnOnce(&mut ReactiveGridShaderEffect) -> ())
```

Changes the value of the effect with `f`; a change invalidates
the effect, so its host takes a new snapshot. No borrow is
held while the effect raises `invalidated`.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<InteractiveReactiveGridEffect>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`CustomEffectClass`](/docs/0.5.0/api/ferroui-base/media/effects/trait-customeffectclass/)
- [`IEffectInputHandler`](/docs/0.5.0/api/ferroui-base/media/effects/trait-ieffectinputhandler/)

## Availability

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