/* OpenIDA - Outil d'analyse de fichiers binaires * gtkbinview-int.h - définitions internes propre à l'affichage d'un ou plusieurs morceaux de code * * Copyright (C) 2009-2012 Cyrille Bagard * * This file is part of OpenIDA. * * OpenIDA is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * OpenIDA is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Foobar. If not, see . */ #ifndef _GTKEXT_GTKBINVIEW_INT_H #define _GTKEXT_GTKBINVIEW_INT_H #include "gtkbinview.h" #include "gtkviewpanel-int.h" #include #include /* Définit les lignes à associer à la représentation. */ typedef void (* set_rendering_lines_fc) (GtkBinView *, GRenderingLine *, GRenderingLine *); /* Réagit à la sélection externe d'une adresse. */ typedef void (* define_main_address_fc) (GtkBinView *, vmpa_t); /* Indique la position d'affichage d'une adresse donnée. */ //typedef bool (* get_addr_coordinates_fc) (const GtkBinView *, vmpa_t, gint *, gint *); struct _GtkBinView { GtkViewPanel parent; /* A laisser en premier */ GLoadedBinary *binary; /* Contenu binaire affiché */ GRenderingLine *lines; /* Contenu à représenter */ GRenderingLine *last; /* Dernière ligne associée */ set_rendering_lines_fc set_lines; /* Association des lignes */ define_main_address_fc define_address; /* Sélection externe d'adresse */ get_addr_coordinates_fc get_coordinates;/* Conversion adresse <-> pos. */ }; struct _GtkBinViewClass { GtkViewPanelClass parent; /* A laisser en premier */ /* Signaux */ void (* lines_set) (GtkBinView *); }; /* Calcule la surface pleine utilisable pour la vue. */ void gtk_bin_view_compute_allocation(GtkBinView *, GtkAllocation *); /* S'assure que la valeur de défilement actuelle est valable. */ void gtk_bin_view_reclamp_adjustment(GtkAdjustment *, gboolean *); #endif /* _GTKEXT_GTKBINVIEW_INT_H */