2 * Definitions for color structures and routines
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
28 #include "ui/gtk/gui_utils.h"
31 * Definitions for color structures and routines
34 /** The color white. */
35 extern GdkColor WHITE
;
37 /** The color light-grey. */
38 extern GdkColor LTGREY
;
40 /** The color black. */
41 extern GdkColor BLACK
;
43 /** Initialize the colors. */
44 void colors_init(void);
47 /** Allocate a color from the color map.
49 * @param new_color the new color
50 * @return TRUE if the allocation succeeded
52 gboolean
get_color(GdkColor
*new_color
);
55 /** Convert color_t to GdkColor.
57 * @param target the GdkColor to be filled
58 * @param source the source color_t
60 void color_t_to_gdkcolor(GdkColor
*target
, const color_t
*source
);
61 void color_t_to_gdkRGBAcolor(GdkRGBA
*target
, const color_t
*source
);
62 /** Convert GdkColor to color_t.
64 * @param target the source color_t
65 * @param source the GdkColor to be filled
67 void gdkcolor_to_color_t(color_t
*target
, const GdkColor
*source
);
68 void gdkRGBAcolor_to_color_t(color_t
*target
, const GdkRGBA
*source
);
70 void GdkColor_to_GdkRGBA(GdkRGBA
*target
, const GdkColor
*source
);
71 void gdkRGBAcolor_to_GdkColor(GdkColor
*target
, const GdkRGBA
*source
);
72 #endif /* __COLORS_H__ */