diff options
Diffstat (limited to 'src/gtkext/contentview-int.h')
-rw-r--r-- | src/gtkext/contentview-int.h | 44 |
1 files changed, 35 insertions, 9 deletions
diff --git a/src/gtkext/contentview-int.h b/src/gtkext/contentview-int.h index 221d796..ba1f17c 100644 --- a/src/gtkext/contentview-int.h +++ b/src/gtkext/contentview-int.h @@ -1,8 +1,8 @@ /* Chrysalide - Outil d'analyse de fichiers binaires - * gtkdisplaypanel-int.h - définitions internes propres à l'affichage de contenus de binaire + * gtkcontentview-int.h - définitions internes propres à la base d'affichage pour contenus divers * - * Copyright (C) 2016-2019 Cyrille Bagard + * Copyright (C) 2016-2024 Cyrille Bagard * * This file is part of Chrysalide. * @@ -21,13 +21,20 @@ */ -#ifndef _GTK_DISPLAYPANEL_INT_H -#define _GTK_DISPLAYPANEL_INT_H +#ifndef _GTKEXT_CONTENTVIEW_INT_H +#define _GTKEXT_CONTENTVIEW_INT_H -#include "gtkdisplaypanel.h" +#include "contentview.h" +#include "../glibext/tokenstyle.h" + + + + +#if 0 + #include <stdbool.h> #include <gtk/gtk.h> @@ -78,11 +85,18 @@ typedef void (* apply_scale_fc) (GtkDisplayPanel *, double, double); typedef void (* prepare_export_fc) (GtkDisplayPanel *, bool); +#endif + + /* Composant d'affichage générique (instance) */ -struct _GtkDisplayPanel +struct _GtkContentView { - GtkFixed parent; /* A laisser en premier */ + GtkWidget parent; /* A laisser en premier */ + + GTokenStyle *style; /* Centralisation des styles */ + +#if 0 GtkAdjustment *hadjustment; /* Barre de défilement horiz. */ GtkAdjustment *vadjustment; /* Barre de défilement vert. */ @@ -99,13 +113,17 @@ struct _GtkDisplayPanel bool export; /* Exportation du rendu ? */ +#endif + }; /* Composant d'affichage générique (classe) */ -struct _GtkDisplayPanelClass +struct _GtkContentViewClass { GtkFixedClass parent; /* A laisser en premier */ +#if 0 + compute_requested_size_fc compute_size; /* Calcul de la taille requise */ compute_scroll_inc_fc compute_inc; /* Calcul des bonds */ adjust_scroll_value_fc adjust; /* Réaction à un défilement */ @@ -125,8 +143,13 @@ struct _GtkDisplayPanelClass void (* scaled) (GtkDisplayPanel *, double, double); +#endif + }; + +#if 0 + /* Propriétés propres au composant d'affichage */ typedef enum _ViewPanelProps { @@ -160,5 +183,8 @@ void gtk_display_panel_compute_real_coord(GtkDisplayPanel *, gint *, gint *); void gtk_display_panel_compute_relative_coords(GtkDisplayPanel *, gint *, gint *); +#endif + + -#endif /* _GTK_DISPLAYPANEL_INT_H */ +#endif /* _GTKEXT_CONTENTVIEW_INT_H */ |