# FerroObjectReactiveExtensions

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui-controls/trait-ferroobjectreactiveextensions/

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

```rust
trait FerroObjectReactiveExtensions
```

The properties of a FerroUI object as signals (`FerroObjectReactiveExtensions`): a signal
observes the property, as `FerroObjectExtensions::get_observable` does (the current value on
subscription, then each change), and sets the property to each value pushed into it.

The typed forms take a styled property; the `_untyped` forms take any registered property and
carry its values as `BoxedValue`s, which must hold the property's value type. The
`get_binding_subject` forms carry `BindingValue`s and set only the ones that hold a value.
Without a priority, values are set at `BindingPriority::LocalValue`.

Deviation (DEVIATIONS.md, ReactiveUI controls): the overloads of `GetSubject` and
`GetBindingSubject` on a property and its typed form are named by their difference
(`_untyped`, `_with_priority`), and the signal is the `ISignal` of the `Primitives` flavour,
[`FerroPropertySignal`](/docs/0.5.0/api/ferroui-reactiveui-controls/struct-ferropropertysignal/).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI.Controls/ferro_object_reactive_extensions.rs#L25)

## Members

- [`get_subject`](#function-get_subject)
- [`get_subject_with_priority`](#function-get_subject_with_priority)
- [`get_subject_untyped`](#function-get_subject_untyped)
- [`get_subject_untyped_with_priority`](#function-get_subject_untyped_with_priority)
- [`get_binding_subject`](#function-get_binding_subject)
- [`get_binding_subject_with_priority`](#function-get_binding_subject_with_priority)
- [`get_binding_subject_untyped`](#function-get_binding_subject_untyped)
- [`get_binding_subject_untyped_with_priority`](#function-get_binding_subject_untyped_with_priority)

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

### get_subject

```rust
fn get_subject<T: PropertyValue>(self: &Self, property: &'static StyledProperty<T>) -> Rc<FerroPropertySignal<T>>
```

A signal of `property` that sets it at `BindingPriority::LocalValue`
(`GetSubject<T>(FerroProperty<T>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI.Controls/ferro_object_reactive_extensions.rs#L28)

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

### get_subject_with_priority

```rust
fn get_subject_with_priority<T: PropertyValue>(self: &Self, property: &'static StyledProperty<T>, priority: BindingPriority) -> Rc<FerroPropertySignal<T>>
```

A signal of `property` that sets it at `priority`
(`GetSubject<T>(FerroProperty<T>, BindingPriority)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI.Controls/ferro_object_reactive_extensions.rs#L32)

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

### get_subject_untyped

```rust
fn get_subject_untyped(self: &Self, property: &'static FerroProperty) -> Rc<FerroPropertySignal<BoxedValue>>
```

An untyped signal of `property` that sets it at `BindingPriority::LocalValue`
(`GetSubject(FerroProperty)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI.Controls/ferro_object_reactive_extensions.rs#L40)

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

### get_subject_untyped_with_priority

```rust
fn get_subject_untyped_with_priority(self: &Self, property: &'static FerroProperty, priority: BindingPriority) -> Rc<FerroPropertySignal<BoxedValue>>
```

An untyped signal of `property` that sets it at `priority`
(`GetSubject(FerroProperty, BindingPriority)`).

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

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

### get_binding_subject

```rust
fn get_binding_subject<T: PropertyValue>(self: &Self, property: &'static StyledProperty<T>) -> Rc<FerroPropertySignal<BindingValue<T>>>
```

A signal of the binding values of `property` that sets it at `BindingPriority::LocalValue`
(`GetBindingSubject<T>(FerroProperty<T>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI.Controls/ferro_object_reactive_extensions.rs#L52)

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

### get_binding_subject_with_priority

```rust
fn get_binding_subject_with_priority<T: PropertyValue>(self: &Self, property: &'static StyledProperty<T>, priority: BindingPriority) -> Rc<FerroPropertySignal<BindingValue<T>>>
```

A signal of the binding values of `property` that sets it at `priority`
(`GetBindingSubject<T>(FerroProperty<T>, BindingPriority)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI.Controls/ferro_object_reactive_extensions.rs#L56)

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

### get_binding_subject_untyped

```rust
fn get_binding_subject_untyped(self: &Self, property: &'static FerroProperty) -> Rc<FerroPropertySignal<BindingValue<BoxedValue>>>
```

An untyped signal of the binding values of `property` that sets it at
`BindingPriority::LocalValue` (`GetBindingSubject(FerroProperty)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI.Controls/ferro_object_reactive_extensions.rs#L64)

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

### get_binding_subject_untyped_with_priority

```rust
fn get_binding_subject_untyped_with_priority(self: &Self, property: &'static FerroProperty, priority: BindingPriority) -> Rc<FerroPropertySignal<BindingValue<BoxedValue>>>
```

An untyped signal of the binding values of `property` that sets it at `priority`
(`GetBindingSubject(FerroProperty, BindingPriority)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI.Controls/ferro_object_reactive_extensions.rs#L68)

## Trait implementations

- [`FerroObjectReactiveExtensions`](/docs/0.5.0/api/ferroui-reactiveui-controls/trait-ferroobjectreactiveextensions/)

## Availability

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