package wayland
Pure OCaml Wayland protocol library
Install
Dune Dependency
Authors
Maintainers
Sources
wayland-2.1.tbz
sha256=0ffb53958954f1ed4ef874a122c071a9cf3de77ae341b963eb7b513d8028f3c1
sha512=e391b91b4161ada44339bb97b0acf40a0ef3d3c8f62a114333a61155b70288b31b5904492ebbf187bad957849ff6e1df172d014f46ffc33db7140fa833449f5c
doc/src/wayland.protocols/xdg_decoration_unstable_v1_proto.ml.html
Source file xdg_decoration_unstable_v1_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
(* 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 Zxdg_decoration_manager_v1 = struct type t = [`Zxdg_decoration_manager_v1] type _ Metadata.ty += T : [`Zxdg_decoration_manager_v1] Metadata.ty type versions = [`V1] let interface = "zxdg_decoration_manager_v1" let version = 1l let requests = function | 0 -> "destroy", [] | 1 -> "get_toplevel_decoration", ["id", `New_ID (Some "zxdg_toplevel_decoration_v1"); "toplevel", `Object (Some "xdg_toplevel")] | i -> Proxy.unknown_request i, [] let events = function | i -> Proxy.unknown_event i, [] end let () = Iface_reg.register (module Zxdg_decoration_manager_v1) module Zxdg_toplevel_decoration_v1 = struct type t = [`Zxdg_toplevel_decoration_v1] type _ Metadata.ty += T : [`Zxdg_toplevel_decoration_v1] Metadata.ty type versions = [`V1] let interface = "zxdg_toplevel_decoration_v1" let version = 1l module Error = struct type t = | Unconfigured_buffer : t | Already_constructed : t | Orphaned : t let to_int32 = function | Unconfigured_buffer -> 0l | Already_constructed -> 1l | Orphaned -> 2l let of_int32 = function | 0l -> Unconfigured_buffer | 1l -> Already_constructed | 2l -> Orphaned | x -> Fmt.failwith "Invalid error enum value %ld" x end (** Window decoration modes. These values describe window decoration modes. *) module Mode = struct type t = | Client_side : t | Server_side : t let to_int32 = function | Client_side -> 1l | Server_side -> 2l let of_int32 = function | 1l -> Client_side | 2l -> Server_side | x -> Fmt.failwith "Invalid mode enum value %ld" x end let requests = function | 0 -> "destroy", [] | 1 -> "set_mode", ["mode", `Uint] | 2 -> "unset_mode", [] | i -> Proxy.unknown_request i, [] let events = function | 0 -> "configure", ["mode", `Uint] | i -> Proxy.unknown_event i, [] end let () = Iface_reg.register (module Zxdg_toplevel_decoration_v1)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>