summaryrefslogtreecommitdiff
path: root/src/glibext/buffercache-int.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/glibext/buffercache-int.h')
-rw-r--r--src/glibext/buffercache-int.h38
1 files changed, 26 insertions, 12 deletions
diff --git a/src/glibext/buffercache-int.h b/src/glibext/buffercache-int.h
index 0e831a2..59d273b 100644
--- a/src/glibext/buffercache-int.h
+++ b/src/glibext/buffercache-int.h
@@ -33,20 +33,20 @@
/* Informations rattachées à la génération d'une ligne */
-typedef struct _generator_link
+typedef struct _generator_link_t
{
- GLineGenerator *instance; /* Fournisseur de contenu */
+ GTokenGenerator *instance; /* Fournisseur de contenu */
size_t repeat; /* Compteur de successions */
-} generator_link;
+} generator_link_t;
/* Suivi interne de l'état d'une ligne */
-typedef struct _cache_info
+typedef struct _cache_info_t
{
union
{
- generator_link generator; /* Générateur unique */
- generator_link *generators; /* Liste de générateurs */
+ generator_link_t generator; /* Générateur unique */
+ generator_link_t *generators; /* Liste de générateurs */
};
size_t count; /* Taille de cette liste */
@@ -54,7 +54,7 @@ typedef struct _cache_info
BufferLineFlags extra_flags; /* Propriétés supplémentaires */
-} cache_info;
+} cache_info_t;
@@ -66,13 +66,25 @@ struct _GBufferCache
{
GObject parent; /* A laisser en premier */
+ size_t opt_count; /* Qté de colonnes en option */
+ size_t reg_count; /* Nombre de colonnes normales */
+#ifndef NDEBUG
+ size_t col_count; /* Nombre maximum de colonnes */
+#endif
+
+
+
+#if 0
GBinContent *content; /* Contenu binaire global */
#ifdef INCLUDE_GTK_SUPPORT
GWidthTracker *tracker; /* Suivi des largeurs */
#endif
+#endif
+
- cache_info *lines; /* Liste des lignes intégrées */
+
+ cache_info_t *lines; /* Liste des lignes intégrées */
size_t count; /* Quantité en cache */
size_t used; /* Quantité utilisée */
GRWLock access; /* Verrou de protection */
@@ -84,18 +96,20 @@ struct _GBufferCacheClass
{
GObjectClass parent; /* A laisser en premier */
- gint line_height; /* Hauteur maximale des lignes */
- gint left_margin; /* Marge gauche + espace */
- gint text_pos; /* Début d'impression du code */
-
/* Signaux */
void (* size_changed) (GBufferCache *, bool, size_t, size_t);
+#if 0
void (* line_updated) (GBufferCache *, size_t);
+#endif
};
+/* Met en place un nouveau tampon pour lignes quelconques. */
+bool g_buffer_cache_create(GBufferCache *, size_t, size_t);
+
+
#endif /* _GLIBEXT_BUFFERCACHE_INT_H */