pub struct InputContextProxy<'p>(/* private fields */);Implementations§
Source§impl<'p> InputContextProxy<'p>
impl<'p> InputContextProxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<InputContextProxy<'p>>
pub async fn new(conn: &Connection) -> Result<InputContextProxy<'p>>
Creates a new proxy with the default service and path.
Sourcepub fn builder(conn: &Connection) -> Builder<'p, Self>
pub fn builder(conn: &Connection) -> Builder<'p, Self>
Returns a customizable builder for this proxy.
Sourcepub fn into_inner(self) -> Proxy<'p>
pub fn into_inner(self) -> Proxy<'p>
Consumes self, returning the underlying zbus::Proxy.
Sourcepub fn inner_mut(&mut self) -> &mut Proxy<'p>
pub fn inner_mut(&mut self) -> &mut Proxy<'p>
The mutable reference to the underlying zbus::Proxy.
Sourcepub async fn destroy_ic(&self) -> Result<()>
pub async fn destroy_ic(&self) -> Result<()>
DestroyIC method
Sourcepub async fn hide_virtual_keyboard(&self) -> Result<()>
pub async fn hide_virtual_keyboard(&self) -> Result<()>
HideVirtualKeyboard method
Sourcepub async fn is_virtual_keyboard_visible(&self) -> Result<bool>
pub async fn is_virtual_keyboard_visible(&self) -> Result<bool>
IsVirtualKeyboardVisible method
Sourcepub async fn process_key_event(
&self,
key_val: KeyVal,
key_code: u32,
key_state: KeyState,
is_release: bool,
time: u32,
) -> Result<bool>
pub async fn process_key_event( &self, key_val: KeyVal, key_code: u32, key_state: KeyState, is_release: bool, time: u32, ) -> Result<bool>
ProcessKeyEvent method
Sourcepub async fn process_key_event_batch(
&self,
key_val: u32,
key_code: u32,
key_state: u32,
is_release: bool,
time: u32,
) -> Result<(Vec<(u32, OwnedValue)>, bool)>
pub async fn process_key_event_batch( &self, key_val: u32, key_code: u32, key_state: u32, is_release: bool, time: u32, ) -> Result<(Vec<(u32, OwnedValue)>, bool)>
ProcessKeyEventBatch method
Sourcepub async fn select_candidate(&self, idx: i32) -> Result<()>
pub async fn select_candidate(&self, idx: i32) -> Result<()>
SelectCandidate method
Sourcepub async fn set_capability(&self, cap: CapabilityFlag) -> Result<()>
pub async fn set_capability(&self, cap: CapabilityFlag) -> Result<()>
SetCapability method
Sourcepub async fn set_cursor_rect(
&self,
x: i32,
y: i32,
w: i32,
h: i32,
) -> Result<()>
pub async fn set_cursor_rect( &self, x: i32, y: i32, w: i32, h: i32, ) -> Result<()>
SetCursorRect method
Sourcepub async fn set_cursor_rect_v2(
&self,
x: i32,
y: i32,
w: i32,
h: i32,
scale: i32,
) -> Result<()>
pub async fn set_cursor_rect_v2( &self, x: i32, y: i32, w: i32, h: i32, scale: i32, ) -> Result<()>
SetCursorRectV2 method
Sourcepub async fn set_supported_capability(&self, cap: CapabilityFlag) -> Result<()>
pub async fn set_supported_capability(&self, cap: CapabilityFlag) -> Result<()>
SetSupportedCapability method
Sourcepub async fn set_surrounding_text(
&self,
text: &str,
cursor: u32,
anchor: u32,
) -> Result<()>
pub async fn set_surrounding_text( &self, text: &str, cursor: u32, anchor: u32, ) -> Result<()>
SetSurroundingText method
Sourcepub async fn set_surrounding_text_position(
&self,
cursor: u32,
anchor: u32,
) -> Result<()>
pub async fn set_surrounding_text_position( &self, cursor: u32, anchor: u32, ) -> Result<()>
SetSurroundingTextPosition method
Sourcepub async fn show_virtual_keyboard(&self) -> Result<()>
pub async fn show_virtual_keyboard(&self) -> Result<()>
ShowVirtualKeyboard method
Sourcepub async fn receive_commit_string(&self) -> Result<CommitStringStream>
pub async fn receive_commit_string(&self) -> Result<CommitStringStream>
Create a stream that receives CommitString signals.
This a convenient wrapper around zbus::Proxy::receive_signal.
CommitString signal
Sourcepub async fn receive_commit_string_with_args(
&self,
args: &[(u8, &str)],
) -> Result<CommitStringStream>
pub async fn receive_commit_string_with_args( &self, args: &[(u8, &str)], ) -> Result<CommitStringStream>
Create a stream that receives CommitString signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args.
CommitString signal
Sourcepub async fn receive_current_im(&self) -> Result<CurrentIMStream>
pub async fn receive_current_im(&self) -> Result<CurrentIMStream>
Create a stream that receives CurrentIM signals.
This a convenient wrapper around zbus::Proxy::receive_signal.
CurrentIM signal
Sourcepub async fn receive_current_im_with_args(
&self,
args: &[(u8, &str)],
) -> Result<CurrentIMStream>
pub async fn receive_current_im_with_args( &self, args: &[(u8, &str)], ) -> Result<CurrentIMStream>
Create a stream that receives CurrentIM signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args.
CurrentIM signal
Sourcepub async fn receive_delete_surrounding_text(
&self,
) -> Result<DeleteSurroundingTextStream>
pub async fn receive_delete_surrounding_text( &self, ) -> Result<DeleteSurroundingTextStream>
Create a stream that receives DeleteSurroundingText signals.
This a convenient wrapper around zbus::Proxy::receive_signal.
DeleteSurroundingText signal
Sourcepub async fn receive_delete_surrounding_text_with_args(
&self,
args: &[(u8, &str)],
) -> Result<DeleteSurroundingTextStream>
pub async fn receive_delete_surrounding_text_with_args( &self, args: &[(u8, &str)], ) -> Result<DeleteSurroundingTextStream>
Create a stream that receives DeleteSurroundingText signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args.
DeleteSurroundingText signal
Sourcepub async fn receive_forward_key(&self) -> Result<ForwardKeyStream>
pub async fn receive_forward_key(&self) -> Result<ForwardKeyStream>
Create a stream that receives ForwardKey signals.
This a convenient wrapper around zbus::Proxy::receive_signal.
ForwardKey signal
Sourcepub async fn receive_forward_key_with_args(
&self,
args: &[(u8, &str)],
) -> Result<ForwardKeyStream>
pub async fn receive_forward_key_with_args( &self, args: &[(u8, &str)], ) -> Result<ForwardKeyStream>
Create a stream that receives ForwardKey signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args.
ForwardKey signal
Sourcepub async fn receive_notify_focus_out(&self) -> Result<NotifyFocusOutStream>
pub async fn receive_notify_focus_out(&self) -> Result<NotifyFocusOutStream>
Create a stream that receives NotifyFocusOut signals.
This a convenient wrapper around zbus::Proxy::receive_signal.
NotifyFocusOut signal
Sourcepub async fn receive_update_client_side_ui(
&self,
) -> Result<UpdateClientSideUIStream>
pub async fn receive_update_client_side_ui( &self, ) -> Result<UpdateClientSideUIStream>
Create a stream that receives UpdateClientSideUI signals.
This a convenient wrapper around zbus::Proxy::receive_signal.
UpdateClientSideUI signal
Sourcepub async fn receive_update_client_side_ui_with_args(
&self,
args: &[(u8, &str)],
) -> Result<UpdateClientSideUIStream>
pub async fn receive_update_client_side_ui_with_args( &self, args: &[(u8, &str)], ) -> Result<UpdateClientSideUIStream>
Create a stream that receives UpdateClientSideUI signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args.
UpdateClientSideUI signal
Sourcepub async fn receive_update_formatted_preedit(
&self,
) -> Result<UpdateFormattedPreeditStream>
pub async fn receive_update_formatted_preedit( &self, ) -> Result<UpdateFormattedPreeditStream>
Create a stream that receives UpdateFormattedPreedit signals.
This a convenient wrapper around zbus::Proxy::receive_signal.
UpdateFormattedPreedit signal
Sourcepub async fn receive_update_formatted_preedit_with_args(
&self,
args: &[(u8, &str)],
) -> Result<UpdateFormattedPreeditStream>
pub async fn receive_update_formatted_preedit_with_args( &self, args: &[(u8, &str)], ) -> Result<UpdateFormattedPreeditStream>
Create a stream that receives UpdateFormattedPreedit signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args.
UpdateFormattedPreedit signal
Sourcepub async fn receive_virtual_keyboard_visibility_changed(
&self,
) -> Result<VirtualKeyboardVisibilityChangedStream>
pub async fn receive_virtual_keyboard_visibility_changed( &self, ) -> Result<VirtualKeyboardVisibilityChangedStream>
Create a stream that receives VirtualKeyboardVisibilityChanged signals.
This a convenient wrapper around zbus::Proxy::receive_signal.
VirtualKeyboardVisibilityChanged signal
Sourcepub async fn receive_virtual_keyboard_visibility_changed_with_args(
&self,
args: &[(u8, &str)],
) -> Result<VirtualKeyboardVisibilityChangedStream>
pub async fn receive_virtual_keyboard_visibility_changed_with_args( &self, args: &[(u8, &str)], ) -> Result<VirtualKeyboardVisibilityChangedStream>
Create a stream that receives VirtualKeyboardVisibilityChanged signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args.
VirtualKeyboardVisibilityChanged signal
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for InputContextProxy<'p>
impl<'p> AsMut<Proxy<'p>> for InputContextProxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for InputContextProxy<'p>
impl<'p> AsRef<Proxy<'p>> for InputContextProxy<'p>
Source§impl<'p> Clone for InputContextProxy<'p>
impl<'p> Clone for InputContextProxy<'p>
Source§fn clone(&self) -> InputContextProxy<'p>
fn clone(&self) -> InputContextProxy<'p>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more