pub trait DebouncedInput {
// Required methods
fn on_input_changed(&mut self);
fn on_debounced_execute(&mut self);
fn check_debounce(&mut self) -> bool;
}
Expand description
Trait for widgets that support debounced input
Required Methods§
Sourcefn on_input_changed(&mut self)
fn on_input_changed(&mut self)
Called when input changes but should be debounced
Sourcefn on_debounced_execute(&mut self)
fn on_debounced_execute(&mut self)
Called when the debounce timer expires and action should be taken
Sourcefn check_debounce(&mut self) -> bool
fn check_debounce(&mut self) -> bool
Check if debouncing should trigger execution