pub trait ITextInputMethodImpl {
// Required methods
fn set_client(&self, client: Option<Rc<dyn TextInputMethodClient>>);
fn set_cursor_rect(&self, rect: Rect);
fn set_options(&self, options: &TextInputOptions);
fn reset(&self);
}Expand description
The input method of the platform, as seen by an input root.
This contract is not stable: it follows the needs of the platform backends.
Required Methods§
Sourcefn 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.
Sourcefn 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.
Sourcefn set_options(&self, options: &TextInputOptions)
fn set_options(&self, options: &TextInputOptions)
Sets the options of the text input of the current client.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".