pub struct TextInputMethodCommit { /* private fields */ }Expand description
The accepted input request attached to raw and routed text input. The owner
checks is_current immediately before editing, then acknowledges the real
result; an application handling the event does not imply an accepted edit.
Implementations§
Source§impl TextInputMethodCommit
impl TextInputMethodCommit
pub fn edit(&self) -> Option<&TextInputMethodEdit>
pub fn completes_composition(&self) -> bool
pub fn owner(&self) -> Option<Ref<InputElement>>
pub fn is_current(&self) -> bool
pub fn complete(&self, result: Result<bool, TextInputMethodError>)
Auto Trait Implementations§
impl !Freeze for TextInputMethodCommit
impl !RefUnwindSafe for TextInputMethodCommit
impl !Send for TextInputMethodCommit
impl !Sync for TextInputMethodCommit
impl !UnwindSafe for TextInputMethodCommit
impl Unpin for TextInputMethodCommit
impl UnsafeUnpin for TextInputMethodCommit
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more