File: ml_color_custom.h

package info (click to toggle)
mlterm 2.4.0.cvs20020414-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 14,416 kB
  • ctags: 3,528
  • sloc: ansic: 48,035; sh: 6,413; perl: 1,701; makefile: 443
file content (44 lines) | stat: -rw-r--r-- 941 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
/*
 *	$Id: ml_color_custom.h,v 1.2 2002/03/28 20:17:23 arakiken Exp $
 */

#ifndef  __ML_COLOR_CUSTOM_H__
#define  __ML_COLOR_CUSTOM_H__


#include  <kiklib/kik_map.h>

#include  "ml_color.h"


typedef struct ml_rgb
{
	u_short  red ;
	u_short  green ;
	u_short  blue ;
	
} ml_rgb_t ;

KIK_MAP_TYPEDEF( ml_color_rgb , char * , ml_rgb_t) ;

typedef struct ml_color_custom
{
	KIK_MAP( ml_color_rgb)  color_rgb_table ;
	
} ml_color_custom_t ;


int  ml_color_custom_init( ml_color_custom_t *  color_custom) ;

int  ml_color_custom_final( ml_color_custom_t *  color_custom) ;

int  ml_color_custom_read_conf( ml_color_custom_t *  color_custom , char *  filename) ;

int  ml_color_custom_set_rgb( ml_color_custom_t *  color_custom , char *  color ,
	u_short  red , u_short  green , u_short  blue) ;

int  ml_color_custom_get_rgb( ml_color_custom_t *  color_custom ,
	u_short *  red , u_short *  green , u_short *  blue , char *  color) ;


#endif