FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PropertyViewModelRef

    enum · ferroui-diagnostics · v0.5.0

    enum PropertyViewModelRef
    

    The shared handle of a property view model of either class: a reference typed with the abstract class PropertyViewModel.

    View source

    Members

    Ferro

    Ferro(std::rc::Rc<super::FerroPropertyViewModel>)
    

    Source

    Clr

    Clr(std::rc::Rc<super::ClrPropertyViewModel>)
    

    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

    declaring_type

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

    Source

    value

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

    Source

    set_value

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

    Source

    priority

    fn priority(self: &Self) -> String
    

    Source

    is_attached

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

    Source

    update

    fn update(self: &Self)
    

    Source

    property_type

    fn property_type(self: &Self) -> ValueType
    

    Source

    is_readonly

    fn is_readonly(self: &Self) -> bool
    

    Source

    type_

    fn type_(self: &Self) -> String
    

    The text of the type of the property, followed by the type of its value in braces when the two differ.

    Source

    set_is_pinned

    fn set_is_pinned(self: &Self, value: bool)
    

    Source

    full_name

    fn full_name(self: &Self) -> String
    

    The name of the class without PropertyViewModel, a colon, the full name of the declaring type, a dot and the name: the key a pinned property is remembered by.

    Source

    boxed

    fn boxed(self: &Self) -> BoxedValue
    

    The view model as a value of its class (the source of the bindings of an editor).

    Source

    from_boxed

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

    The view model of an untyped value of one of the classes (DataContext as PropertyViewModel).

    Source

    as_ferro

    fn as_ferro(self: &Self) -> Option<&Rc<FerroPropertyViewModel>>
    

    as FerroPropertyViewModel.

    Source

    as_clr

    fn as_clr(self: &Self) -> Option<&Rc<ClrPropertyViewModel>>
    

    as ClrPropertyViewModel.

    Source

    Trait implementations

    Availability

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