FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AttachedProperty

    struct · ferroui-base · v0.5.0

    struct AttachedProperty<T: PropertyValue>
    

    An attached property: a styled property that is defined by one class and set on objects of another.

    View source

    Members

    add_owner

    fn add_owner<TOwner: ObjectType>(self: &'static Self) -> &'static Self
    

    Attaches the property as a non-attached property on class TOwner.

    Source

    add_owner_with

    fn add_owner_with<TOwner: ObjectType>(self: &'static Self, metadata: StyledPropertyMetadata<T>) -> &'static Self
    

    Attaches the property as a non-attached property on class TOwner, with metadata for that class.

    Source

    Trait implementations

    Availability

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