pub enum PropertyViewModelRef {
Ferro(Rc<FerroPropertyViewModel>),
Clr(Rc<ClrPropertyViewModel>),
}Expand description
The shared handle of a property view model of either class: a reference typed with the
abstract class PropertyViewModel.
Variants§
Ferro(Rc<FerroPropertyViewModel>)
Clr(Rc<ClrPropertyViewModel>)
Implementations§
Source§impl PropertyViewModelRef
impl PropertyViewModelRef
pub fn key(&self) -> PropertyViewModelKey
pub fn name(&self) -> String
pub fn group(&self) -> String
pub fn assigned_type(&self) -> ValueType
pub fn declaring_type(&self) -> Option<ValueType>
pub fn value(&self) -> Option<BoxedValue>
pub fn set_value(&self, value: Option<BoxedValue>)
pub fn priority(&self) -> String
pub fn is_attached(&self) -> Option<bool>
pub fn update(&self)
pub fn property_type(&self) -> ValueType
pub fn is_readonly(&self) -> bool
Sourcepub fn type_(&self) -> String
pub fn type_(&self) -> String
The text of the type of the property, followed by the type of its value in braces when the two differ.
pub fn set_is_pinned(&self, value: bool)
Sourcepub fn full_name(&self) -> String
pub fn full_name(&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.
Sourcepub fn boxed(&self) -> BoxedValue
pub fn boxed(&self) -> BoxedValue
The view model as a value of its class (the source of the bindings of an editor).
Sourcepub fn from_boxed(value: &BoxedValue) -> Option<Self>
pub fn from_boxed(value: &BoxedValue) -> Option<Self>
The view model of an untyped value of one of the classes (DataContext as PropertyViewModel).
Sourcepub fn as_ferro(&self) -> Option<&Rc<FerroPropertyViewModel>>
pub fn as_ferro(&self) -> Option<&Rc<FerroPropertyViewModel>>
as FerroPropertyViewModel.
Sourcepub fn as_clr(&self) -> Option<&Rc<ClrPropertyViewModel>>
pub fn as_clr(&self) -> Option<&Rc<ClrPropertyViewModel>>
as ClrPropertyViewModel.
Methods from Deref<Target = PropertyViewModel>§
Sourcepub fn view_model_base(&self) -> &ViewModelBase
pub fn view_model_base(&self) -> &ViewModelBase
The base class of the view models (RaiseAndSetIfChanged, RaisePropertyChanged).
pub fn is_pinned(&self) -> bool
Sourcepub fn raise_property_changed(&self, property_name: &str)
pub fn raise_property_changed(&self, property_name: &str)
RaisePropertyChanged, for the deriving classes.
Trait Implementations§
Source§impl Clone for PropertyViewModelRef
impl Clone for PropertyViewModelRef
Source§impl Debug for PropertyViewModelRef
The kind and the name of the property.
impl Debug for PropertyViewModelRef
The kind and the name of the property.
Source§impl Deref for PropertyViewModelRef
impl Deref for PropertyViewModelRef
Source§type Target = PropertyViewModel
type Target = PropertyViewModel
Source§fn deref(&self) -> &PropertyViewModel
fn deref(&self) -> &PropertyViewModel
Source§impl INotifyPropertyChanged for PropertyViewModelRef
impl INotifyPropertyChanged for PropertyViewModelRef
Source§fn property_changed(&self) -> &Event<str>
fn property_changed(&self) -> &Event<str>
Source§fn as_notify_property_changing(&self) -> Option<&dyn INotifyPropertyChanging>
fn as_notify_property_changing(&self) -> Option<&dyn INotifyPropertyChanging>
INotifyPropertyChanging, when it also raises the event of a property
that is about to change; None by default. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for PropertyViewModelRef
impl !Send for PropertyViewModelRef
impl !Sync for PropertyViewModelRef
impl !UnwindSafe for PropertyViewModelRef
impl Freeze for PropertyViewModelRef
impl Unpin for PropertyViewModelRef
impl UnsafeUnpin for PropertyViewModelRef
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more