summaryrefslogtreecommitdiff
path: root/protocol/text.xml
blob: e73cacbf5c050a96392527cf23e3cf041644d54d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<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">
      <arg name="seat" type="object" interface="wl_seat"/>
      <arg name="surface" type="object" interface="wl_surface"/>
    </request>
    <request name="deactivate">
      <arg name="seat" type="object" interface="wl_seat"/>
    </request>
    <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"/>
    <event name="activated"/>
    <event name="deactivated"/>
  </interface>

  <interface name="text_model_factory" 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>