FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ResourceSetterViewModel

    struct · ferroui-diagnostics · v0.5.0

    struct ResourceSetterViewModel
    

    A setter whose value is a resource: the key of the resource and the value it has for the control, with a tint and a tooltip that tell a dynamic resource from a static one.

    View source

    Members

    new

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

    Source

    key

    fn key(self: &Self) -> BoxedValue
    

    Source

    tint

    fn tint(self: &Self) -> Rc<dyn IBrush>
    

    Source

    value_type_tooltip

    fn value_type_tooltip(self: &Self) -> String
    

    Source

    copy_value

    fn copy_value(self: &Self)
    

    The CopyValue of the base class (this class does not override it).

    Source

    copy_resource_key

    fn copy_resource_key(self: &Self)
    

    Source

    Trait implementations

    Availability

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