pub enum ImeEvent {
Enabled,
Disabled,
Commit(String),
Preedit {
text: String,
cursor: Option<(usize, usize)>,
},
DeleteSurrounding {
before_bytes: usize,
after_bytes: usize,
},
}Variants§
Enabled
Disabled
Commit(String)
Preedit
cursor is a byte-indexed range in the preedit string (begin, end).
When None, the cursor should be hidden.
DeleteSurrounding
Delete text surrounding the cursor or selection.
This event does not affect the preedit string. See winit’s Ime::DeleteSurrounding docs.
Offsets are expressed in UTF-8 bytes.
Trait Implementations§
impl StructuralPartialEq for ImeEvent
Auto Trait Implementations§
impl Freeze for ImeEvent
impl RefUnwindSafe for ImeEvent
impl Send for ImeEvent
impl Sync for ImeEvent
impl Unpin for ImeEvent
impl UnsafeUnpin for ImeEvent
impl UnwindSafe for ImeEvent
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