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.
Members
newto_property_view_modelpropertykeynameis_attachedpriorityassigned_typevalueset_valuegroupdeclaring_typeproperty_typeis_readonlyupdate
new
fn new(o: &FerroObject, property: &'static FerroProperty) -> Rc<Self>
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 FerroProperty
key
fn key(self: &Self) -> PropertyViewModelKey
name
fn name(self: &Self) -> String
is_attached
fn is_attached(self: &Self) -> Option<bool>
priority
fn priority(self: &Self) -> String
assigned_type
fn assigned_type(self: &Self) -> ValueType
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 (a local value) and reads it back. A value the
property does not take is ignored (the managed original swallows the exception).
group
fn group(self: &Self) -> String
declaring_type
fn declaring_type(self: &Self) -> Option<ValueType>
property_type
fn property_type(self: &Self) -> ValueType
is_readonly
fn is_readonly(self: &Self) -> bool
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.