Method
IdeHighlighterupdate
Declaration
void
ide_highlighter_update (
IdeHighlighter* self,
const GSList* tags_to_remove,
IdeHighlightCallback callback,
const GtkTextIter* range_begin,
const GtkTextIter* range_end,
GtkTextIter* location
)
Description
Incrementally processes more of the buffer for highlighting. If callback
returns IDE_HIGHLIGHT_STOP
, then this vfunc should stop processing and
return, having set location
to the current position of processing.
If processing the entire range was successful, then location
should be set
to range_end
.
Parameters
tags_to_remove
-
Type: A list of
GtkTextTag*
A
GSList
of tags to be removed.The data is owned by the caller of the method. callback
-
Type:
IdeHighlightCallback
A callback to apply a given style.
range_begin
-
Type:
GtkTextIter
The beginning of the range to update.
The data is owned by the caller of the method. range_end
-
Type:
GtkTextIter
The end of the range to update.
The data is owned by the caller of the method. location
-
Type:
GtkTextIter
How far the highlighter got in the update.
The argument will be set by the function. The data is owned by the instance.