Enum ImeRequest
pub enum ImeRequest {
Enable(ImeEnableRequest),
Update(ImeRequestData),
Disable,
}Expand description
Request to send to IME.
Variants§
Enable(ImeEnableRequest)
Enable the IME with the ImeCapabilities and ImeRequestData as initial state. When
the ImeRequestData is not matching capabilities fully, the default values will be
used instead.
Requesting to update data matching not enabled capabilities will result in update
being ignored. The winit backend in such cases is recommended to log a warning. This
applies to both ImeRequest::Enable and ImeRequest::Update. For details on
capabilities refer to ImeCapabilities.
To update the ImeCapabilities, the IME must be disabled and then re-enabled.
Update(ImeRequestData)
Update the state of already enabled IME. Issuing this request before ImeRequest::Enable
will result in error.
Disable
Disable the IME.
The disable request can not fail.
Trait Implementations§
§impl Clone for ImeRequest
impl Clone for ImeRequest
§fn clone(&self) -> ImeRequest
fn clone(&self) -> ImeRequest
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 more§impl Debug for ImeRequest
impl Debug for ImeRequest
§impl PartialEq for ImeRequest
impl PartialEq for ImeRequest
impl StructuralPartialEq for ImeRequest
Auto Trait Implementations§
impl Freeze for ImeRequest
impl RefUnwindSafe for ImeRequest
impl Send for ImeRequest
impl Sync for ImeRequest
impl Unpin for ImeRequest
impl UnwindSafe for ImeRequest
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> 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.