Method

GtkTextIterforward_to_tag_toggle_with_limit

unstable since: 4.26

Declaration [src]

gboolean
gtk_text_iter_forward_to_tag_toggle_with_limit (
  GtkTextIter* iter,
  GtkTextTag* tag,
  const GtkTextIter* limit
)

Description [src]

Moves forward to the next tag toggle before limit.

Finds the next start or end of tag, or of any tag if tag is NULL. Toggles at the initial position of iter and at limit are excluded. If no toggle is found, sets iter to limit and returns FALSE. If limit is at or before iter, returns FALSE without moving iter.

If limit is NULL, searches to the end of the buffer, including any toggle at the end iterator, just like gtk_text_iter_forward_to_tag_toggle().

Available since: 4.26

Parameters

tag

Type: GtkTextTag

A GtkTextTag, or NULL to find any tag toggle.

The argument can be NULL.
The data is owned by the caller of the method.
limit

Type: GtkTextIter

The exclusive search limit, in the same buffer as iter.

The argument can be NULL.
The data is owned by the caller of the method.

Return value

Type: gboolean

Whether a matching tag toggle was found.