5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
25 #ifndef __BYTES_VIEW_H__
26 #define __BYTES_VIEW_H__
28 #define BYTES_VIEW_TYPE (bytes_view_get_type())
29 #define BYTES_VIEW(object) (G_TYPE_CHECK_INSTANCE_CAST((object), BYTES_VIEW_TYPE, BytesView))
31 #define BYTE_VIEW_HIGHLIGHT_APPENDIX 1
32 #define BYTE_VIEW_HIGHLIGHT_PROTOCOL 2
34 typedef struct _BytesView BytesView
;
36 GType
bytes_view_get_type(void);
38 GtkWidget
*bytes_view_new(void);
39 void bytes_view_set_font(BytesView
*bv
, PangoFontDescription
*font
);
41 void bytes_view_set_data(BytesView
*bv
, const guint8
*data
, int len
);
42 void bytes_view_set_encoding(BytesView
*bv
, int enc
);
43 void bytes_view_set_format(BytesView
*bv
, int format
);
44 void bytes_view_set_highlight_style(BytesView
*bv
, gboolean bold
);
46 void bytes_view_set_highlight(BytesView
*bv
, int start
, int end
, guint32 mask
, int maskle
);
47 void bytes_view_set_highlight_extra(BytesView
*bv
, int id
, int start
, int end
);
49 void bytes_view_refresh(BytesView
*bv
);
50 int bytes_view_byte_from_xy(BytesView
*bv
, int x
, int y
);
51 void bytes_view_scroll_to_byte(BytesView
*bv
, int byte
);
53 #endif /* __BYTES_VIEW_H__ */