FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    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>)).

    Source

    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)).

    Source

    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)).

    Source

    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)).

    Source

    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>)).

    Source

    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)).

    Source

    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)).

    Source

    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)).

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.