Skip to main content

Module copy

Module copy 

Source
Expand description

Copying and clearing clipboard contents.

Structsยง

DataSource ๐Ÿ”’
DataSourceStorage ๐Ÿ”’
An inner source of data in-memory.
MimeSource
Source for copying, with a MIME type.
Options
Options and flags that are used to customize the copying.
PreparedCopy
A copy operation ready to start serving requests.
State ๐Ÿ”’

Enumsยง

ClipboardType
The clipboard to operate on.
DataSourceError
Error
Errors that can occur for copying and clearing the clipboard.
MimeType
MIME type to offer the copied data under.
Seat
Seat to operate on.
ServeRequests
Number of paste requests to serve.
Source
Source for copying.
SourceCreationError
Errors that can occur for copying the source data to a temporary file.

Constantsยง

TEXT_PLAIN_MIME ๐Ÿ”’

Functionsยง

clear
Clears the clipboard for the given seat.
clear_internal ๐Ÿ”’
copy
Copies data to the clipboard.
copy_internal ๐Ÿ”’
copy_multi
Copies data to the clipboard, offering multiple data sources.
get_devices ๐Ÿ”’
make_source ๐Ÿ”’
prepare_copy
Prepares a data copy to the clipboard.
prepare_copy_internal ๐Ÿ”’
prepare_copy_multi
Prepares a data copy to the clipboard, offering multiple data sources.