[][src]Struct wayland_protocols::unstable::text_input::v1::client::zwp_text_input_v1::ZwpTextInputV1

pub struct ZwpTextInputV1(_);

Implementations

impl ZwpTextInputV1[src]

pub fn activate(&self, seat: &WlSeat, surface: &WlSurface)[src]

request activation

Requests the text_input object to be activated (typically when the text entry gets focus).

The seat argument is a wl_seat which maintains the focus for this activation. The surface argument is a wl_surface assigned to the text_input object and tracked for focus lost. The enter event is emitted on successful activation.

pub fn deactivate(&self, seat: &WlSeat)[src]

request deactivation

Requests the text_input object to be deactivated (typically when the text entry lost focus). The seat argument is a wl_seat which was used for activation.

pub fn show_input_panel(&self)[src]

show input panels

Requests input panels (virtual keyboard) to show.

pub fn hide_input_panel(&self)[src]

hide input panels

Requests input panels (virtual keyboard) to hide.

pub fn reset(&self)[src]

reset

Should be called by an editor widget when the input state should be reset, for example after the text was changed outside of the normal input method flow.

pub fn set_surrounding_text(&self, text: String, cursor: u32, anchor: u32)[src]

sets the surrounding text

Sets the plain surrounding text around the input position. Text is UTF-8 encoded. Cursor is the byte offset within the surrounding text. Anchor is the byte offset of the selection anchor within the surrounding text. If there is no selected text anchor, then it is the same as cursor.

pub fn set_content_type(&self, hint: u32, purpose: u32)[src]

set content purpose and hint

Sets the content purpose and content hint. While the purpose is the basic purpose of an input field, the hint flags allow to modify some of the behavior.

When no content type is explicitly set, a normal content purpose with default hints (auto completion, auto correction, auto capitalization) should be assumed.

pub fn set_cursor_rectangle(&self, x: i32, y: i32, width: i32, height: i32)[src]

pub fn set_preferred_language(&self, language: String)[src]

sets preferred language

Sets a specific language. This allows for example a virtual keyboard to show a language specific layout. The "language" argument is an RFC-3066 format language tag.

It could be used for example in a word processor to indicate the language of the currently edited document or in an instant message application which tracks languages of contacts.

pub fn commit_state(&self, serial: u32)[src]

pub fn invoke_action(&self, button: u32, index: u32)[src]

Trait Implementations

impl AsRef<Proxy<ZwpTextInputV1>> for ZwpTextInputV1[src]

impl Clone for ZwpTextInputV1[src]

impl Debug for ZwpTextInputV1[src]

impl Eq for ZwpTextInputV1[src]

impl From<Proxy<ZwpTextInputV1>> for ZwpTextInputV1[src]

impl From<ZwpTextInputV1> for Proxy<ZwpTextInputV1>[src]

impl Interface for ZwpTextInputV1[src]

type Request = Request

Set of requests associated to this interface Read more

type Event = Event

Set of events associated to this interface Read more

impl PartialEq<ZwpTextInputV1> for ZwpTextInputV1[src]

impl StructuralEq for ZwpTextInputV1[src]

impl StructuralPartialEq for ZwpTextInputV1[src]

Auto Trait Implementations

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> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

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.