Top | ![]() |
![]() |
![]() |
![]() |
IdeHighlightResult | (*IdeHighlightCallback) () |
void | ide_highlighter_load () |
void | ide_highlighter_update () |
#define | IDE_TYPE_HIGHLIGHTER |
enum | IdeHighlightResult |
struct | IdeHighlighterInterface |
IdeHighlighter |
IdeHighlightResult (*IdeHighlightCallback) (const GtkTextIter *begin
,const GtkTextIter *end
,const gchar *style_name
);
void ide_highlighter_update (IdeHighlighter *self
,IdeHighlightCallback callback
,const GtkTextIter *range_begin
,const GtkTextIter *range_end
,GtkTextIter *location
);
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
.
self |
an IdeHighlighter. |
|
callback |
A callback to apply a given style. |
[scope call] |
range_begin |
The beginning of the range to update. |
|
range_end |
The end of the range to update. |
|
location |
How far the highlighter got in the update. |
[out] |
struct IdeHighlighterInterface { GTypeInterface parent_interface; /** * IdeHighlighter::update: * * #IdeHighlighter should call callback() with the range and style-name of * the style to apply. Callback will ensure that the style exists and style * it appropriately based on the style scheme. * * If @callback returns %IDE_HIGHLIGHT_STOP, the caller has run out of its * time slice and should yield back to the highlight engine. * * @location should be set to the position that the highlighter got to * before yielding back to the engine. */ void (*update) (IdeHighlighter *self, IdeHighlightCallback callback, const GtkTextIter *range_begin, const GtkTextIter *range_end, GtkTextIter *location); void (*set_engine) (IdeHighlighter *self, IdeHighlightEngine *engine); void (*load) (IdeHighlighter *self); };