Package: gdk

Function gdk:clipboard-set-content

Lambda List

gdk:clipboard-set-content (clipboard provider)

Arguments

clipboard -- a gdk:clipboard object
content -- a new gdk:content-provider object or nil to clear the clipboard

Return Value

True if setting the clipboard succeeded.

Details

Sets a new content provider on clipboard. The clipboard will claim the resources of the gdk:display object and advertise these new contents to other applications.

In the rare case of a failure, this function will return false. The clipboard will then continue reporting its old contents and ignore provider.

If the contents are read by either an external application or the read functions of the clipboard, clipboard will select the best format to transfer the contents and then request that format from provider.
 

See also

2023-7-30