FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    InpcPropertyAccessor

    struct · ferroui-base · v0.5.0

    struct InpcPropertyAccessor
    

    A property accessor over an IPropertyInfo that listens to the owner's property change notifications.

    View source

    Members

    new

    fn new(reference: WeakValue, property: Rc<dyn IPropertyInfo>, inpc: Option<InpcLookup>) -> Rc<dyn IPropertyAccessor>
    

    Creates an accessor for property of the object behind reference. inpc views the object as a property change notifier; None for an object that raises no notifications.

    Source

    with_runtime_notifier

    fn with_runtime_notifier(reference: WeakValue, property: Rc<dyn IPropertyInfo>) -> Rc<dyn IPropertyAccessor>
    

    Creates an accessor for property of the object behind reference, whose property change notifications are looked up at run time: when the accessor subscribes, the object is asked (through the metadata its type declared, see ModelTypes) whether it raises property change notifications, as the cast to the notification interface does in the managed original.

    Source

    runtime_notifier

    fn runtime_notifier() -> InpcLookup
    

    The run-time lookup of the property change notifications of an object: through the metadata its type declared.

    Source

    find_notifier

    fn find_notifier(value: &dyn AnyValue) -> Option<&dyn INotifyPropertyChanged>
    

    The property change notifications of an object, if the metadata its type declared says it raises them. This is the one place where the accessors of the string-path bindings decide whether an owner notifies.

    Source

    for_notifying

    fn for_notifying<O: INotifyPropertyChanged + 'static>(reference: WeakValue, property: Rc<dyn IPropertyInfo>) -> Rc<dyn IPropertyAccessor>
    

    Creates an accessor for a property of owner type O, which raises property change notifications.

    Source

    Trait implementations

    Availability

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