Skip to main content

ITextInputMethodImpl

Trait ITextInputMethodImpl 

Source
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§

Source

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)

Sets the rectangle of the text cursor, in the coordinates of the root.

Source

fn set_options(&self, options: &TextInputOptions)

Sets the options of the text input of the current client.

Source

fn reset(&self)

Resets the state of the input method.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§