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.
Members
newto_property_view_modelpropertydeclaring_markup_typekeynamegroupassigned_typeproperty_typeis_readonlyvalueset_valuepriorityis_attacheddeclaring_typeupdate
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).
to_property_view_model
fn to_property_view_model(self: &Rc<Self>) -> PropertyViewModelRef
The handle of the view model typed with the abstract class.
property
fn property(self: &Self) -> &'static MarkupProperty
The property (PropertyInfo Property).
declaring_markup_type
fn declaring_markup_type(self: &Self) -> &'static MarkupType
The metadata of the type that declares the property.
key
fn key(self: &Self) -> PropertyViewModelKey
name
fn name(self: &Self) -> String
group
fn group(self: &Self) -> String
assigned_type
fn assigned_type(self: &Self) -> ValueType
property_type
fn property_type(self: &Self) -> ValueType
is_readonly
fn is_readonly(self: &Self) -> bool
!Property.CanWrite.
value
fn value(self: &Self) -> Option<BoxedValue>
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).
priority
fn priority(self: &Self) -> String
is_attached
fn is_attached(self: &Self) -> Option<bool>
declaring_type
fn declaring_type(self: &Self) -> Option<ValueType>
update
fn update(self: &Self)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyAnyValueClassDefaultsErasedDestructorIntoEitherTreeModelPartialEqDerefINotifyPropertyChangedMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.