pub struct InputMethodControl {
pub(crate) id: EmbedderControlId,
pub(crate) input_method_type: InputMethodType,
pub(crate) text: String,
pub(crate) insertion_point: Option<u32>,
pub(crate) position: DeviceIntRect,
pub(crate) multiline: bool,
}Expand description
Represents a request to enable the system input method interface.
Fields§
§id: EmbedderControlId§input_method_type: InputMethodType§text: String§insertion_point: Option<u32>§position: DeviceIntRect§multiline: boolImplementations§
Source§impl InputMethodControl
impl InputMethodControl
Sourcepub fn input_method_type(&self) -> InputMethodType
pub fn input_method_type(&self) -> InputMethodType
Return the type of input method that initated this request.
Sourcepub fn insertion_point(&self) -> Option<u32>
pub fn insertion_point(&self) -> Option<u32>
The current zero-based insertion point / cursor position if it is within the field or None
if it is not.
Sourcepub fn position(&self) -> DeviceIntRect
pub fn position(&self) -> DeviceIntRect
Get the area occupied by the <input> element that triggered the input method.
The embedder should use this value to position the input method interface that is shown to the user.
Auto Trait Implementations§
impl Freeze for InputMethodControl
impl RefUnwindSafe for InputMethodControl
impl Send for InputMethodControl
impl Sync for InputMethodControl
impl Unpin for InputMethodControl
impl UnwindSafe for InputMethodControl
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> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert