diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2024-06-18 06:31:42 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2024-06-18 06:31:58 (GMT) |
commit | 53edb30496d1065019406de16f9f9d96ba61cd3c (patch) | |
tree | 162cad07e27a01990d721f69f3270581417c31e7 /src/glibext/bufferline.h | |
parent | 334126eb659bc310a72a9f7f9238b7cd205a0770 (diff) |
Rebuild hex views for large contents.
Diffstat (limited to 'src/glibext/bufferline.h')
-rw-r--r-- | src/glibext/bufferline.h | 50 |
1 files changed, 44 insertions, 6 deletions
diff --git a/src/glibext/bufferline.h b/src/glibext/bufferline.h index f5f25d0..d6a2e2d 100644 --- a/src/glibext/bufferline.h +++ b/src/glibext/bufferline.h @@ -25,10 +25,21 @@ #define _GLIBEXT_BUFFERLINE_H -#include <glib-object.h> #include <stdbool.h> +#include "helpers.h" +#include "tokenstyle.h" + + + + + +#if 0 + +#include <glib-object.h> + + #include "gdisplayoptions.h" #include "linesegment.h" #ifdef INCLUDE_GTK_SUPPORT @@ -60,6 +71,14 @@ typedef struct _GBufferLineClass GBufferLineClass; /* Espace entre les colonnes */ #define COL_MARGIN 23 +#endif + + + +#define G_TYPE_BUFFER_LINE (g_buffer_line_get_type()) + +DECLARE_GTYPE(GBufferLine, g_buffer_line, G, BUFFER_LINE); + /* Propriétés particulières supplémentaires */ typedef enum _BufferLineFlags @@ -76,12 +95,28 @@ typedef enum _BufferLineFlags } BufferLineFlags; -/* Détermine le type de la représentation de fragments de texte en ligne. */ -GType g_buffer_line_get_type(void); - /* Crée une nouvelle représentation de fragments de texte. */ GBufferLine *g_buffer_line_new(size_t); + + +/* Ajoute du texte à formater dans une ligne donnée. */ +void g_buffer_line_append_text(GBufferLine *, size_t, TokenRenderingTag, const char *, size_t, const GTokenStyle *, GObject *); + + + +/* Imprime la ligne de texte représentée. */ +void g_buffer_line_draw(const GBufferLine *, cairo_t *, size_t, int, const GTokenStyle *); + + + + + +#if 0 + +/* Détermine le type de la représentation de fragments de texte en ligne. */ +GType g_buffer_line_get_type(void); + /* Construit le tronc commun d'une ligne autour de sa position. */ void g_buffer_line_fill_phys(GBufferLine *, size_t, MemoryDataSize, const vmpa2t *); @@ -95,7 +130,7 @@ void g_buffer_line_fill_content(GBufferLine *, size_t, const GBinContent *, cons GObject *g_buffer_line_find_first_segment_creator(const GBufferLine *, size_t); /* Ajoute du texte à formater dans une ligne donnée. */ -void g_buffer_line_append_text(GBufferLine *, size_t, const char *, size_t, RenderingTagType, GObject *); +//void g_buffer_line_append_text(GBufferLine *, size_t, const char *, size_t, RenderingTagType, GObject *); /* Remplace du texte dans une ligne donnée. */ bool g_buffer_line_replace_text(GBufferLine *, const GObject *, const char *, size_t); @@ -162,7 +197,10 @@ GObject *g_buffer_line_get_creator_at(const GBufferLine *, size_t, GWidthTracker bool g_buffer_line_find_near_coord(const GBufferLine *, size_t, col_coord_t *, GWidthTracker *, const GDisplayOptions *, GdkScrollDirection, gint *); /* Imprime la ligne de texte représentée. */ -void g_buffer_line_draw(GBufferLine *, size_t, cairo_t *, gint, gint, GWidthTracker *, const GDisplayOptions *, const segcnt_list *); +//void g_buffer_line_draw(GBufferLine *, size_t, cairo_t *, gint, gint, GWidthTracker *, const GDisplayOptions *, const segcnt_list *); + +#endif + #endif |