summaryrefslogtreecommitdiff
path: root/src/gtkext/gtkviewpanel-int.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtkext/gtkviewpanel-int.h')
-rw-r--r--src/gtkext/gtkviewpanel-int.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/src/gtkext/gtkviewpanel-int.h b/src/gtkext/gtkviewpanel-int.h
index 1970402..1d55bf2 100644
--- a/src/gtkext/gtkviewpanel-int.h
+++ b/src/gtkext/gtkviewpanel-int.h
@@ -33,6 +33,9 @@
+/* Indique les dimensions de travail du composant d'affichage. */
+typedef void (* compute_requested_size) (GtkViewPanel *, gint *, gint *);
+
/* Prend acte de l'association d'un binaire chargé. */
typedef void (* attach_binary_fc) (GtkViewPanel *, GLoadedBinary *, bool *, bool *);
@@ -57,6 +60,8 @@ struct _GtkViewPanel
GtkAdjustment *hadjustment; /* Barre de défilement horiz. */
GtkAdjustment *vadjustment; /* Barre de défilement vert. */
+ GtkScrollablePolicy hscroll_policy; /* Politique horizontale */
+ GtkScrollablePolicy vscroll_policy; /* Politique verticale */
bool show_border; /* Affichage d'une bordure ? */
@@ -79,14 +84,20 @@ struct _GtkViewPanelClass
{
GtkFixedClass parent; /* A laisser en premier */
-};
+ compute_requested_size compute_size; /* Calcul de la taille requise */
+};
-/* S'assure que la valeur de défilement actuelle est valable. */
-void gtk_view_panel_reclamp_adjustment(GtkAdjustment *, gboolean *);
+/* Propriétés propres au composant d'affichage */
+typedef enum _ViewPanelProps
+{
+ VPP_0,
+ VPP_HADJUSTMENT,
+ VPP_VADJUSTMENT,
+ VPP_HSCROLL_POLICY,
+ VPP_VSCROLL_POLICY
-/* Calcule la surface pleine utilisable pour le panneau. */
-void gtk_view_panel_compute_allocation(GtkViewPanel *, GtkAllocation *);
+} ViewPanelProps;