FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PropertyNumberScrubber

    struct · ferroui-designer · v0.5.0

    struct PropertyNumberScrubber
    

    A property-name label that also scrubs a numeric value. Dragging shows a local draft; releasing commits once. Escape, pointer capture loss and reconfiguration cancel.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<PropertyNumberScrubber>
    

    Returns a strong reference to this object.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    configure

    fn configure(self: &Self, label: &str, value: f64, options: PropertyNumberOptions) -> Result<(), String>
    

    Source

    value

    fn value(self: &Self) -> f64
    

    Source

    draft_value

    fn draft_value(self: &Self) -> Option<f64>
    

    Source

    on_commit

    fn on_commit(self: &Self, callback: impl Fn(f64) -> () + 'static)
    

    Source

    Trait implementations

    Availability

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