pub enum ImeEvent {
Enabled,
Preedit {
text: String,
active_range_chars: Option<Range<usize>>,
},
Commit(String),
DeleteSurrounding {
before_chars: usize,
after_chars: usize,
},
Disabled,
}Expand description
IME event.
Variants§
Enabled
👎Deprecated:
No longer used by egui
Notifies when the IME was enabled.
Preedit
A new IME candidate is being suggested.
An empty preedit string indicates that the IME has been dismissed, while a non-empty preedit string indicates that the IME is active.
Commit(String)
IME composition ended with this final result.
The IME is considered dismissed after this event.
DeleteSurrounding
Notifies when the text surrounding the cursor should be deleted.
before_chars and after_chars are the number of characters (not
bytes) to delete before and after the cursor, respectively.
Disabled
👎Deprecated:
No longer used by egui
Notifies when the IME was disabled.
Trait Implementations§
impl Eq for ImeEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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