pub enum ImeEvent {
Enabled,
Preedit {
text: String,
cursor: Option<(usize, usize)>,
},
Commit(String),
Disabled,
}Expand description
IME (input-method editor) state-machine event forwarded by window backends. The variant set mirrors winit’s Ime enum.
A typical CJK composition produces: Enabled -> Preedit("ni") -> Preedit("nih", caret) -> Preedit(composed) -> Commit(composed) -> Preedit("") -> Disabled.
Variants§
Enabled
IME activated for the focused widget.
Preedit
Preedit (composition) buffer changed.
Fields
Commit(String)
Composition finalised; text is inserted at the caret.
Disabled
IME deactivated.
Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.