package wayland
Pure OCaml Wayland protocol library
Install
dune-project
Dependency
Authors
Maintainers
Sources
wayland-2.2.tbz
sha256=0f882060a4cfe9424ed397676b8e2aaa931d84610beb29cb2ec9c355d1819625
sha512=847781a3d274da7463ad1a2e46bada3663b8dee08fa576ad787e7ba35cb0f39a3e1a0e6e9729db2f643885a35ae32ece0358c5897d31b68907cad44f1b26af31
doc/src/wayland.protocols/tablet_v2_proto.ml.html
Source file tablet_v2_proto.ml
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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363
(* This file was generated automatically by wayland-scanner-ocaml *) open struct module Proxy = Wayland.Proxy module Iface_reg = Wayland.Iface_reg module Metadata = Wayland.Metadata end module Zwp_tablet_manager_v2 = struct type t = [`Zwp_tablet_manager_v2] type _ Metadata.ty += T : [`Zwp_tablet_manager_v2] Metadata.ty type versions = [`V1] let interface = "zwp_tablet_manager_v2" let version = 1l let requests = function | 0 -> "get_tablet_seat", ["tablet_seat", `New_ID (Some "zwp_tablet_seat_v2"); "seat", `Object (Some "wl_seat")] | 1 -> "destroy", [] | i -> Proxy.unknown_request i, [] let events = function | i -> Proxy.unknown_event i, [] end let () = Iface_reg.register (module Zwp_tablet_manager_v2) module Zwp_tablet_seat_v2 = struct type t = [`Zwp_tablet_seat_v2] type _ Metadata.ty += T : [`Zwp_tablet_seat_v2] Metadata.ty type versions = [`V1] let interface = "zwp_tablet_seat_v2" let version = 1l let requests = function | 0 -> "destroy", [] | i -> Proxy.unknown_request i, [] let events = function | 0 -> "tablet_added", ["id", `New_ID (Some "zwp_tablet_v2")] | 1 -> "tool_added", ["id", `New_ID (Some "zwp_tablet_tool_v2")] | 2 -> "pad_added", ["id", `New_ID (Some "zwp_tablet_pad_v2")] | i -> Proxy.unknown_event i, [] end let () = Iface_reg.register (module Zwp_tablet_seat_v2) module Zwp_tablet_tool_v2 = struct type t = [`Zwp_tablet_tool_v2] type _ Metadata.ty += T : [`Zwp_tablet_tool_v2] Metadata.ty type versions = [`V1] let interface = "zwp_tablet_tool_v2" let version = 1l (** A physical tool type. Describes the physical type of a tool. The physical type of a tool generally defines its base usage. The mouse tool represents a mouse-shaped tool that is not a relative device but bound to the tablet's surface, providing absolute coordinates. The lens tool is a mouse-shaped tool with an attached lens to provide precision focus. *) module Type = struct type t = | Pen : t | Eraser : t | Brush : t | Pencil : t | Airbrush : t | Finger : t | Mouse : t | Lens : t let to_int32 = function | Pen -> 320l | Eraser -> 321l | Brush -> 322l | Pencil -> 323l | Airbrush -> 324l | Finger -> 325l | Mouse -> 326l | Lens -> 327l let of_int32 = function | 320l -> Pen | 321l -> Eraser | 322l -> Brush | 323l -> Pencil | 324l -> Airbrush | 325l -> Finger | 326l -> Mouse | 327l -> Lens | x -> Fmt.failwith "Invalid type enum value %ld" x end (** Capability flags for a tool. Describes extra capabilities on a tablet. Any tool must provide x and y values, extra axes are device-specific. *) module Capability = struct type t = | Tilt : t | Pressure : t | Distance : t | Rotation : t | Slider : t | Wheel : t let to_int32 = function | Tilt -> 1l | Pressure -> 2l | Distance -> 3l | Rotation -> 4l | Slider -> 5l | Wheel -> 6l let of_int32 = function | 1l -> Tilt | 2l -> Pressure | 3l -> Distance | 4l -> Rotation | 5l -> Slider | 6l -> Wheel | x -> Fmt.failwith "Invalid capability enum value %ld" x end (** Physical button state. Describes the physical state of a button that produced the button event. *) module Button_state = struct type t = | Released : t | Pressed : t let to_int32 = function | Released -> 0l | Pressed -> 1l let of_int32 = function | 0l -> Released | 1l -> Pressed | x -> Fmt.failwith "Invalid button_state enum value %ld" x end module Error = struct type t = | Role : t let to_int32 = function | Role -> 0l let of_int32 = function | 0l -> Role | x -> Fmt.failwith "Invalid error enum value %ld" x end let requests = function | 0 -> "set_cursor", ["serial", `Uint; "surface", `Object (Some "wl_surface"); "hotspot_x", `Int; "hotspot_y", `Int] | 1 -> "destroy", [] | i -> Proxy.unknown_request i, [] let events = function | 0 -> "type", ["tool_type", `Uint] | 1 -> "hardware_serial", ["hardware_serial_hi", `Uint; "hardware_serial_lo", `Uint] | 2 -> "hardware_id_wacom", ["hardware_id_hi", `Uint; "hardware_id_lo", `Uint] | 3 -> "capability", ["capability", `Uint] | 4 -> "done", [] | 5 -> "removed", [] | 6 -> "proximity_in", ["serial", `Uint; "tablet", `Object (Some "zwp_tablet_v2"); "surface", `Object (Some "wl_surface")] | 7 -> "proximity_out", [] | 8 -> "down", ["serial", `Uint] | 9 -> "up", [] | 10 -> "motion", ["x", `Fixed; "y", `Fixed] | 11 -> "pressure", ["pressure", `Uint] | 12 -> "distance", ["distance", `Uint] | 13 -> "tilt", ["tilt_x", `Fixed; "tilt_y", `Fixed] | 14 -> "rotation", ["degrees", `Fixed] | 15 -> "slider", ["position", `Int] | 16 -> "wheel", ["degrees", `Fixed; "clicks", `Int] | 17 -> "button", ["serial", `Uint; "button", `Uint; "state", `Uint] | 18 -> "frame", ["time", `Uint] | i -> Proxy.unknown_event i, [] end let () = Iface_reg.register (module Zwp_tablet_tool_v2) module Zwp_tablet_v2 = struct type t = [`Zwp_tablet_v2] type _ Metadata.ty += T : [`Zwp_tablet_v2] Metadata.ty type versions = [`V1] let interface = "zwp_tablet_v2" let version = 1l let requests = function | 0 -> "destroy", [] | i -> Proxy.unknown_request i, [] let events = function | 0 -> "name", ["name", `String] | 1 -> "id", ["vid", `Uint; "pid", `Uint] | 2 -> "path", ["path", `String] | 3 -> "done", [] | 4 -> "removed", [] | i -> Proxy.unknown_event i, [] end let () = Iface_reg.register (module Zwp_tablet_v2) module Zwp_tablet_pad_ring_v2 = struct type t = [`Zwp_tablet_pad_ring_v2] type _ Metadata.ty += T : [`Zwp_tablet_pad_ring_v2] Metadata.ty type versions = [`V1] let interface = "zwp_tablet_pad_ring_v2" let version = 1l (** Ring axis source. Describes the source types for ring events. This indicates to the client how a ring event was physically generated; a client may adjust the user interface accordingly. For example, events from a "finger" source may trigger kinetic scrolling. *) module Source = struct type t = | Finger : t let to_int32 = function | Finger -> 1l let of_int32 = function | 1l -> Finger | x -> Fmt.failwith "Invalid source enum value %ld" x end let requests = function | 0 -> "set_feedback", ["description", `String; "serial", `Uint] | 1 -> "destroy", [] | i -> Proxy.unknown_request i, [] let events = function | 0 -> "source", ["source", `Uint] | 1 -> "angle", ["degrees", `Fixed] | 2 -> "stop", [] | 3 -> "frame", ["time", `Uint] | i -> Proxy.unknown_event i, [] end let () = Iface_reg.register (module Zwp_tablet_pad_ring_v2) module Zwp_tablet_pad_strip_v2 = struct type t = [`Zwp_tablet_pad_strip_v2] type _ Metadata.ty += T : [`Zwp_tablet_pad_strip_v2] Metadata.ty type versions = [`V1] let interface = "zwp_tablet_pad_strip_v2" let version = 1l (** Strip axis source. Describes the source types for strip events. This indicates to the client how a strip event was physically generated; a client may adjust the user interface accordingly. For example, events from a "finger" source may trigger kinetic scrolling. *) module Source = struct type t = | Finger : t let to_int32 = function | Finger -> 1l let of_int32 = function | 1l -> Finger | x -> Fmt.failwith "Invalid source enum value %ld" x end let requests = function | 0 -> "set_feedback", ["description", `String; "serial", `Uint] | 1 -> "destroy", [] | i -> Proxy.unknown_request i, [] let events = function | 0 -> "source", ["source", `Uint] | 1 -> "position", ["position", `Uint] | 2 -> "stop", [] | 3 -> "frame", ["time", `Uint] | i -> Proxy.unknown_event i, [] end let () = Iface_reg.register (module Zwp_tablet_pad_strip_v2) module Zwp_tablet_pad_group_v2 = struct type t = [`Zwp_tablet_pad_group_v2] type _ Metadata.ty += T : [`Zwp_tablet_pad_group_v2] Metadata.ty type versions = [`V1] let interface = "zwp_tablet_pad_group_v2" let version = 1l let requests = function | 0 -> "destroy", [] | i -> Proxy.unknown_request i, [] let events = function | 0 -> "buttons", ["buttons", `Array] | 1 -> "ring", ["ring", `New_ID (Some "zwp_tablet_pad_ring_v2")] | 2 -> "strip", ["strip", `New_ID (Some "zwp_tablet_pad_strip_v2")] | 3 -> "modes", ["modes", `Uint] | 4 -> "done", [] | 5 -> "mode_switch", ["time", `Uint; "serial", `Uint; "mode", `Uint] | i -> Proxy.unknown_event i, [] end let () = Iface_reg.register (module Zwp_tablet_pad_group_v2) module Zwp_tablet_pad_v2 = struct type t = [`Zwp_tablet_pad_v2] type _ Metadata.ty += T : [`Zwp_tablet_pad_v2] Metadata.ty type versions = [`V1] let interface = "zwp_tablet_pad_v2" let version = 1l (** Physical button state. Describes the physical state of a button that caused the button event. *) module Button_state = struct type t = | Released : t | Pressed : t let to_int32 = function | Released -> 0l | Pressed -> 1l let of_int32 = function | 0l -> Released | 1l -> Pressed | x -> Fmt.failwith "Invalid button_state enum value %ld" x end let requests = function | 0 -> "set_feedback", ["button", `Uint; "description", `String; "serial", `Uint] | 1 -> "destroy", [] | i -> Proxy.unknown_request i, [] let events = function | 0 -> "group", ["pad_group", `New_ID (Some "zwp_tablet_pad_group_v2")] | 1 -> "path", ["path", `String] | 2 -> "buttons", ["buttons", `Uint] | 3 -> "done", [] | 4 -> "button", ["time", `Uint; "button", `Uint; "state", `Uint] | 5 -> "enter", ["serial", `Uint; "tablet", `Object (Some "zwp_tablet_v2"); "surface", `Object (Some "wl_surface")] | 6 -> "leave", ["serial", `Uint; "surface", `Object (Some "wl_surface")] | 7 -> "removed", [] | i -> Proxy.unknown_event i, [] end let () = Iface_reg.register (module Zwp_tablet_pad_v2)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>