pub enum BrowserViewMacImeEvent {
SetComposition {
text: String,
selection: Option<ImeTextRange>,
replacement: Option<ImeTextRange>,
},
CommitText {
text: String,
replacement: Option<ImeTextRange>,
relative_caret_position: i32,
},
FinishComposingText {
keep_selection: bool,
},
}Expand description
IME events emitted by BrowserViewMac.
Variants§
SetComposition
Update IME composition text and selection.
CommitText
Commit IME composition text.
FinishComposingText
Finish IME composing with optional selection retention.
Trait Implementations§
Source§impl Clone for BrowserViewMacImeEvent
impl Clone for BrowserViewMacImeEvent
Source§fn clone(&self) -> BrowserViewMacImeEvent
fn clone(&self) -> BrowserViewMacImeEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BrowserViewMacImeEvent
impl Debug for BrowserViewMacImeEvent
Source§impl PartialEq for BrowserViewMacImeEvent
impl PartialEq for BrowserViewMacImeEvent
impl Eq for BrowserViewMacImeEvent
impl StructuralPartialEq for BrowserViewMacImeEvent
Auto Trait Implementations§
impl Freeze for BrowserViewMacImeEvent
impl RefUnwindSafe for BrowserViewMacImeEvent
impl Send for BrowserViewMacImeEvent
impl Sync for BrowserViewMacImeEvent
impl Unpin for BrowserViewMacImeEvent
impl UnsafeUnpin for BrowserViewMacImeEvent
impl UnwindSafe for BrowserViewMacImeEvent
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