Redraw:
[obnox/wireshark/wip.git] / gtk / proto_draw.h
1 /* gtkpacket.h
2  * Definitions for GTK+ packet display structures and routines
3  *
4  * $Id: proto_draw.h,v 1.9 2000/09/08 10:59:21 guy Exp $
5  *
6  * Ethereal - Network traffic analyzer
7  * By Gerald Combs <gerald@zing.org>
8  * Copyright 1998 Gerald Combs
9  *
10  * 
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  * 
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  * 
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24  */
25
26
27 #ifndef __GTKPACKET_H__
28 #define __GTKPACKET_H__
29
30 void redraw_hex_dump(GtkWidget *bv, field_info *finfo);
31 void redraw_hex_dump_all(void);
32 void create_byte_view(gint bv_size, GtkWidget *pane, GtkWidget **byte_view_p,
33                 GtkWidget **bv_scrollw_p, int pos);
34 void packet_hex_print(GtkText *, guint8 *, gint, gint, gint, char_enc);
35
36 #define E_TREEINFO_FIELD_INFO_KEY "tree_info_finfo"
37
38 void create_tree_view(gint tv_size, e_prefs *prefs, GtkWidget *pane,
39                 GtkWidget **tv_scrollw_p, GtkWidget **tree_view_p, int pos);
40 void proto_tree_draw(proto_tree *protocol_tree, GtkWidget *tree_view);
41 void expand_all_tree(proto_tree *protocol_tree, GtkWidget *tree_view);
42 void collapse_all_tree(proto_tree *protocol_tree, GtkWidget *tree_view);
43
44 void set_ptree_sel_browse_all(gboolean);
45 void set_ptree_line_style_all(gint style);
46 void set_ptree_expander_style_all(gint style);
47 void set_ptree_font_all(GdkFont *font);
48
49 #endif