Gtk.Clipboard.prototype.set_text
function set_text(text:String, len:Number):void { // Gjs wrapper for gtk_clipboard_set_text() }
Sets the contents of the clipboard to the given UTF-8 string. GTK+ will make a copy of the text and take responsibility for responding for requests for the text, and for converting the text into the requested format.
- text
a UTF-8 string.
- len
length of text, in bytes, or -1, in which case the length will be determined with <function>strlen()</function>.