Struct imgui::PassthroughCallback
source · pub struct PassthroughCallback;
Expand description
This is a Zst which implements TextCallbackHandler as a passthrough.
If you do not set a callback handler, this will be used (but will never actually run, since you will not have pass imgui any flags).
Trait Implementations§
source§impl InputTextCallbackHandler for PassthroughCallback
impl InputTextCallbackHandler for PassthroughCallback
source§fn char_filter(&mut self, c: char) -> Option<char>
fn char_filter(&mut self, c: char) -> Option<char>
Filters a char – returning a
None
means that the char is removed,
and returning another char substitutes it out. Read moresource§fn on_completion(&mut self, _: TextCallbackData)
fn on_completion(&mut self, _: TextCallbackData)
Allows one to perform autocompletion work when the Tab key has been pressed. Read more
source§fn on_edit(&mut self, _: TextCallbackData)
fn on_edit(&mut self, _: TextCallbackData)
Allows one to edit the inner buffer whenever the buffer has been changed. Read more
source§fn on_history(&mut self, _: HistoryDirection, _: TextCallbackData)
fn on_history(&mut self, _: HistoryDirection, _: TextCallbackData)
A callback when one of the direction keys have been pressed. Read more
source§fn on_always(&mut self, _: TextCallbackData)
fn on_always(&mut self, _: TextCallbackData)
A callback which will always fire, each tick. Read more