package brr

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

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.