FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FerroPropertyViewModel

    struct · ferroui-diagnostics · v0.5.0

    struct FerroPropertyViewModel
    

    The view model of a registered property of an object: its value, the priority the value has and the group the property is shown in.

    View source

    Members

    new

    fn new(o: &FerroObject, property: &'static FerroProperty) -> Rc<Self>
    

    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 FerroProperty
    

    Source

    key

    fn key(self: &Self) -> PropertyViewModelKey
    

    Source

    name

    fn name(self: &Self) -> String
    

    Source

    is_attached

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

    Source

    priority

    fn priority(self: &Self) -> String
    

    Source

    assigned_type

    fn assigned_type(self: &Self) -> ValueType
    

    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 (a local value) and reads it back. A value the property does not take is ignored (the managed original swallows the exception).

    Source

    group

    fn group(self: &Self) -> String
    

    Source

    declaring_type

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

    Source

    property_type

    fn property_type(self: &Self) -> ValueType
    

    Source

    is_readonly

    fn is_readonly(self: &Self) -> bool
    

    Source

    update

    fn update(self: &Self)
    

    Source

    Trait implementations

    Availability

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