Module Brr_io.Clipboard
Clipboard access
See the Clipboard API.
module Item : sig ... endClipboard items.
The type for Clipboard objects.
of_navigator n is a clipboard object for navigator n.
val as_target : Brr_io.Clipboard.t -> Brr.Ev.targetas_target c is c as an event target.
Reading and writing
val read : Brr_io.Clipboard.t -> Brr_io.Clipboard.Item.t list Fut.or_errorread c is the content of c.
val read_text : Brr_io.Clipboard.t -> Jstr.t Fut.or_errorread_text c is the clipboard textual content of c.
val write :
Brr_io.Clipboard.t ->
Brr_io.Clipboard.Item.t list ->
unit Fut.or_errorwrite c is writes the items is to c.
val write_text : Brr_io.Clipboard.t -> Jstr.t -> unit Fut.or_errorwrite_text c s writes the string s to c.
val to_jv : Brr_io.Clipboard.t -> Jv.jvval of_jv : Jv.jv -> Brr_io.Clipboard.t