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
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more