package wayland

  1. Overview
  2. Docs
Pure OCaml Wayland protocol library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

wayland-2.3.tbz
sha256=10627a94f4cef97147991528fcd246f8f27ccbf3026eafdece995b53ee9468a0
sha512=8e319dc236d04cc9084bf81782497899dca12a392d649a2ac7bd1d5edc1101ebe2bc266a033e23ab9ed46a8b692018bc47005036d10872f7825f4aa4009ab825

doc/src/wayland/fixed.ml.html

Source file fixed.ml

1
2
3
4
5
6
7
8
9
type t = int32

let of_int i = Int32.shift_left (Int32.of_int i) 8
let to_int t = Int32.to_int (Int32.shift_right t 8)

let of_bits = Fun.id
let to_bits = Fun.id

let pp f t = Fmt.pf f "%lx" t