Display.getPrimaryClipboard

gdk.clipboard.Clipboard getPrimaryClipboard()

Gets the clipboard used for the primary selection.

On backends where the primary clipboard is not supported natively, GDK emulates this clipboard locally.

Returns

the primary clipboard