pub struct BasicGhostTextKeyHandler { /* private fields */ }Expand description
Basic ghost text key handler
Implementations§
Source§impl BasicGhostTextKeyHandler
impl BasicGhostTextKeyHandler
pub fn new(state_manager: Box<dyn GhostTextStateManager>) -> Self
Trait Implementations§
Source§impl GhostTextKeyHandler for BasicGhostTextKeyHandler
impl GhostTextKeyHandler for BasicGhostTextKeyHandler
Source§fn handle_tab(&mut self) -> Option<String>
fn handle_tab(&mut self) -> Option<String>
Handle Tab key press (accept ghost text)
Source§fn handle_escape(&mut self)
fn handle_escape(&mut self)
Handle Escape key press (dismiss ghost text)
Source§fn handle_character_input(&mut self, _char: char)
fn handle_character_input(&mut self, _char: char)
Handle character input (update ghost text)
Auto Trait Implementations§
impl Freeze for BasicGhostTextKeyHandler
impl !RefUnwindSafe for BasicGhostTextKeyHandler
impl Send for BasicGhostTextKeyHandler
impl Sync for BasicGhostTextKeyHandler
impl Unpin for BasicGhostTextKeyHandler
impl !UnwindSafe for BasicGhostTextKeyHandler
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