Gtk.Label.prototype.get_selection_bounds

function get_selection_bounds():Boolean {
    // Gjs wrapper for gtk_label_get_selection_bounds()
}

Gets the selected range of characters in the label, returning true if there's a selection.

Returns

true if selection is non-empty