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.
Members
FerroClrkeynamegroupassigned_typedeclaring_typevalueset_valuepriorityis_attachedupdateproperty_typeis_readonlytype_set_is_pinnedfull_nameboxedfrom_boxedas_ferroas_clr
Ferro
Ferro(std::rc::Rc<super::FerroPropertyViewModel>)
Clr
Clr(std::rc::Rc<super::ClrPropertyViewModel>)
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
declaring_type
fn declaring_type(self: &Self) -> Option<ValueType>
value
fn value(self: &Self) -> Option<BoxedValue>
set_value
fn set_value(self: &Self, value: Option<BoxedValue>)
priority
fn priority(self: &Self) -> String
is_attached
fn is_attached(self: &Self) -> Option<bool>
update
fn update(self: &Self)
property_type
fn property_type(self: &Self) -> ValueType
is_readonly
fn is_readonly(self: &Self) -> bool
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.
set_is_pinned
fn set_is_pinned(self: &Self, value: bool)
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.
boxed
fn boxed(self: &Self) -> BoxedValue
The view model as a value of its class (the source of the bindings of an editor).
from_boxed
fn from_boxed(value: &BoxedValue) -> Option<Self>
The view model of an untyped value of one of the classes (DataContext as PropertyViewModel).
as_ferro
fn as_ferro(self: &Self) -> Option<&Rc<FerroPropertyViewModel>>
as FerroPropertyViewModel.
as_clr
fn as_clr(self: &Self) -> Option<&Rc<ClrPropertyViewModel>>
as ClrPropertyViewModel.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherTreeModelCloneDebugPartialEqDerefINotifyPropertyChanged
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.