pub struct PassthroughCallback;Expand description
This is a ZST which implements InputTextCallbackHandler 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 passed 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, _data: TextCallbackData)
fn on_completion(&mut self, _data: TextCallbackData)
Called when the user presses the completion key (TAB by default). Read more
Source§fn on_history(&mut self, _direction: HistoryDirection, _data: TextCallbackData)
fn on_history(&mut self, _direction: HistoryDirection, _data: TextCallbackData)
Called when the user presses Up/Down arrow keys for history navigation. Read more
Source§fn on_always(&mut self, _data: TextCallbackData)
fn on_always(&mut self, _data: TextCallbackData)
Called every frame when the input text is active. Read more
Source§fn on_edit(&mut self, _data: TextCallbackData)
fn on_edit(&mut self, _data: TextCallbackData)
Called when the text buffer is edited. Read more
Auto Trait Implementations§
impl Freeze for PassthroughCallback
impl RefUnwindSafe for PassthroughCallback
impl Send for PassthroughCallback
impl Sync for PassthroughCallback
impl Unpin for PassthroughCallback
impl UnwindSafe for PassthroughCallback
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more