File: x_color_config.h

package info (click to toggle)
mlterm 3.1.2-1.3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 23,168 kB
  • sloc: ansic: 102,795; sh: 9,676; java: 2,018; perl: 1,601; makefile: 1,595; cpp: 771; sed: 16
file content (46 lines) | stat: -rw-r--r-- 947 bytes parent folder | download
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
/*
 *	$Id$
 */

#ifndef  __X_COLOR_CONFIG_H__
#define  __X_COLOR_CONFIG_H__


#include  <kiklib/kik_map.h>

#include  "x_color.h"


typedef struct x_rgb
{
	u_int8_t  red ;
	u_int8_t  green ;
	u_int8_t  blue ;
	u_int8_t  alpha ;
	
} x_rgb_t ;

KIK_MAP_TYPEDEF( x_color_rgb , char * , x_rgb_t) ;

typedef struct x_color_config
{
	KIK_MAP( x_color_rgb)  color_rgb_table ;
	
} x_color_config_t ;


int  x_color_config_init( x_color_config_t *  color_config) ;

int  x_color_config_final( x_color_config_t *  color_config) ;

int  x_color_config_set_rgb( x_color_config_t *  color_config , char *  color ,
	u_int8_t  red , u_int8_t  green , u_int8_t  blue , u_int8_t  alpha) ;

int  x_color_config_get_rgb( x_color_config_t *  color_config , u_int8_t *  red ,
	u_int8_t *  green , u_int8_t *  blue , u_int8_t *  alpha , char *  color) ;

int  x_customize_color_file( x_color_config_t *  color_config,
	char *  color, char *  rgb, int  save) ;


#endif