#[non_exhaustive]pub enum Event {
SurroundingText(SurroundingTextArgs),
Reset,
ContentType(ContentTypeArgs),
InvokeAction(InvokeActionArgs),
CommitState(u32),
PreferredLanguage(CString),
}Available on crate feature
input-method-unstable-v1 only.Expand description
The event enum for ZwpInputMethodContextV1
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SurroundingText(SurroundingTextArgs)
surrounding text event
The plain surrounding text around the input position. Cursor is the position in bytes within the surrounding text relative to the beginning of the text. Anchor is the position in bytes of the selection anchor within the surrounding text relative to the beginning of the text. If there is no selected text then anchor is the same as cursor.
Since version 1.
Reset
Since version 1.
ContentType(ContentTypeArgs)
Since version 1.
InvokeAction(InvokeActionArgs)
Since version 1.
CommitState(u32)
Since version 1.
PreferredLanguage(CString)
Since version 1.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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