package wayland
Pure OCaml Wayland protocol library
Install
Dune Dependency
Authors
Maintainers
Sources
wayland-2.0.tbz
sha256=8821b5ce4d6d03b81d186b7bf1cdec422d0d37d161dc7b023f8732ed8de9834b
sha512=d948ef44fefd3aed4c3a89cc2bea82e3e7ef6ef8584516645e763c2e5dbc31683c2f45fb002a1a22072ad7221972ad28f032973e9d40ae470b425c460c51ecdf
doc/wayland.protocols/Wayland_protocols/Drm_client/Wl_drm/index.html
Module Drm_client.Wl_drm
Source
Version 1
Source
val create_planar_buffer :
([< `V1 | `V2 ] as 'a) t ->
[[ `Wl_buffer ], 'a, [ `Client ]] Wayland.Proxy.Handler.t ->
name:int32 ->
width:int32 ->
height:int32 ->
format:int32 ->
offset0:int32 ->
stride0:int32 ->
offset1:int32 ->
stride1:int32 ->
offset2:int32 ->
stride2:int32 ->
([ `Wl_buffer ], 'a, [ `Client ]) Wayland.Proxy.t
Source
val create_buffer :
([< `V1 | `V2 ] as 'a) t ->
[[ `Wl_buffer ], 'a, [ `Client ]] Wayland.Proxy.Handler.t ->
name:int32 ->
width:int32 ->
height:int32 ->
stride:int32 ->
format:int32 ->
([ `Wl_buffer ], 'a, [ `Client ]) Wayland.Proxy.t
Version 2
Source
val create_prime_buffer :
([< `V2 ] as 'a) t ->
[[ `Wl_buffer ], 'a, [ `Client ]] Wayland.Proxy.Handler.t ->
name:Unix.file_descr ->
width:int32 ->
height:int32 ->
format:int32 ->
offset0:int32 ->
stride0:int32 ->
offset1:int32 ->
stride1:int32 ->
offset2:int32 ->
stride2:int32 ->
([ `Wl_buffer ], 'a, [ `Client ]) Wayland.Proxy.t
Handlers
Note: Servers will always want to use v1
.