Skip to main content

Module number_input

Module number_input 

Source
Expand description

NumberInput — a numeric field flanked by / + stepper buttons.

Wraps a single-line egui::TextEdit in the same themed frame as Input, keeps an internal text buffer so partial edits (e.g. "1.") don’t fight the bound value, and clamps to [min, max]. Edits the bound f64; the returned Response reports .changed() whenever the value changes.

ui.add(sc::NumberInput::new(&mut qty).range(0.0..=99.0).step(1.0));

Structs§

NumberInput