pub struct ImeRequest {
pub size: PxSize,
pub local_position: PxPosition,
pub text_state: ImeTextState,
pub options: ImeOptions,
/* private fields */
}Expand description
A request to the windowing system to open an Input Method Editor (IME). This is typically used for text input components.
Fields§
§size: PxSizeThe size of the area where the IME is requested.
local_position: PxPositionThe position of the IME anchor relative to the requesting node.
text_state: ImeTextStateThe complete text snapshot, including directional selection and composition.
options: ImeOptionsThe input purpose and return-key action.
Implementations§
Source§impl ImeRequest
impl ImeRequest
Sourcepub fn with_local_position(self, local_position: PxPosition) -> Self
pub fn with_local_position(self, local_position: PxPosition) -> Self
Sets the position of the IME anchor relative to the requesting node.
Sourcepub fn with_text_state(self, text_state: ImeTextState) -> Self
pub fn with_text_state(self, text_state: ImeTextState) -> Self
Sets the complete editable text snapshot using UTF-8 byte offsets.
Sourcepub fn with_options(self, options: ImeOptions) -> Self
pub fn with_options(self, options: ImeOptions) -> Self
Sets the input purpose and return-key action.
Trait Implementations§
Source§impl Clone for ImeRequest
impl Clone for ImeRequest
Source§fn clone(&self) -> ImeRequest
fn clone(&self) -> ImeRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ImeRequest
impl Debug for ImeRequest
Source§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 UnsafeUnpin 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
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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.§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.§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.§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.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.