OLD | NEW |
1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
2 <protocol name="stylus_unstable_v1"> | 2 <protocol name="stylus_unstable_v1"> |
3 | 3 |
4 <copyright> | 4 <copyright> |
5 Copyright 2016 The Chromium Authors. | 5 Copyright 2016 The Chromium Authors. |
6 | 6 |
7 Permission is hereby granted, free of charge, to any person obtaining a | 7 Permission is hereby granted, free of charge, to any person obtaining a |
8 copy of this software and associated documentation files (the "Software"), | 8 copy of this software and associated documentation files (the "Software"), |
9 to deal in the Software without restriction, including without limitation | 9 to deal in the Software without restriction, including without limitation |
10 the rights to use, copy, modify, merge, publish, distribute, sublicense, | 10 the rights to use, copy, modify, merge, publish, distribute, sublicense, |
11 and/or sell copies of the Software, and to permit persons to whom the | 11 and/or sell copies of the Software, and to permit persons to whom the |
12 Software is furnished to do so, subject to the following conditions: | 12 Software is furnished to do so, subject to the following conditions: |
13 | 13 |
14 The above copyright notice and this permission notice (including the next | 14 The above copyright notice and this permission notice (including the next |
15 paragraph) shall be included in all copies or substantial portions of the | 15 paragraph) shall be included in all copies or substantial portions of the |
16 Software. | 16 Software. |
17 | 17 |
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | 18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | 19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
20 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | 20 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
21 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | 21 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
22 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | 22 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
23 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 23 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
24 DEALINGS IN THE SOFTWARE. | 24 DEALINGS IN THE SOFTWARE. |
25 </copyright> | 25 </copyright> |
26 | 26 |
27 <interface name="zwp_stylus_v1" version="1"> | 27 <interface name="zcr_stylus_v1" version="1"> |
28 <description summary="extends wl_pointer with events for on-screen stylus"> | 28 <description summary="extends wl_pointer with events for on-screen stylus"> |
29 Allows a wl_pointer to represent an on-screen stylus. The client can | 29 Allows a wl_pointer to represent an on-screen stylus. The client can |
30 interpret the on-screen stylus like any other mouse device, and use | 30 interpret the on-screen stylus like any other mouse device, and use |
31 this protocol to obtain detail information about the type of stylus, | 31 this protocol to obtain detail information about the type of stylus, |
32 as well as the force and tilt of the tool. | 32 as well as the force and tilt of the tool. |
33 | 33 |
34 These events are to be fired by the server within the same frame as other | 34 These events are to be fired by the server within the same frame as other |
35 wl_pointer events. | 35 wl_pointer events. |
36 | 36 |
37 Warning! The protocol described in this file is experimental and | 37 Warning! The protocol described in this file is experimental and |
38 backward incompatible changes may be made. Backward compatible changes | 38 backward incompatible changes may be made. Backward compatible changes |
39 may be added together with the corresponding uinterface version bump. | 39 may be added together with the corresponding uinterface version bump. |
40 Backward incompatible changes are done by bumping the version number in | 40 Backward incompatible changes are done by bumping the version number in |
41 the protocol and uinterface names and resetting the interface version. | 41 the protocol and uinterface names and resetting the interface version. |
42 Once the protocol is to be declared stable, the 'z' prefix and the | 42 Once the protocol is to be declared stable, the 'z' prefix and the |
43 version number in the protocol and interface names are removed and the | 43 version number in the protocol and interface names are removed and the |
44 interface version number is reset. | 44 interface version number is reset. |
45 </description> | 45 </description> |
46 | 46 |
47 <request name="get_pointer_stylus"> | 47 <request name="get_pointer_stylus"> |
48 <description summary="get stylus interface for pointer"> | 48 <description summary="get stylus interface for pointer"> |
| 49 Create pointer_stylus object. See zcr_pointer_stylus_v1 interface for |
| 50 details. |
| 51 </description> |
| 52 <arg name="id" type="new_id" interface="zcr_pointer_stylus_v1"/> |
| 53 <arg name="pointer" type="object" interface="wl_pointer"/> |
| 54 </request> |
| 55 </interface> |
| 56 |
| 57 <interface name="zcr_pointer_stylus_v1" version="1"> |
| 58 <description summary="stylus extension for pointer"> |
| 59 The zcr_pointer_stylus_v1 interface extends the wl_pointer interface with |
| 60 events to describe details about a stylus acting as a pointer. |
| 61 </description> |
| 62 |
| 63 <request name="destroy" type="destructor"> |
| 64 <description summary="destroy stylus object"/> |
| 65 </request> |
| 66 |
| 67 <enum name="tool_type"> |
| 68 <description summary="tool type of device."/> |
| 69 <entry name="mouse" value="0" summary="Mouse or touchpad, not a stylus."/> |
| 70 <entry name="pen" value="1" summary="Pen"/> |
| 71 <entry name="touch" value="2" summary="Touch"/> |
| 72 <entry name="eraser" value="3" summary="Eraser"/> |
| 73 </enum> |
| 74 |
| 75 <event name="tool_change"> |
| 76 <description summary="pointing device tool type changed"> |
| 77 Notification that the user is using a new tool type. There can only be |
| 78 one tool in use at a time. If the pointer enters a client surface, with |
| 79 a tool type other than mouse, this event will also be generated. |
| 80 |
| 81 If this event is not received, the client has to assume a mouse is in |
| 82 use. The remaining events of this protocol are only being generated |
| 83 after this event has been fired with a tool type other than mouse. |
| 84 </description> |
| 85 <arg name="type" type="uint" enum="tool_type" summary="new device type"/> |
| 86 </event> |
| 87 |
| 88 <event name="force"> |
| 89 <description summary="force change event"> |
| 90 Notification of a change in physical force on the surface of the screen. |
| 91 |
| 92 If the pointer enters a client surface, with a tool type other than |
| 93 mouse, this event will also be generated. |
| 94 |
| 95 The force is calibrated and normalized to the 0 to 1 range. |
| 96 </description> |
| 97 <arg name="time" type="uint" summary="timestamp with millisecond granulari
ty"/> |
| 98 <arg name="force" type="fixed" summary="new value of force"/> |
| 99 </event> |
| 100 |
| 101 <event name="tilt"> |
| 102 <description summary="force change event"> |
| 103 Notification of a change in tilt of the pointing tool. |
| 104 |
| 105 If the pointer enters a client surface, with a tool type other than |
| 106 mouse, this event will also be generated. |
| 107 |
| 108 Measured from surface normal as plane angle in degrees, values lie in |
| 109 [-90,90]. A positive x is to the right and a positive y is towards the |
| 110 user. |
| 111 </description> |
| 112 <arg name="time" type="uint" summary="timestamp with millisecond granulari
ty"/> |
| 113 <arg name="tilt_x" type="fixed" summary="tilt in x direction"/> |
| 114 <arg name="tilt_y" type="fixed" summary="tilt in y direction"/> |
| 115 </event> |
| 116 </interface> |
| 117 |
| 118 <interface name="zwp_stylus_v1" version="1"> |
| 119 <description summary="DEPRECATED"> |
| 120 Allows a wl_pointer to represent an on-screen stylus. The client can |
| 121 interpret the on-screen stylus like any other mouse device, and use |
| 122 this protocol to obtain detail information about the type of stylus, |
| 123 as well as the force and tilt of the tool. |
| 124 |
| 125 These events are to be fired by the server within the same frame as other |
| 126 wl_pointer events. |
| 127 |
| 128 Warning! The protocol described in this file is experimental and |
| 129 backward incompatible changes may be made. Backward compatible changes |
| 130 may be added together with the corresponding uinterface version bump. |
| 131 Backward incompatible changes are done by bumping the version number in |
| 132 the protocol and uinterface names and resetting the interface version. |
| 133 Once the protocol is to be declared stable, the 'z' prefix and the |
| 134 version number in the protocol and interface names are removed and the |
| 135 interface version number is reset. |
| 136 </description> |
| 137 |
| 138 <request name="get_pointer_stylus"> |
| 139 <description summary="get stylus interface for pointer"> |
49 Create pointer_stylus object. See zwp_pointer_stylus_v1 interface for | 140 Create pointer_stylus object. See zwp_pointer_stylus_v1 interface for |
50 details. | 141 details. |
51 </description> | 142 </description> |
52 <arg name="id" type="new_id" interface="zwp_pointer_stylus_v1"/> | 143 <arg name="id" type="new_id" interface="zwp_pointer_stylus_v1"/> |
53 <arg name="pointer" type="object" interface="wl_pointer"/> | 144 <arg name="pointer" type="object" interface="wl_pointer"/> |
54 </request> | 145 </request> |
55 </interface> | 146 </interface> |
56 | 147 |
57 <interface name="zwp_pointer_stylus_v1" version="1"> | 148 <interface name="zwp_pointer_stylus_v1" version="1"> |
58 <description summary="stylus extension for pointer"> | 149 <description summary="DEPRECATED"> |
59 The zwp_pointer_stylus_v1 interface extends the wl_pointer interface with | 150 The zwp_pointer_stylus_v1 interface extends the wl_pointer interface with |
60 events to describe details about a stylus acting as a pointer. | 151 events to describe details about a stylus acting as a pointer. |
61 </description> | 152 </description> |
62 | 153 |
63 <request name="destroy" type="destructor"> | 154 <request name="destroy" type="destructor"> |
64 <description summary="destroy stylus object"/> | 155 <description summary="destroy stylus object"/> |
65 </request> | 156 </request> |
66 | 157 |
67 <enum name="tool_type"> | 158 <enum name="tool_type"> |
68 <description summary="tool type of device."/> | 159 <description summary="tool type of device."/> |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 Measured from surface normal as plane angle in degrees, values lie in | 199 Measured from surface normal as plane angle in degrees, values lie in |
109 [-90,90]. A positive x is to the right and a positive y is towards the | 200 [-90,90]. A positive x is to the right and a positive y is towards the |
110 user. | 201 user. |
111 </description> | 202 </description> |
112 <arg name="time" type="uint" summary="timestamp with millisecond granulari
ty"/> | 203 <arg name="time" type="uint" summary="timestamp with millisecond granulari
ty"/> |
113 <arg name="tilt_x" type="fixed" summary="tilt in x direction"/> | 204 <arg name="tilt_x" type="fixed" summary="tilt in x direction"/> |
114 <arg name="tilt_y" type="fixed" summary="tilt in y direction"/> | 205 <arg name="tilt_y" type="fixed" summary="tilt in y direction"/> |
115 </event> | 206 </event> |
116 </interface> | 207 </interface> |
117 </protocol> | 208 </protocol> |
OLD | NEW |