[−][src]Struct wayland_protocols::unstable::text_input::v1::client::zwp_text_input_v1::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]
fn clone(&self) -> ZwpTextInputV1
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn from(value: ZwpTextInputV1) -> Self
[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
const NAME: &'static str
[src]
const VERSION: u32
[src]
fn c_interface() -> *const wl_interface
[src]
impl PartialEq<ZwpTextInputV1> for ZwpTextInputV1
[src]
fn eq(&self, other: &ZwpTextInputV1) -> bool
[src]
fn ne(&self, other: &ZwpTextInputV1) -> bool
[src]
impl StructuralEq for ZwpTextInputV1
[src]
impl StructuralPartialEq for ZwpTextInputV1
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ZwpTextInputV1
impl Send for ZwpTextInputV1
impl Sync for ZwpTextInputV1
impl Unpin for ZwpTextInputV1
impl !UnwindSafe for ZwpTextInputV1
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> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
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>,