FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MarkupProperty

    struct · ferroui-base · v0.5.0

    struct MarkupProperty
    

    A property that is not a registered property: a plain property with a getter and/or a setter. Collections are read-only properties whose type has an Add method.

    View source

    Members

    name

    name: &'static str
    

    Source

    type_

    type_: TypeOf
    

    Source

    get

    get: Option<MarkupInvoke>
    

    Reads the property: (instance) -> value.

    Source

    set

    set: Option<MarkupInvoke>
    

    Writes the property: (instance, value).

    Source

    attributes

    attributes: &'static [MarkupAttribute]
    

    Source

    typed_path_element

    typed_path_element: Option<super::typed_path::TypedPathElement>
    

    Adds the TYPED element of this property to a compiled binding path built at run time (what CompiledBindingPathBuilder::typed_property adds in generated code), so that a binding whose path is this single property is a typed binding expression. Generated by the declaration forms from the accessors; the hook returns None (and the caller uses the untyped element) unless the instance type of the declaration is a shared reference type Rc<S> (notifying or not). None for a static property, for a property with a fallible setter and for a declaration whose instance type cannot be such a handle (a class of the object model, a struct or a contract without this:). See typed_path.

    Source

    emit_get

    emit_get: CompilerMetadata<Option<MarkupEmit>>
    

    The typed accessor functions the declaration generated for the getter and the setter (see MarkupEmit); None for an accessor that is not declared.

    Source

    emit_set

    emit_set: CompilerMetadata<Option<MarkupEmit>>
    

    Source

    value_markup

    value_markup: fn() -> Option<&'static MarkupType>
    

    The metadata of the value type of the property, when it has metadata (MarkupTyped: T, Option<T>, Rc<T> or Option<Rc<T>>). With the tables of types trimmed (without type-tables), registering a type registers the metadata of the value types of its properties, which a binding through the property finds by handle. The declaration forms generate it; || None otherwise.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy

    Availability

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