[][src]Module wayland_raw_protocol_bindings::client::input_method_unstable_v1::zwp_input_method_context_v1

input method context

Corresponds to a text input on the input method side. An input method context is created on text input activation on the input method side. It allows receiving information about the text input from the application via events. Input method contexts do not keep state after deactivation and should be destroyed after deactivation is handled.

Text is generally UTF-8 encoded, indices and lengths are in bytes.

Serials are used to synchronize the state between the text input and an input method. New serials are sent by the text input in the commit_state request and are used by the input method to indicate the known text input state in events like preedit_string, commit_string, and keysym. The text input can then ignore events from the input method which are based on an outdated state (for example after a reset).

Warning! The protocol described in this file is experimental and backward incompatible changes may be made. Backward compatible changes may be added together with the corresponding interface version bump. Backward incompatible changes are done by bumping the version number in the protocol and interface names and resetting the interface version. Once the protocol is to be declared stable, the 'z' prefix and the version number in the protocol and interface names are removed and the interface version number is reset.

Enums

zwp_input_method_context_v1

Statics

zwp_input_method_context_v1_requests

C-representation of the messages of this interface, for interop

zwp_input_method_context_v1_events

C-representation of the messages of this interface, for interop

zwp_input_method_context_v1_interface

C representation of this interface, for interop

Traits

zwp_input_method_context_v1_listener

An interface for handling events.

Functions

zwp_input_method_context_v1_set_user_data
zwp_input_method_context_v1_get_user_data
zwp_input_method_context_v1_get_version
zwp_input_method_context_v1_add_listener
zwp_input_method_context_v1_add_rust_listener
zwp_input_method_context_v1_destroy
zwp_input_method_context_v1_commit_string

commit string

zwp_input_method_context_v1_preedit_string

pre-edit string

zwp_input_method_context_v1_preedit_styling

pre-edit styling

zwp_input_method_context_v1_preedit_cursor

pre-edit cursor

zwp_input_method_context_v1_delete_surrounding_text

delete text

zwp_input_method_context_v1_cursor_position

set cursor to a new position

zwp_input_method_context_v1_modifiers_map
zwp_input_method_context_v1_keysym

keysym

zwp_input_method_context_v1_grab_keyboard

grab hardware keyboard

zwp_input_method_context_v1_key

forward key event

zwp_input_method_context_v1_modifiers

forward modifiers event

zwp_input_method_context_v1_language
zwp_input_method_context_v1_text_direction