pub struct ImeCommitPayload {
pub window_id_owner: TeksiloWindowId,
pub text: String,
pub origin: ImeOrigin,
pub replacement: Option<Range<usize>>,
}Expand description
Text the platform’s input system committed into a window outside what
winit reports, posted through the window’s
AppEventPoster::post_external. teksilo-app delivers it to the
window’s focused widget as a
WidgetEvent::ImeCommit with the
same fields; a payload for a window that has closed since is dropped.
Fields§
§window_id_owner: TeksiloWindowIdThe window whose native surface received the text.
text: StringThe committed text.
origin: ImeOriginWhich part of the input system committed it.
replacement: Option<Range<usize>>The range of the focused field’s text it replaces, in that field’s
character offsets, when the input system named one. None replaces
the selection, or inserts at the caret.
Trait Implementations§
Source§impl Clone for ImeCommitPayload
impl Clone for ImeCommitPayload
Source§impl Debug for ImeCommitPayload
impl Debug for ImeCommitPayload
impl Eq for ImeCommitPayload
Source§impl PartialEq for ImeCommitPayload
impl PartialEq for ImeCommitPayload
impl StructuralPartialEq for ImeCommitPayload
Auto Trait Implementations§
impl Freeze for ImeCommitPayload
impl RefUnwindSafe for ImeCommitPayload
impl Send for ImeCommitPayload
impl Sync for ImeCommitPayload
impl Unpin for ImeCommitPayload
impl UnsafeUnpin for ImeCommitPayload
impl UnwindSafe for ImeCommitPayload
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.