FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DirectPropertyBase

    struct · ferroui-base · v0.5.0

    struct DirectPropertyBase<T: PropertyValue>
    

    Base class for direct properties.

    Holds everything about a direct property that does not depend on the type of its owner.

    View source

    Members

    as_property

    fn as_property(self: &'static Self) -> &'static FerroProperty
    

    The untyped base of the property.

    Source

    owner

    fn owner(self: &Self) -> &'static TypeInfo
    

    The class that registered this instance of the property.

    Source

    get_unset_value

    fn get_unset_value(self: &Self, type_: &'static TypeInfo) -> T
    

    Gets the unset value for the property on the specified type.

    Source

    get_unset_value_for

    fn get_unset_value_for(self: &Self, owner: &FerroObject) -> T
    

    Gets the unset value for the property on the type of owner.

    Source

    get_metadata

    fn get_metadata(self: &Self, type_: &'static TypeInfo) -> Rc<DirectPropertyMetadata<T>>
    

    Gets the property metadata for the specified type.

    Source

    get_metadata_for

    fn get_metadata_for(self: &Self, owner: &FerroObject) -> Rc<DirectPropertyMetadata<T>>
    

    Gets the property metadata for the type of owner.

    Source

    override_metadata

    fn override_metadata<TOwner: ObjectType>(self: &Self, metadata: DirectPropertyMetadata<T>)
    

    Overrides the metadata for the property on class TOwner.

    Source

    override_metadata_for

    fn override_metadata_for(self: &Self, type_: &'static TypeInfo, metadata: DirectPropertyMetadata<T>)
    

    Overrides the metadata for the property on the specified type.

    Source

    unregister

    fn unregister(self: &Self, type_: &'static TypeInfo)
    

    Removes the metadata registered for the specified type.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Receiver
    • Any
    • ErasedDestructor
    • IntoEither
    • Deref
    • TypedProperty

    Availability

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