[−][src]Struct zwp_input_method_service::IMService
Manages the pending state and the current state of the input method.
Implementations
impl<T: 'static + KeyboardVisibility + HintPurpose> IMService<T>
[src]
pub fn new(
seat: &WlSeat,
im_manager: Main<ZwpInputMethodManagerV2>,
connector: T
) -> IMService<T>
[src]
seat: &WlSeat,
im_manager: Main<ZwpInputMethodManagerV2>,
connector: T
) -> IMService<T>
Create a new IMService. The connector must implement the traits KeyboardVisibility and HintPurpose
pub fn commit_string(&self, text: String) -> Result<(), SubmitError>
[src]
Sends a 'commit_string' request to the wayland-server
INPUTS:
text -> Text that will be committed
pub fn delete_surrounding_text(
&self,
before: u32,
after: u32
) -> Result<(), SubmitError>
[src]
&self,
before: u32,
after: u32
) -> Result<(), SubmitError>
Sends a 'delete_surrounding_text' request to the wayland server
INPUTS:
before -> number of chars to delete from the surrounding_text going left from the cursor
after -> number of chars to delete from the surrounding_text going right from the cursor
pub fn commit(&self) -> Result<(), SubmitError>
[src]
Sends a 'commit' request to the wayland server
This makes the pending changes permanent
pub fn is_active(&self) -> bool
[src]
Returns if the input method is currently active
pub fn get_surrounding_text(&self) -> (String, String)
[src]
Returns a tuple of the current strings left and right of the cursor
Trait Implementations
impl<T: Clone + 'static + KeyboardVisibility + HintPurpose> Clone for IMService<T>
[src]
impl<T: Debug + 'static + KeyboardVisibility + HintPurpose> Debug for IMService<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for IMService<T>
impl<T> !Send for IMService<T>
impl<T> !Sync for IMService<T>
impl<T> Unpin for IMService<T>
impl<T> UnwindSafe for IMService<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,