1 /* xlp_color.h - XLP functions for manipulating colors 2 3 Copyright 2001 Carl Worth 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; either version 2, or (at your option) 8 any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 */ 15 16 #ifndef XLP_COLOR_H 17 #define XLP_COLOR_H 18 19 #include <X11/extensions/Xrender.h> 20 #include <X11/Xft/Xft.h> 21 #include "xlp_win.h" 22 23 struct xlp_color 24 { 25 XColor core_color; 26 XRenderColor color; 27 XftColor xft_color; 28 }; 29 typedef struct xlp_color xlp_color_t; 30 31 struct xlp_win; 32 int xlp_color_init(xlp_color_t *xlp_color, struct xlp_win *xlp_win, char *color); 33 void xlp_color_deinit(xlp_color_t *xlp_color, struct xlp_win *xlp_win); 34 35 #endif 36