2 * Definitions for "toolkit-independent" colors
4 * $Id: color.h,v 1.3 2002/09/23 19:09:47 oabad Exp $
6 * Ethereal - Network traffic analyzer
7 * By Gerald Combs <gerald@zing.org>
8 * Copyright 1998 Gerald Combs
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.
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.
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.
29 #include "epan/dfilter/dfilter.h"
32 * Data structure holding RGB value for a color.
34 * XXX - yes, I know, there's a "pixel" value in there as well; for
35 * now, it's intended to look just like a GdkColor but not to require
36 * that any GTK+ header files be included in order to use it.
37 * The way we handle colors needs to be cleaned up somewhat, in order
38 * to keep toolkit-specific stuff separate from toolkit-independent stuff.
47 /* Data for a color filter. */
48 typedef struct _color_filter {
49 gchar *filter_name; /* name of the filter */
50 gchar *filter_text; /* text of the filter expression */
51 color_t bg_color; /* background color for packets that match */
52 color_t fg_color; /* foreground color for packets that match */
53 dfilter_t *c_colorfilter; /* compiled filter expression */
54 void *edit_dialog; /* if filter is being edited, dialog
58 /* List of all color filters. */
59 extern GSList *filter_list;
62 filter_list_prime_edt(epan_dissect_t *edt);