pub struct BrowserTextInputMethod { /* private fields */ }Expand description
The text input method of a view: the hidden input element of the view stands in for the text the client edits, so that the input method of the browser has an element to compose into.
Implementations§
Source§impl BrowserTextInputMethod
impl BrowserTextInputMethod
Sourcepub fn is_composing(&self) -> bool
pub fn is_composing(&self) -> bool
Whether the input method of the browser is composing text.
Sourcepub fn on_before_input(&self, input_type: &str, start: i32, end: i32)
pub fn on_before_input(&self, input_type: &str, start: i32, end: i32)
The hidden input element is about to change: input_type is the
kind of the change and start and end the range it targets.
Sourcepub fn on_composition_start(&self)
pub fn on_composition_start(&self)
The input method of the browser started composing.
Sourcepub fn on_composition_update(&self, data: Option<&str>)
pub fn on_composition_update(&self, data: Option<&str>)
The text being composed changed.
Sourcepub fn on_composition_end(&self, data: Option<&str>)
pub fn on_composition_end(&self, data: Option<&str>)
The input method of the browser finished composing; data is the
text it committed.
Trait Implementations§
Source§impl ITextInputMethodImpl for BrowserTextInputMethod
impl ITextInputMethodImpl for BrowserTextInputMethod
Source§fn set_client(&self, client: Option<Rc<dyn TextInputMethodClient>>)
fn set_client(&self, client: Option<Rc<dyn TextInputMethodClient>>)
Sets the text editing client the input method talks to, or detaches
it from the current one.
Source§fn set_cursor_rect(&self, rect: Rect)
fn set_cursor_rect(&self, rect: Rect)
Sets the rectangle of the text cursor, in the coordinates of the
root.
Source§fn set_options(&self, _options: &TextInputOptions)
fn set_options(&self, _options: &TextInputOptions)
Sets the options of the text input of the current client.
Auto Trait Implementations§
impl !Freeze for BrowserTextInputMethod
impl !RefUnwindSafe for BrowserTextInputMethod
impl !Send for BrowserTextInputMethod
impl !Sync for BrowserTextInputMethod
impl !UnwindSafe for BrowserTextInputMethod
impl Unpin for BrowserTextInputMethod
impl UnsafeUnpin for BrowserTextInputMethod
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more