[−][src]Struct wayland_protocols::unstable::text_input::v1::server::zwp_text_input_v1::ZwpTextInputV1
Implementations
impl ZwpTextInputV1
[src]
pub fn enter(&self, surface: &WlSurface)
[src]
enter event
Notify the text_input object when it received focus. Typically in response to an activate request.
pub fn leave(&self)
[src]
leave event
Notify the text_input object when it lost focus. Either in response to a deactivate request or when the assigned surface lost focus or was destroyed.
pub fn modifiers_map(&self, map: Vec<u8>)
[src]
modifiers map
Transfer an array of 0-terminated modifier names. The position in the array is the index of the modifier as used in the modifiers bitmask in the keysym event.
pub fn input_panel_state(&self, state: u32)
[src]
state of the input panel
Notify when the visibility state of the input panel changed.
pub fn preedit_string(&self, serial: u32, text: String, commit: String)
[src]
pre-edit
Notify when a new composing text (pre-edit) should be set around the current cursor position. Any previously set composing text should be removed.
The commit text can be used to replace the preedit text on reset (for example on unfocus).
The text input should also handle all preedit_style and preedit_cursor events occurring directly before preedit_string.
pub fn preedit_styling(&self, index: u32, length: u32, style: u32)
[src]
pre-edit styling
Sets styling information on composing text. The style is applied for length bytes from index relative to the beginning of the composing text (as byte offset). Multiple styles can be applied to a composing text by sending multiple preedit_styling events.
This event is handled as part of a following preedit_string event.
pub fn preedit_cursor(&self, index: i32)
[src]
pre-edit cursor
Sets the cursor position inside the composing text (as byte offset) relative to the start of the composing text. When index is a negative number no cursor is shown.
This event is handled as part of a following preedit_string event.
pub fn commit_string(&self, serial: u32, text: String)
[src]
commit
Notify when text should be inserted into the editor widget. The text to commit could be either just a single character after a key press or the result of some composing (pre-edit). It could also be an empty text when some text should be removed (see delete_surrounding_text) or when the input cursor should be moved (see cursor_position).
Any previously set composing text should be removed.
pub fn cursor_position(&self, index: i32, anchor: i32)
[src]
set cursor to new position
Notify when the cursor or anchor position should be modified.
This event should be handled as part of a following commit_string event.
pub fn delete_surrounding_text(&self, index: i32, length: u32)
[src]
delete surrounding text
Notify when the text around the current cursor position should be deleted.
Index is relative to the current cursor (in bytes). Length is the length of deleted text (in bytes).
This event should be handled as part of a following commit_string event.
pub fn keysym(
&self,
serial: u32,
time: u32,
sym: u32,
state: u32,
modifiers: u32
)
[src]
&self,
serial: u32,
time: u32,
sym: u32,
state: u32,
modifiers: u32
)
keysym
Notify when a key event was sent. Key events should not be used for normal text input operations, which should be done with commit_string, delete_surrounding_text, etc. The key event follows the wl_keyboard key event convention. Sym is an XKB keysym, state a wl_keyboard key_state. Modifiers are a mask for effective modifiers (where the modifier indices are set by the modifiers_map event)
pub fn language(&self, serial: u32, language: String)
[src]
language
Sets the language of the input text. The "language" argument is an RFC-3066 format language tag.
pub fn text_direction(&self, serial: u32, direction: u32)
[src]
text direction
Sets the text direction of input text.
It is mainly needed for showing an input cursor on the correct side of the editor when there is no input done yet and making sure neutral direction text is laid out properly.
Trait Implementations
impl AsRef<Resource<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<Resource<ZwpTextInputV1>> for ZwpTextInputV1
[src]
impl From<ZwpTextInputV1> for Resource<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>,