FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IPropertyAccessor

    trait · ferroui-base · v0.5.0

    trait IPropertyAccessor: IDisposable
    

    Defines an accessor to a property on an object returned by an IPropertyAccessorPlugin.

    View source

    Members

    property_type

    fn property_type(self: &Self) -> Option<ValueType>
    

    The type of the property, or None if the accessor is in an error state.

    Source

    value

    fn value(self: &Self) -> Option<BoxedValue>
    

    The current value of the property.

    Source

    set_value

    fn set_value(self: &Self, value: Option<&BoxedValue>, priority: BindingPriority) -> Result<bool, BindingError>
    

    Sets the property value. Returns Ok(false) if the property cannot be written; an Err is the equivalent of the setter throwing.

    Source

    subscribe

    fn subscribe(self: &Self, listener: AccessorListener)
    

    Subscribes to the value of the member. The listener is invoked with the current value and with each new value.

    Source

    unsubscribe

    fn unsubscribe(self: &Self)
    

    Stops the subscription.

    Source

    Trait implementations

    Availability

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