# IReactiveObjectExt

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/reactive_object/trait-ireactiveobjectext/

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

```rust
trait IReactiveObjectExt: IReactiveObject
```

The extension methods of every reactive object (`IReactiveObjectExtensions`), implemented for
every `T: IReactiveObject`.

The raising of a single change, `raise_property_changing`
and `raise_property_changed`, are methods of
[`IReactiveObject`](/docs/0.5.0/api/ferroui-reactiveui/reactive_object/trait-ireactiveobject/) itself.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_object/i_reactive_object_extensions.rs#L18)

## Members

- [`raise_and_set_if_changed`](#function-raise_and_set_if_changed)
- [`raise_and_set_if_changed_cell`](#function-raise_and_set_if_changed_cell)
- [`subscribe_property_changing_events`](#function-subscribe_property_changing_events)
- [`subscribe_property_changed_events`](#function-subscribe_property_changed_events)
- [`suppress_change_notifications`](#function-suppress_change_notifications)
- [`are_change_notifications_enabled`](#function-are_change_notifications_enabled)
- [`delay_change_notifications`](#function-delay_change_notifications)
- [`are_change_notifications_delayed`](#function-are_change_notifications_delayed)

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

### raise_and_set_if_changed

```rust
fn raise_and_set_if_changed<V: PartialEq>(self: &Self, field: &impl BackingField<V>, value: V, property_name: &str) -> bool
```

The setter of a notifying property (`RaiseAndSetIfChanged`): unless `field` already holds
a value equal to `value`, raises the changing notifications of `property_name`, stores the
value, and raises the changed notifications. The field is a `RefCell`, or a `Cell` of a
`Copy` value.

Deviation (DEVIATIONS.md, ReactiveUI): it returns whether the value changed, where upstream
returns the value; the property name is given, where upstream takes the name of the caller
(`[CallerMemberName]`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_object/i_reactive_object_extensions.rs#L27)

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

### raise_and_set_if_changed_cell

```rust
fn raise_and_set_if_changed_cell<V: Copy + PartialEq>(self: &Self, field: &Cell<V>, value: V, property_name: &str) -> bool
```

`raise_and_set_if_changed` for a `Cell` field.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_object/i_reactive_object_extensions.rs#L38)

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

### subscribe_property_changing_events

```rust
fn subscribe_property_changing_events(self: &Self)
```

Makes changes raise the `PropertyChanging` event (`SubscribePropertyChangingEvents`), for
an object that implements `IReactiveObject` by hand.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_object/i_reactive_object_extensions.rs#L44)

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

### subscribe_property_changed_events

```rust
fn subscribe_property_changed_events(self: &Self)
```

Makes changes raise the `PropertyChanged` event (`SubscribePropertyChangedEvents`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_object/i_reactive_object_extensions.rs#L49)

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

### suppress_change_notifications

```rust
fn suppress_change_notifications(self: &Self) -> Rc<dyn IDisposable>
```

Stops all change notifications until the result is disposed
(`SuppressChangeNotifications`); the calls nest.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_object/i_reactive_object_extensions.rs#L55)

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

### are_change_notifications_enabled

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

Whether change notifications are sent (`AreChangeNotificationsEnabled`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_object/i_reactive_object_extensions.rs#L60)

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

### delay_change_notifications

```rust
fn delay_change_notifications(self: &Self) -> Rc<dyn IDisposable>
```

Keeps the change notifications until the result is disposed, then sends the last one of
each property (`DelayChangeNotifications`); the calls nest.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_object/i_reactive_object_extensions.rs#L66)

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

### are_change_notifications_delayed

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

Whether change notifications are delayed (`AreChangeNotificationsDelayed`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_object/i_reactive_object_extensions.rs#L71)

## Trait implementations

- [`IReactiveObjectExt`](/docs/0.5.0/api/ferroui-reactiveui/reactive_object/trait-ireactiveobjectext/)

## Availability

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