package wayland

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file wayland.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
module Unix_transport = Unix_transport
(** Send messages over a Unix-domain socket. *)

module Client = Client
(** Connect to a Wayland server and interact with the initial display object. *)

module Registry = Registry
(** A simple wrapper for the {!Wayland_client.Wl_registry} API. *)

(** [callback fn] is a simple wrapper for the {!Wayland_client.Wl_callback} API.
    It calls [fn data] when the callback's "done" signal is received.
    Wl_callback seems to be an exception to the usual Wayland versioning rules
    (a wl_callback can be created by multiple objects). *)
let callback fn = object
  inherit [_] Wayland_client.Wl_callback.v1
  method on_done ~callback_data = fn callback_data
end

module Server = Server
(** Code for writing Wayland servers. *)

module Proxy = Proxy
(** A proxy corresponds to an object on the connection. *)

module Fixed = Fixed
(** Wayland's 24.8 fixed-point type. *)

let src = Log.src
(** Control the library's log level. *)

(** {2 Generated bindings for the core Wayland protocol} *)

module Wayland_client = Wayland_client
(** Bindings for use by Wayland clients. *)

module Wayland_server = Wayland_server
(** Bindings for use by Wayland servers. *)

module Wayland_proto = Wayland_proto
(** Type metadata for use by bindings. *)

(** {2 Low-level API} *)

module Metadata = Metadata
(** Describing interfaces. *)

module Msg = Msg
(** Building and parsing messages. *)

module S = S
(** Type signatures. *)

module Iface_reg = Iface_reg
(** Registry of known interfaces. Used by the generated code. *)
OCaml

Innovation. Community. Security.