libghostty
Loading...
Searching...
No Matches
GhosttyClipboardWrite Struct Reference

#include <ghostty/vt/terminal.h>

Data Fields

size_t size
GhosttyClipboardLocation location
const GhosttyClipboardContentcontents
size_t contents_len

Detailed Description

A semantic, atomic clipboard write.

This is a sized struct. The callback must only access fields present in the size reported by size. The request, contents array, MIME strings, and data strings are all borrowed and valid only for the callback duration.

All entries in contents are representations of the same logical value and must be committed atomically. A contents_len of zero requests that the destination be cleared. This is distinct from a content entry whose data has zero length.

Definition at line 385 of file terminal.h.

Field Documentation

◆ contents

const GhosttyClipboardContent* contents

Borrowed array of MIME representations.

Definition at line 393 of file terminal.h.

◆ contents_len

size_t contents_len

Number of entries in contents; zero means clear the destination.

Definition at line 396 of file terminal.h.

◆ location

Clipboard destination.

Definition at line 390 of file terminal.h.

◆ size

size_t size

Size of this struct in bytes.

Definition at line 387 of file terminal.h.


The documentation for this struct was generated from the following file: