pub struct InputMethodEditorProxy { /* private fields */ }
Implementations§
source§impl InputMethodEditorProxy
impl InputMethodEditorProxy
sourcepub fn take_event_stream(&self) -> InputMethodEditorEventStream
pub fn take_event_stream(&self) -> InputMethodEditorEventStream
Get a Stream of events from the remote end of the InputMethodEditor protocol
Panics
Panics if the event stream was already taken.
pub fn set_keyboard_type( &self, keyboard_type: KeyboardType ) -> Result<(), Error>
pub fn set_state(&self, state: &mut TextInputState) -> Result<(), Error>
pub fn inject_input(&self, event: &mut InputEvent) -> Result<(), Error>
pub fn dispatch_key3(&self, event: KeyEvent) -> QueryResponseFut<bool>
pub fn show(&self) -> Result<(), Error>
pub fn hide(&self) -> Result<(), Error>
Trait Implementations§
source§impl Clone for InputMethodEditorProxy
impl Clone for InputMethodEditorProxy
source§fn clone(&self) -> InputMethodEditorProxy
fn clone(&self) -> InputMethodEditorProxy
Returns a copy of the value. Read more
1.0.0 · 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 InputMethodEditorProxy
impl Debug for InputMethodEditorProxy
source§impl InputMethodEditorProxyInterface for InputMethodEditorProxy
impl InputMethodEditorProxyInterface for InputMethodEditorProxy
fn set_keyboard_type(&self, keyboard_type: KeyboardType) -> Result<(), Error>
fn set_state(&self, state: &mut TextInputState) -> Result<(), Error>
fn inject_input(&self, event: &mut InputEvent) -> Result<(), Error>
type DispatchKey3ResponseFut = QueryResponseFut<bool>
fn dispatch_key3(&self, event: KeyEvent) -> Self::DispatchKey3ResponseFut
fn show(&self) -> Result<(), Error>
fn hide(&self) -> Result<(), Error>
source§impl Proxy for InputMethodEditorProxy
impl Proxy for InputMethodEditorProxy
§type Protocol = InputMethodEditorMarker
type Protocol = InputMethodEditorMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more