[−][src]Module wayland_raw_protocol_bindings::client::text_input_unstable_v3::zwp_text_input_v3
text input
The zwp_text_input_v3 interface represents text input and input methods associated with a seat. It provides enter/leave events to follow the text input focus for a seat.
Requests are used to enable/disable the text-input object and set state information like surrounding and selected text or the content type. The information about the entered text is sent to the text-input object via the preedit_string and commit_string events.
Text is valid UTF-8 encoded, indices and lengths are in bytes. Indices must not point to middle bytes inside a code point: they must either point to the first byte of a code point or to the end of the buffer. Lengths must be measured between two valid indices.
Focus moving throughout surfaces will result in the emission of zwp_text_input_v3.enter and zwp_text_input_v3.leave events. The focused surface must commit zwp_text_input_v3.enable and zwp_text_input_v3.disable requests as the keyboard focus moves across editable and non-editable elements of the UI. Those two requests are not expected to be paired with each other, the compositor must be able to handle consecutive series of the same request.
State is sent by the state requests (set_surrounding_text, set_content_type and set_cursor_rectangle) and a commit request. After an enter event or disable request all state information is invalidated and needs to be resent by the client.
Structs
content_hint | content hint |
Enums
change_cause | text change reason |
content_purpose | content purpose |
zwp_text_input_v3 |
Statics
zwp_text_input_v3_requests | C-representation of the messages of this interface, for interop |
zwp_text_input_v3_events | C-representation of the messages of this interface, for interop |
zwp_text_input_v3_interface | C representation of this interface, for interop |
Traits
zwp_text_input_v3_listener | An interface for handling events. |
Functions
zwp_text_input_v3_set_user_data⚠ | |
zwp_text_input_v3_get_user_data⚠ | |
zwp_text_input_v3_get_version⚠ | |
zwp_text_input_v3_add_listener⚠ | |
zwp_text_input_v3_add_rust_listener⚠ | |
zwp_text_input_v3_destroy⚠ | Destroy the wp_text_input |
zwp_text_input_v3_enable⚠ | Request text input to be enabled |
zwp_text_input_v3_disable⚠ | Disable text input on a surface |
zwp_text_input_v3_set_surrounding_text⚠ | sets the surrounding text |
zwp_text_input_v3_set_text_change_cause⚠ | indicates the cause of surrounding text change |
zwp_text_input_v3_set_content_type⚠ | set content purpose and hint |
zwp_text_input_v3_set_cursor_rectangle⚠ | set cursor position |
zwp_text_input_v3_commit⚠ | commit state |