package brr

  1. Overview
  2. Docs
Browser programming toolkit for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

brr-0.0.9.tbz
sha512=45cdf73c6a23c8fc4609a32ae2196d4790e5bdba34ca0b784bff9c0b70dab233eb336f1c11dc3002451042ff4cf25b643098ad0d011f14c3d6175842113bed21

doc/brr/Brr_io/Clipboard/index.html

Module Brr_io.ClipboardSource

Clipboard access

See the Clipboard API.

Sourcemodule Item : sig ... end

Clipboard items.

Sourcetype t

The type for Clipboard objects.

Sourceval of_navigator : Brr.Navigator.t -> t

of_navigator n is a clipboard object for navigator n.

Sourceval as_target : t -> Brr.Ev.target

as_target c is c as an event target.

Reading and writing

Sourceval read : t -> Item.t list Fut.or_error

read c is the content of c.

Sourceval read_text : t -> Jstr.t Fut.or_error

read_text c is the clipboard textual content of c.

Sourceval write : t -> Item.t list -> unit Fut.or_error

write c is writes the items is to c.

Sourceval write_text : t -> Jstr.t -> unit Fut.or_error

write_text c s writes the string s to c.