pub enum SetterViewModelRef {
Setter(Rc<SetterViewModel>),
Binding(Rc<BindingSetterViewModel>),
Resource(Rc<ResourceSetterViewModel>),
}Expand description
The shared handle of a setter view model of any of the classes SetterViewModel,
BindingSetterViewModel and ResourceSetterViewModel: a reference typed with the base
class. It dereferences to the base class and dispatches the virtual member.
Variants§
Setter(Rc<SetterViewModel>)
Binding(Rc<BindingSetterViewModel>)
Resource(Rc<ResourceSetterViewModel>)
Implementations§
Source§impl SetterViewModelRef
impl SetterViewModelRef
Sourcepub fn copy_value(&self)
pub fn copy_value(&self)
The virtual CopyValue.
Sourcepub fn boxed(&self) -> BoxedValue
pub fn boxed(&self) -> BoxedValue
The setter as an untyped value of its class (what a list of the setters holds for the data templates that choose by the class).
Sourcepub fn from_boxed(value: &BoxedValue) -> Option<Self>
pub fn from_boxed(value: &BoxedValue) -> Option<Self>
The setter of an untyped value of one of the classes (DataContext as SetterViewModel).
Methods from Deref<Target = SetterViewModel>§
pub fn property(&self) -> &'static FerroProperty
pub fn name(&self) -> String
pub fn value(&self) -> Option<BoxedValue>
pub fn is_active(&self) -> bool
pub fn set_is_active(&self, value: bool)
pub fn is_visible(&self) -> bool
pub fn set_is_visible(&self, value: bool)
Sourcepub fn copy_value(&self)
pub fn copy_value(&self)
CopyValue of this class (the virtual member dispatches through SetterViewModelRef):
copies the text of the value.
pub fn copy_property_name(&self)
Sourcepub fn copy_to_clipboard(&self, value: &str)
pub fn copy_to_clipboard(&self, value: &str)
CopyToClipboard: starts setting the text of the clipboard, without waiting for it (the
managed original discards the task).
Trait Implementations§
Source§impl Clone for SetterViewModelRef
impl Clone for SetterViewModelRef
Source§impl Deref for SetterViewModelRef
impl Deref for SetterViewModelRef
Source§type Target = SetterViewModel
type Target = SetterViewModel
The resulting type after dereferencing.
Source§fn deref(&self) -> &SetterViewModel
fn deref(&self) -> &SetterViewModel
Dereferences the value.
Auto Trait Implementations§
impl !RefUnwindSafe for SetterViewModelRef
impl !Send for SetterViewModelRef
impl !Sync for SetterViewModelRef
impl !UnwindSafe for SetterViewModelRef
impl Freeze for SetterViewModelRef
impl Unpin for SetterViewModelRef
impl UnsafeUnpin for SetterViewModelRef
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
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