diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2012-09-27 21:48:32 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2012-09-27 21:48:32 (GMT) |
commit | fa83bc71888fed39bcc77ad610ffd6f6980444f8 (patch) | |
tree | 38144f021e53bc5bfcf163002191076ef4766794 /src/glibext/gbuffersegment.h | |
parent | f32b173243cf46f8a9cf84b610139b3d4bd20803 (diff) |
Selected segments for highlighting.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@264 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/glibext/gbuffersegment.h')
-rw-r--r-- | src/glibext/gbuffersegment.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/glibext/gbuffersegment.h b/src/glibext/gbuffersegment.h index ead0560..edbf44c 100644 --- a/src/glibext/gbuffersegment.h +++ b/src/glibext/gbuffersegment.h @@ -26,6 +26,7 @@ #include <glib-object.h> +#include <stdbool.h> #include <gdk/gdk.h> #include <pango/pango.h> @@ -39,6 +40,15 @@ #define G_BUFFER_SEGMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), G_TYPE_BUFFER_SEGMENT, GBufferSegmentClass)) +/* Types de rendus */ +typedef enum _SegRenderingStyle +{ + SRS_CLASSIC, /* Comportement par défaut */ + SRS_HIGHLIGHT_SAME, /* Surlignage des identiques */ + + SRS_COUNT + +} SegRenderingStyle; /* Types d'exportation */ typedef enum _BufferExportType @@ -64,6 +74,9 @@ GType g_buffer_segment_get_type(void); /* Crée un nouveau fragment de texte avec des propriétés. */ GBufferSegment *g_buffer_segment_new(PangoContext *, PangoAttrList *, const char *, size_t); +/* Indique si les textes de deux segments sont identiques. */ +bool g_buffer_segment_compare(const GBufferSegment *, const GBufferSegment *); + /* Fournit le texte brut conservé dans le segment. */ const char *g_buffer_segment_get_text(const GBufferSegment *); @@ -73,6 +86,9 @@ gint g_buffer_segment_get_width(const GBufferSegment *); /* (Re)charge les couleurs à partir de la liste d'attributs. */ void g_buffer_segment_cache_colors(GBufferSegment *); +/* Module l'apparence finale du composant. */ +void g_buffer_segment_set_style(GBufferSegment *, SegRenderingStyle); + /* Imprime le fragment de texte représenté. */ void g_buffer_segment_draw(GBufferSegment *, GdkDrawable *, GdkGC *, gint *, gint); |