FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FerroPropertyAccessor

    struct · ferroui-base · v0.5.0

    struct FerroPropertyAccessor
    

    The accessor of a registered property of an object of the class hierarchy: reads and writes the property and follows its changes.

    View source

    Members

    new

    fn new(reference: Option<WeakRef<FerroObject>>, property: &'static FerroProperty) -> Rc<dyn IPropertyAccessor>
    

    Creates an accessor for property of the object behind reference. None is a reference without a target (the weak reference to null of the managed original): such an accessor has no value.

    Source

    instance

    fn instance(self: &Self) -> Option<Ref<FerroObject>>
    

    The object the accessor reads from, if it is still alive.

    Source

    Trait implementations

    Availability

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