[][src]Struct zwp_input_method_service::IMService

pub struct IMService<T: 'static + KeyboardVisibility + HintPurpose> { /* fields omitted */ }

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]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.