Gtk.TextIter.prototype.forward_to_tag_toggle

function forward_to_tag_toggle(tag:Gtk.TextTag):Boolean {
    // Gjs wrapper for gtk_text_iter_forward_to_tag_toggle()
}

Moves forward to the next toggle (on or off) of the Gtk.TextTag tag, or to the next toggle of any tag if tag is null. If no matching tag toggles are found, returns false, otherwise true. Does not return toggles located at iter, only toggles after iter. Sets iter to the location of the toggle, or to the end of the buffer if no toggle is found.

tag

a Gtk.TextTag, or null

Returns

whether we found a tag toggle after iter