jon.recoil.org

Module Brr_io.Clipboard

Clipboard access

See the Clipboard API.

module Item : sig ... end

Clipboard items.

type t

The type for Clipboard objects.

val of_navigator : Brr.Navigator.t -> Brr_io.Clipboard.t

of_navigator n is a clipboard object for navigator n.

as_target c is c as an event target.

Reading and writing

read c is the content of c.

read_text c is the clipboard textual content of c.

write c is writes the items is to c.

val write_text : Brr_io.Clipboard.t -> Jstr.t -> unit Fut.or_error

write_text c s writes the string s to c.

val to_jv : Brr_io.Clipboard.t -> Jv.jv
val of_jv : Jv.jv -> Brr_io.Clipboard.t