GnuCash 2.4.99
gnucash-color.h
00001 /********************************************************************\
00002  * gnucash-color.h -- color handling for table cells                *
00003  *                                                                  *
00004  * This program is free software; you can redistribute it and/or    *
00005  * modify it under the terms of the GNU General Public License as   *
00006  * published by the Free Software Foundation; either version 2 of   *
00007  * the License, or (at your option) any later version.              *
00008  *                                                                  *
00009  * This program is distributed in the hope that it will be useful,  *
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00012  * GNU General Public License for more details.                     *
00013  *                                                                  *
00014  * You should have received a copy of the GNU General Public License*
00015  * along with this program; if not, contact:                        *
00016  *                                                                  *
00017  * Free Software Foundation           Voice:  +1-617-542-5942       *
00018  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
00019  * Boston, MA  02110-1301,  USA       gnu@gnu.org                   *
00020  *                                                                  *
00021 \********************************************************************/
00022 
00023 #ifndef GNUCASH_COLOR_H
00024 #define GNUCASH_COLOR_H
00025 
00026 #include <gdk/gdk.h>
00027 
00028 void      gnucash_color_init        (void);
00029 
00030 /* Return the pixel value for the given red, green and blue */
00031 gulong    gnucash_color_alloc       (gushort red, gushort green, gushort blue);
00032 void      gnucash_color_alloc_name  (const char *name, GdkColor *color);
00033 void      gnucash_color_alloc_gdk   (GdkColor *color);
00034 GdkColor *gnucash_color_argb_to_gdk (guint32 argb);
00035 
00036 extern GdkColor gn_white, gn_light_gray, gn_dark_gray;
00037 extern GdkColor gn_black, gn_blue, gn_red, gn_yellow;
00038 
00039 #endif /* GNUCASH_COLOR_H */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines