f25602bdc0
This is necessary because all clients need a way to create text_models, but only one client at a time can be bound to the input_method global (else we don't know to whom we are supposed to send events).
53 lines
1.6 KiB
XML
53 lines
1.6 KiB
XML
<protocol name="text">
|
|
<interface name="text_model" version="1">
|
|
<request name="set_surrounding_text">
|
|
<arg name="text" type="string"/>
|
|
</request>
|
|
<request name="set_cursor_index">
|
|
<arg name="index" type="uint"/>
|
|
</request>
|
|
<request name="activate"/>
|
|
<request name="deactivate"/>
|
|
<request name="set_selected_text">
|
|
<arg name="text" type="string"/>
|
|
<arg name="index" type="int"/>
|
|
</request>
|
|
<request name="set_micro_focus">
|
|
<arg name="x" type="int"/>
|
|
<arg name="y" type="int"/>
|
|
<arg name="width" type="int"/>
|
|
<arg name="height" type="int"/>
|
|
</request>
|
|
<request name="set_preedit"/>
|
|
<request name="set_content_type"/>
|
|
|
|
<event name="commit_string">
|
|
<arg name="text" type="string"/>
|
|
<arg name="index" type="uint"/>
|
|
</event>
|
|
<event name="preedit_string">
|
|
<arg name="text" type="string"/>
|
|
<arg name="index" type="uint"/>
|
|
</event>
|
|
<event name="preedit_styling"/>
|
|
<event name="key"/>
|
|
<event name="selection_replacement"/>
|
|
<event name="direction"/>
|
|
<event name="locale"/>
|
|
</interface>
|
|
|
|
<interface name="text_model_manager" version="1">
|
|
<request name="create_text_model">
|
|
<arg name="id" type="new_id" interface="text_model"/>
|
|
<arg name="surface" type="object" interface="wl_surface"/>
|
|
</request>
|
|
</interface>
|
|
|
|
<interface name="input_method" version="1">
|
|
<request name="commit_string">
|
|
<arg name="text" type="string"/>
|
|
<arg name="index" type="uint"/>
|
|
</request>
|
|
</interface>
|
|
</protocol>
|