Expand description
text input
The zwp_text_input_v2 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 pre-edit and commit events. Using this interface removes the need for applications to directly process hardware key events and compose text out of them.
Text is valid UTF-8 encoded, indices and lengths are in bytes. Indices have to always point to the first byte of an UTF-8 encoded code point. Lengths are not allowed to contain just a part of an UTF-8 encoded code point.
State is sent by the state requests (set_surrounding_text, set_content_type, set_cursor_rectangle and set_preferred_language) and an update_state request. After an enter or an input_method_change event all state information is invalidated and needs to be resent from the client. A reset or entering a new widget on client side also invalidates all current state information.
Structs§
- Content
Hint - content hint
- ZwpText
Input V2 - text input
Enums§
- Content
Purpose - content purpose
- Event
- Input
Panel Visibility - Preedit
Style - Request
- Text
Direction - Update
State - update_state flags
Constants§
- EVT_
COMMIT_ STRING_ OPCODE - The wire opcode for this event
- EVT_
COMMIT_ STRING_ SINCE - The minimal object version supporting this event
- EVT_
CONFIGURE_ SURROUNDING_ TEXT_ OPCODE - The wire opcode for this event
- EVT_
CONFIGURE_ SURROUNDING_ TEXT_ SINCE - The minimal object version supporting this event
- EVT_
CURSOR_ POSITION_ OPCODE - The wire opcode for this event
- EVT_
CURSOR_ POSITION_ SINCE - The minimal object version supporting this event
- EVT_
DELETE_ SURROUNDING_ TEXT_ OPCODE - The wire opcode for this event
- EVT_
DELETE_ SURROUNDING_ TEXT_ SINCE - The minimal object version supporting this event
- EVT_
ENTER_ OPCODE - The wire opcode for this event
- EVT_
ENTER_ SINCE - The minimal object version supporting this event
- EVT_
INPUT_ METHOD_ CHANGED_ OPCODE - The wire opcode for this event
- EVT_
INPUT_ METHOD_ CHANGED_ SINCE - The minimal object version supporting this event
- EVT_
INPUT_ PANEL_ STATE_ OPCODE - The wire opcode for this event
- EVT_
INPUT_ PANEL_ STATE_ SINCE - The minimal object version supporting this event
- EVT_
KEYSYM_ OPCODE - The wire opcode for this event
- EVT_
KEYSYM_ SINCE - The minimal object version supporting this event
- EVT_
LANGUAGE_ OPCODE - The wire opcode for this event
- EVT_
LANGUAGE_ SINCE - The minimal object version supporting this event
- EVT_
LEAVE_ OPCODE - The wire opcode for this event
- EVT_
LEAVE_ SINCE - The minimal object version supporting this event
- EVT_
MODIFIERS_ MAP_ OPCODE - The wire opcode for this event
- EVT_
MODIFIERS_ MAP_ SINCE - The minimal object version supporting this event
- EVT_
PREEDIT_ CURSOR_ OPCODE - The wire opcode for this event
- EVT_
PREEDIT_ CURSOR_ SINCE - The minimal object version supporting this event
- EVT_
PREEDIT_ STRING_ OPCODE - The wire opcode for this event
- EVT_
PREEDIT_ STRING_ SINCE - The minimal object version supporting this event
- EVT_
PREEDIT_ STYLING_ OPCODE - The wire opcode for this event
- EVT_
PREEDIT_ STYLING_ SINCE - The minimal object version supporting this event
- EVT_
TEXT_ DIRECTION_ OPCODE - The wire opcode for this event
- EVT_
TEXT_ DIRECTION_ SINCE - The minimal object version supporting this event
- REQ_
DESTROY_ OPCODE - The wire opcode for this request
- REQ_
DESTROY_ SINCE - The minimal object version supporting this request
- REQ_
DISABLE_ OPCODE - The wire opcode for this request
- REQ_
DISABLE_ SINCE - The minimal object version supporting this request
- REQ_
ENABLE_ OPCODE - The wire opcode for this request
- REQ_
ENABLE_ SINCE - The minimal object version supporting this request
- REQ_
HIDE_ INPUT_ PANEL_ OPCODE - The wire opcode for this request
- REQ_
HIDE_ INPUT_ PANEL_ SINCE - The minimal object version supporting this request
- REQ_
SET_ CONTENT_ TYPE_ OPCODE - The wire opcode for this request
- REQ_
SET_ CONTENT_ TYPE_ SINCE - The minimal object version supporting this request
- REQ_
SET_ CURSOR_ RECTANGLE_ OPCODE - The wire opcode for this request
- REQ_
SET_ CURSOR_ RECTANGLE_ SINCE - The minimal object version supporting this request
- REQ_
SET_ PREFERRED_ LANGUAGE_ OPCODE - The wire opcode for this request
- REQ_
SET_ PREFERRED_ LANGUAGE_ SINCE - The minimal object version supporting this request
- REQ_
SET_ SURROUNDING_ TEXT_ OPCODE - The wire opcode for this request
- REQ_
SET_ SURROUNDING_ TEXT_ SINCE - The minimal object version supporting this request
- REQ_
SHOW_ INPUT_ PANEL_ OPCODE - The wire opcode for this request
- REQ_
SHOW_ INPUT_ PANEL_ SINCE - The minimal object version supporting this request
- REQ_
UPDATE_ STATE_ OPCODE - The wire opcode for this request
- REQ_
UPDATE_ STATE_ SINCE - The minimal object version supporting this request