FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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).

    View source

    Members

    new

    fn new(property: &'static FerroProperty, value: Option<BoxedValue>, clipboard: Option<Rc<dyn IClipboard>>) -> Rc<Self>
    

    Source

    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).

    Source

    property

    fn property(self: &Self) -> &'static FerroProperty
    

    Source

    name

    fn name(self: &Self) -> String
    

    Source

    value

    fn value(self: &Self) -> Option<BoxedValue>
    

    Source

    is_active

    fn is_active(self: &Self) -> bool
    

    Source

    set_is_active

    fn set_is_active(self: &Self, value: bool)
    

    Source

    is_visible

    fn is_visible(self: &Self) -> bool
    

    Source

    set_is_visible

    fn set_is_visible(self: &Self, value: bool)
    

    Source

    copy_value

    fn copy_value(self: &Self)
    

    CopyValue of this class (the virtual member dispatches through SetterViewModelRef): copies the text of the value.

    Source

    copy_property_name

    fn copy_property_name(self: &Self)
    

    Source

    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).

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.