GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnucash-color.h
1 /********************************************************************\
2  * gnucash-color.h -- color handling for table cells *
3  * *
4  * This program is free software; you can redistribute it and/or *
5  * modify it under the terms of the GNU General Public License as *
6  * published by the Free Software Foundation; either version 2 of *
7  * the License, or (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License*
15  * along with this program; if not, contact: *
16  * *
17  * Free Software Foundation Voice: +1-617-542-5942 *
18  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
19  * Boston, MA 02110-1301, USA [email protected] *
20  * *
21 \********************************************************************/
22 
23 #ifndef GNUCASH_COLOR_H
24 #define GNUCASH_COLOR_H
25 
26 #include <gdk/gdk.h>
27 
28 void gnucash_color_init (void);
29 
30 /* Return the pixel value for the given red, green and blue */
31 gulong gnucash_color_alloc (gushort red, gushort green, gushort blue);
32 void gnucash_color_alloc_name (const char *name, GdkColor *color);
33 void gnucash_color_alloc_gdk (GdkColor *color);
34 GdkColor *gnucash_color_argb_to_gdk (guint32 argb);
35 
36 extern GdkColor gn_white, gn_light_gray, gn_dark_gray;
37 extern GdkColor gn_black, gn_blue, gn_red, gn_yellow;
38 
39 #endif /* GNUCASH_COLOR_H */