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/widthtracker.h | |
| parent | 334126eb659bc310a72a9f7f9238b7cd205a0770 (diff) | |
Rebuild hex views for large contents.
Diffstat (limited to 'src/glibext/widthtracker.h')
| -rw-r--r-- | src/glibext/widthtracker.h | 39 | 
1 files changed, 32 insertions, 7 deletions
| diff --git a/src/glibext/widthtracker.h b/src/glibext/widthtracker.h index ce0aa93..c67e335 100644 --- a/src/glibext/widthtracker.h +++ b/src/glibext/widthtracker.h @@ -25,6 +25,34 @@  #define _GLIBEXT_WIDTHTRACKER_H +#include "buffercache.h" +#include "helpers.h" + + + +#define G_TYPE_WIDTH_TRACKER (g_width_tracker_get_type()) + +DECLARE_GTYPE(GWidthTracker, g_width_tracker, G, WIDTH_TRACKER); + + +/* Crée un nouveau suivi de largeurs au sein de lignes. */ +GWidthTracker *g_width_tracker_new(GBufferCache *); + +/* Indique la largeur minimale pour une colonne donnée. */ +int g_width_tracker_get_column_min_width(const GWidthTracker *, size_t); + +/* Impose une largeur minimale pour une colonne donnée. */ +void g_width_tracker_set_column_min_width(GWidthTracker *, size_t, int); + +/* Détermine la largeur nécessaire à une pleine représentation. */ +void g_width_tracker_compute_width(const GWidthTracker *, int *); + + + + +#if 0 + +  #include <glib-object.h>  #include <stdbool.h> @@ -74,7 +102,7 @@ typedef struct _GWidthTrackerClass GWidthTrackerClass;  GType g_width_tracker_get_type(void);  /* Crée un nouveau suivi de largeurs au sein de lignes. */ -GWidthTracker *g_width_tracker_new(GBufferCache *, size_t, size_t); +//GWidthTracker *g_width_tracker_new(GBufferCache *, size_t, size_t);  /* Crée un nouveau suivi de largeurs au sein de lignes. */  GWidthTracker *g_width_tracker_new_restricted(const GWidthTracker *, size_t, size_t); @@ -82,12 +110,6 @@ GWidthTracker *g_width_tracker_new_restricted(const GWidthTracker *, size_t, siz  /* Indique le nombre de colonnes prises en compte. */  size_t g_width_tracker_count_columns(const GWidthTracker *); -/* Indique la largeur minimale pour une colonne donnée. */ -gint g_width_tracker_get_column_min_width(GWidthTracker *, size_t); - -/* Impose une largeur minimale pour une colonne donnée. */ -void g_width_tracker_set_column_min_width(GWidthTracker *, size_t, gint); -  /* Prend acte d'un changement sur une ligne pour les largeurs. */  void g_width_tracker_update(GWidthTracker *, size_t); @@ -110,5 +132,8 @@ gint g_width_tracker_get_margin(GWidthTracker *, const GDisplayOptions *);  gint g_width_tracker_get_local_column_width(GWidthTracker *, size_t, size_t, size_t); +#endif + +  #endif  /* _GLIBEXT_WIDTHTRACKER_H */ | 
