FerroObjectReactiveExtensions
trait · ferroui-reactiveui-controls · v0.5.0
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 BoxedValues, which must hold the property's value type. The
get_binding_subject forms carry BindingValues 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.
Members
get_subjectget_subject_with_priorityget_subject_untypedget_subject_untyped_with_priorityget_binding_subjectget_binding_subject_with_priorityget_binding_subject_untypedget_binding_subject_untyped_with_priority
get_subject
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>)).
get_subject_with_priority
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)).
get_subject_untyped
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)).
get_subject_untyped_with_priority
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)).
get_binding_subject
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>)).
get_binding_subject_with_priority
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)).
get_binding_subject_untyped
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)).
get_binding_subject_untyped_with_priority
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)).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.