pub struct PropertyViewModel { /* private fields */ }Expand description
The state of the abstract class PropertyViewModel: the base of the view models of the
properties of an object, and whether the property is pinned.
Implementations§
Source§impl PropertyViewModel
impl 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 INotifyPropertyChanged for PropertyViewModel
impl INotifyPropertyChanged for PropertyViewModel
Source§fn property_changed(&self) -> &Event<str>
fn property_changed(&self) -> &Event<str>
The event raised when a property value changes.
Source§fn as_notify_property_changing(&self) -> Option<&dyn INotifyPropertyChanging>
fn as_notify_property_changing(&self) -> Option<&dyn INotifyPropertyChanging>
The object as
INotifyPropertyChanging, when it also raises the event of a property
that is about to change; None by default. Read moreAuto Trait Implementations§
impl !Freeze for PropertyViewModel
impl !RefUnwindSafe for PropertyViewModel
impl !Send for PropertyViewModel
impl !Sync for PropertyViewModel
impl !UnwindSafe for PropertyViewModel
impl Unpin for PropertyViewModel
impl UnsafeUnpin for PropertyViewModel
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more