Gtk.SelectionData.prototype.get_text
function get_text():String { // Gjs wrapper for gtk_selection_data_get_text() }
Gets the contents of the selection data as a UTF-8 string.
- Returns
if the selection data contained a recognized text type and it could be converted to UTF-8, a newly allocated string containing the converted text, otherwise null. If the result is non-null it must be freed with GLib.free.