diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-04-03 20:57:45 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-04-03 20:57:45 (GMT) |
commit | d65fbe084a91d180d17767314f4e34b7456e8436 (patch) | |
tree | e7eee433871ea98be6643c1ab5a861889ed0226a /src/gtkext/gtkviewpanel-int.h | |
parent | 6cfa350c21c1e54cf9c597d92a9ea3d1aab01d78 (diff) |
Defined a preferred size for views and reacted on scroll events.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@500 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext/gtkviewpanel-int.h')
-rw-r--r-- | src/gtkext/gtkviewpanel-int.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gtkext/gtkviewpanel-int.h b/src/gtkext/gtkviewpanel-int.h index d51c637..07ce6e9 100644 --- a/src/gtkext/gtkviewpanel-int.h +++ b/src/gtkext/gtkviewpanel-int.h @@ -34,10 +34,13 @@ /* Indique les dimensions de travail du composant d'affichage. */ -typedef void (* compute_requested_size) (GtkViewPanel *, gint *, gint *); +typedef void (* compute_requested_size_fc) (GtkViewPanel *, gint *, gint *); /* Détermine la taille des bonds lors de défilements. */ -typedef void (* compute_scroll_inc) (GtkViewPanel *, gint, GtkOrientation, gdouble *, gdouble *); +typedef void (* compute_scroll_inc_fc) (GtkViewPanel *, gint, GtkOrientation, gdouble *, gdouble *); + +/* Réagit à un défilement chez une barre associée au composant. */ +typedef void (* adjust_scroll_value_fc) (GtkViewPanel *, GtkAdjustment *, GtkOrientation); /* Prend acte de l'association d'un binaire chargé. */ typedef void (* attach_binary_fc) (GtkViewPanel *, GLoadedBinary *); @@ -87,8 +90,9 @@ struct _GtkViewPanelClass { GtkFixedClass parent; /* A laisser en premier */ - compute_requested_size compute_size; /* Calcul de la taille requise */ - compute_scroll_inc compute_inc; /* Calcul des bonds */ + 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 */ define_address_fc define; /* Centrage sur une partie */ get_addr_coordinates_fc get_coordinates;/* Conversion adresse <-> pos. */ get_view_position_fc get_position; /* Indications sur la position */ |