Gtk.SelectionData.prototype.targets_include_rich_text

function targets_include_rich_text(buffer:Gtk.TextBuffer):Boolean {
    // Gjs wrapper for gtk_selection_data_targets_include_rich_text()
}

Given a Gtk.SelectionData object holding a list of targets, determines if any of the targets in @targets can be used to provide rich text.

Since 2.10

buffer

a Gtk.TextBuffer

Returns

true if selection_data holds a list of targets, and a suitable target for rich text is included, otherwise false.