00001 /* 00002 * "$Id: color.h,v 1.3 2004/04/10 03:37:48 rlk Exp $" 00003 * 00004 * libgimpprint color functions. 00005 * 00006 * Copyright 1997-2000 Michael Sweet (mike@easysw.com) and 00007 * Robert Krawitz (rlk@alum.mit.edu) 00008 * 00009 * This program is free software; you can redistribute it and/or modify it 00010 * under the terms of the GNU General Public License as published by the Free 00011 * Software Foundation; either version 2 of the License, or (at your option) 00012 * any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, but 00015 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00016 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00017 * for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00022 */ 00023 00029 #ifndef GIMP_PRINT_COLOR_H 00030 #define GIMP_PRINT_COLOR_H 00031 00032 #ifdef __cplusplus 00033 extern "C" { 00034 #endif 00035 00048 typedef void *stp_color_t; 00050 typedef const void *stp_const_color_t; 00051 00056 extern int 00057 stp_color_count(void); 00058 00065 extern stp_const_color_t 00066 stp_get_color_by_name(const char *name); 00067 00074 extern stp_const_color_t 00075 stp_get_color_by_index(int idx); 00076 00082 extern const char * 00083 stp_color_get_name(stp_const_color_t c); 00084 00090 extern const char * 00091 stp_color_get_long_name(stp_const_color_t c); 00092 00093 00094 00095 #endif /* GIMP_PRINT_COLOR_H */ 00096 /* 00097 * End of "$Id: color.h,v 1.3 2004/04/10 03:37:48 rlk Exp $". 00098 */