FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ClrPropertyViewModel

    struct · ferroui-diagnostics · v0.5.0

    struct ClrPropertyViewModel
    

    The view model of a plain property of an object: its value, read through the metadata of the type that declares it.

    View source

    Members

    new

    fn new(o: BoxedValue, property: &'static MarkupProperty, declaring_type: &'static MarkupType) -> Rc<Self>
    

    The view model of the property property of o, which the type declaring_type declares (the PropertyInfo of the managed original, with its DeclaringType).

    Source

    to_property_view_model

    fn to_property_view_model(self: &Rc<Self>) -> PropertyViewModelRef
    

    The handle of the view model typed with the abstract class.

    Source

    property

    fn property(self: &Self) -> &'static MarkupProperty
    

    The property (PropertyInfo Property).

    Source

    declaring_markup_type

    fn declaring_markup_type(self: &Self) -> &'static MarkupType
    

    The metadata of the type that declares the property.

    Source

    key

    fn key(self: &Self) -> PropertyViewModelKey
    

    Source

    name

    fn name(self: &Self) -> String
    

    Source

    group

    fn group(self: &Self) -> String
    

    Source

    assigned_type

    fn assigned_type(self: &Self) -> ValueType
    

    Source

    property_type

    fn property_type(self: &Self) -> ValueType
    

    Source

    is_readonly

    fn is_readonly(self: &Self) -> bool
    

    !Property.CanWrite.

    Source

    value

    fn value(self: &Self) -> Option<BoxedValue>
    

    Source

    set_value

    fn set_value(self: &Self, value: Option<BoxedValue>)
    

    Sets the property of the object to value and reads it back. A value the setter does not take is ignored (the managed original swallows the exception).

    Source

    priority

    fn priority(self: &Self) -> String
    

    Source

    is_attached

    fn is_attached(self: &Self) -> Option<bool>
    

    Source

    declaring_type

    fn declaring_type(self: &Self) -> Option<ValueType>
    

    Source

    update

    fn update(self: &Self)
    

    Source

    Trait implementations

    Availability

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