1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
/*
* $Id$
*/
#ifndef __X_COLOR_H__
#define __X_COLOR_H__
#include <kiklib/kik_types.h>
#include <kiklib/kik_mem.h> /* alloca */
#include "x_display.h"
#ifdef USE_WIN32GUI
typedef struct x_color
{
/* Public */
u_long pixel ;
} x_color_t ;
#else
typedef struct x_color
{
/* Public */
u_long pixel ;
/* Private except x_color_cache.c */
u_int8_t red ;
u_int8_t green ;
u_int8_t blue ;
u_int8_t alpha ;
} x_color_t ;
#endif
int x_load_named_xcolor( x_display_t * disp , x_color_t * xcolor , char * name) ;
int x_load_rgb_xcolor( x_display_t * disp , x_color_t * xcolor ,
u_int8_t red , u_int8_t green , u_int8_t blue , u_int8_t alpha) ;
int x_unload_xcolor( x_display_t * disp , x_color_t * xcolor) ;
int x_get_xcolor_rgb( u_int8_t * red , u_int8_t * green , u_int8_t * blue , u_int8_t * alpha ,
x_color_t * xcolor) ;
int x_xcolor_fade( x_display_t * , x_color_t * xcolor , u_int fade_ratio) ;
#endif
|