pub fn time_input_widget(
ui: &mut Ui,
waves: &WaveData,
msgs: &mut Vec<Message>,
state: &mut TimeInputState,
request_focus: bool,
)Expand description
Render a time input widget in egui.
Shows a text input field and a unit selector dropdown (only enabled when no unit in input).
§Example
ⓘ
let mut time_state = TimeInputState::default();
time_input_widget(ui, "Enter time:", &mut time_state);
if let Some((value, timescale)) = time_state.to_timescale() {
println!("Time: {value} {:?}", timescale);
}