input_method_unstable_v1 ↗
Copyright
Copyright © 2012, 2013 Intel Corporation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- zwp_input_method_context_v1 — input method context
- zwp_input_method_v1 — input method
- zwp_input_panel_v1 — interface for implementing keyboards
- zwp_input_panel_surface_v1
input_method_unstable_v1
zwp_input_method_context_v1
- destroy
- commit_string — commit string
- preedit_string — pre-edit string
- preedit_styling — pre-edit styling
- preedit_cursor — pre-edit cursor
- delete_surrounding_text — delete text
- cursor_position — set cursor to a new position
- modifiers_map
- keysym — keysym
- grab_keyboard — grab hardware keyboard
- key — forward key event
- modifiers — forward modifiers event
- language
- text_direction
- surrounding_text — surrounding text event
- reset
- content_type
- invoke_action
- commit_state
- preferred_language
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.
input_method_unstable_v1
zwp_input_method_v1
- activate — activate event
- deactivate — deactivate event
input method
An input method object is responsible for composing text in response to input from hardware or virtual keyboards. There is one input method object per seat. On activate there is a new input method context object created which allows the input method to communicate with the text input.
input_method_unstable_v1
zwp_input_panel_v1
interface for implementing keyboards
Only one client can bind this interface at a time.
input_method_unstable_v1
zwp_input_panel_surface_v1
- position
- set_toplevel — set the surface type as a keyboard
- set_overlay_panel — set the surface type as an overlay panel