diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2014-09-10 21:02:04 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2014-09-10 21:02:04 (GMT) |
commit | be1f2f147e8ce15f20ec4de439088714ffa50e8a (patch) | |
tree | eab8ad76fa6f39781568fae13fb7967cdedbd45a /src/gtkext/gtkviewpanel-int.h | |
parent | c03635088f26a18cdbd42c2528f00b9ccd8591d9 (diff) |
Fixed and improved the rendering of view panels.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@401 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext/gtkviewpanel-int.h')
-rw-r--r-- | src/gtkext/gtkviewpanel-int.h | 21 |
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; |