diff options
Diffstat (limited to 'src/gtkext/contentview-int.h')
-rw-r--r-- | src/gtkext/contentview-int.h | 52 |
1 files changed, 32 insertions, 20 deletions
diff --git a/src/gtkext/contentview-int.h b/src/gtkext/contentview-int.h index 25c9ddb..01c0c7a 100644 --- a/src/gtkext/contentview-int.h +++ b/src/gtkext/contentview-int.h @@ -28,11 +28,19 @@ #include "contentview.h" +#include "../glibext/bufferview.h" #include "../glibext/tokenstyle.h" +/* Réagit à un défilement chez une barre associée au composant. */ +typedef void (* adjust_scroll_value_fc) (GtkContentView *, GtkOrientation, GtkAdjustment *); + + + + + #if 0 #include <stdbool.h> @@ -52,10 +60,10 @@ typedef void (* compute_requested_size_fc) (GtkDisplayPanel *, gint *, gint *); /* Détermine la taille des bonds lors de défilements. */ -typedef void (* compute_scroll_inc_fc) (GtkDisplayPanel *, gint, GtkOrientation, gdouble *, gdouble *); +//typedef void (* compute_scroll_inc_fc) (GtkDisplayPanel *, gint, GtkOrientation, gdouble *, gdouble *); /* Réagit à un défilement chez une barre associée au composant. */ -typedef void (* adjust_scroll_value_fc) (GtkDisplayPanel *, GtkAdjustment *, GtkOrientation); +//typedef void (* adjust_scroll_value_fc) (GtkDisplayPanel *, GtkAdjustment *, GtkOrientation); /* Ajuste au besoin la zone affichée pour un curseur. */ typedef void (* prepare_for_cursor_fc) (GtkDisplayPanel *, const GLineCursor *); @@ -94,15 +102,18 @@ struct _GtkContentView { GtkWidget parent; /* A laisser en premier */ + GtkAdjustment *adjustments[2]; /* Barres de défilement h. & v.*/ + GtkScrollablePolicy scroll_policies[2]; /* Politiques de défilement */ + GDisplayOptions *options; /* Options de rendu */ - GTokenStyle *style; /* Centralisation des styles */ -#if 0 + /* Propriété des implémentations */ - GtkAdjustment *hadjustment; /* Barre de défilement horiz. */ - GtkAdjustment *vadjustment; /* Barre de défilement vert. */ - GtkScrollablePolicy hscroll_policy; /* Politique horizontale */ - GtkScrollablePolicy vscroll_policy; /* Politique verticale */ + GtkWidget * const *sub_children; /* Composants embarqués */ + size_t sub_count; /* Quantité de ces composants */ + + +#if 0 double scale; /* Echelle de l'affichage */ @@ -121,13 +132,14 @@ struct _GtkContentView /* Composant d'affichage générique (classe) */ struct _GtkContentViewClass { - GtkFixedClass parent; /* A laisser en premier */ + GtkWidgetClass 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 */ +#endif adjust_scroll_value_fc adjust; /* Réaction à un défilement */ + +#if 0 prepare_for_cursor_fc prepare; /* Préparation de zone affichée*/ get_coordinates_fc get_coordinates; /* Conversion adresse <-> pos. */ get_active_object_fc get_active; /* Infos sur l'objet actif */ @@ -149,20 +161,20 @@ struct _GtkContentViewClass }; -#if 0 - /* Propriétés propres au composant d'affichage */ -typedef enum _ViewPanelProps +typedef enum _ContentViewProps { - VPP_0, - VPP_HADJUSTMENT, - VPP_VADJUSTMENT, - VPP_HSCROLL_POLICY, - VPP_VSCROLL_POLICY + CVP_0, + CVP_HADJUSTMENT, + CVP_VADJUSTMENT, + CVP_HSCROLL_POLICY, + CVP_VSCROLL_POLICY -} ViewPanelProps; +} ContentViewProps; +#if 0 + /* Définit un chemin décrivant la bordure autour du panneau. */ void gtk_display_panel_define_border_path(GtkDisplayPanel *, cairo_t *, const GtkAllocation *); |