1
/* ide-highlight-engine.h
3
* Copyright (C) 2015 Christian Hergert <christian@hergert.me>
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
#ifndef IDE_HIGHLIGHT_ENGINE_H
20
#define IDE_HIGHLIGHT_ENGINE_H
22
#include "ide-buffer.h"
23
#include "ide-highlighter.h"
27
#define IDE_TYPE_HIGHLIGHT_ENGINE (ide_highlight_engine_get_type())
29
G_DECLARE_FINAL_TYPE (IdeHighlightEngine, ide_highlight_engine, IDE, HIGHLIGHT_ENGINE, GObject)
31
IdeHighlightEngine *ide_highlight_engine_new (IdeBuffer *buffer);
32
IdeBuffer *ide_highlight_engine_get_buffer (IdeHighlightEngine *self);
33
IdeHighlighter *ide_highlight_engine_get_highlighter (IdeHighlightEngine *self);
34
void ide_highlight_engine_set_highlighter (IdeHighlightEngine *self,
35
IdeHighlighter *highlighter);
36
void ide_highlight_engine_rebuild (IdeHighlightEngine *self);
37
void ide_highlight_engine_invalidate (IdeHighlightEngine *self,
38
const GtkTextIter *begin,
39
const GtkTextIter *end);
40
GtkTextTag *ide_highlight_engine_get_style (IdeHighlightEngine *self,
41
const gchar *style_name);
45
#endif /* IDE_HIGHLIGHT_ENGINE_H */