SetterViewModel
struct · ferroui-diagnostics · v0.5.0
struct SetterViewModel
A setter of a value frame: the property, the value, and whether the setter is the one that
is in effect (IsActive) and whether the filter of the setters shows it (IsVisible).
Members
newconstructpropertynamevalueis_activeset_is_activeis_visibleset_is_visiblecopy_valuecopy_property_namecopy_to_clipboard
new
fn new(property: &'static FerroProperty, value: Option<BoxedValue>, clipboard: Option<Rc<dyn IClipboard>>) -> Rc<Self>
construct
fn construct(property: &'static FerroProperty, value: Option<BoxedValue>, clipboard: Option<Rc<dyn IClipboard>>) -> Self
The state of the class, for the classes that derive from it (the constructor body runs on it before it is shared).
property
fn property(self: &Self) -> &'static FerroProperty
name
fn name(self: &Self) -> String
value
fn value(self: &Self) -> Option<BoxedValue>
is_active
fn is_active(self: &Self) -> bool
set_is_active
fn set_is_active(self: &Self, value: bool)
is_visible
fn is_visible(self: &Self) -> bool
set_is_visible
fn set_is_visible(self: &Self, value: bool)
copy_value
fn copy_value(self: &Self)
CopyValue of this class (the virtual member dispatches through SetterViewModelRef):
copies the text of the value.
copy_property_name
fn copy_property_name(self: &Self)
copy_to_clipboard
fn copy_to_clipboard(self: &Self, value: &str)
CopyToClipboard: starts setting the text of the clipboard, without waiting for it (the
managed original discards the task).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyAnyValueClassDefaultsErasedDestructorIntoEitherTreeModelPartialEqINotifyPropertyChangedMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.