/* * Color.h -- Header for color routines. * * Authors : Patrick Lecoanet. * Creation date : Thu Dec 16 15:41:04 1999 * * $Id$ */ /* * Copyright (c) 1993 - 1999 CENA, Patrick Lecoanet -- * * This code is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This code is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this code; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * */ #ifndef _Color_h #define _Color_h #include "Types.h" typedef struct _ColorGradient *ZnColorGradient; XColor *ZnGetColor(Tcl_Interp *interp, Tk_Window tkwin, Tk_Uid name); XColor *ZnGetColorByValue(Tk_Window tkwin, XColor *color); char *ZnNameOfColor(XColor *color); void ZnFreeColor(XColor *color); ZnColorGradient ZnGetColorGradient(Tcl_Interp *interp, Tk_Window tkwin, Tk_Uid name); ZnColorGradient ZnGetColorGradientByValue(ZnColorGradient gradient); ZnColorGradient ZnGetReliefGradient(Tcl_Interp *interp, Tk_Window tkwin, Tk_Uid name); int ZnColorGradientSpan(ZnColorGradient); XColor *ZnColorGradientColor(Tk_Window tkwin, ZnColorGradient gradient, int color_index); XColor *ZnColorGradientMidColor(Tk_Window tkwin, ZnColorGradient gradient); char *ZnNameOfColorGradient(ZnColorGradient gradient); void ZnFreeColorGradient(ZnColorGradient gradient); #endif /* _Color_h */