libDXF 0.0.1
A library with DXF related functions written in C.
|
00001 00040 #ifndef LIBDXF_SRC_COLOR_H 00041 #define LIBDXF_SRC_COLOR_H 00042 00043 00044 #include "global.h" 00045 00046 00047 #ifdef __cplusplus 00048 extern "C" { 00049 #endif 00050 00051 00055 typedef struct 00056 { 00057 uint8_t r; 00059 uint8_t g; 00061 uint8_t b; 00063 uint8_t unused; 00065 char *name; 00067 struct DxfRGBColor *next; 00070 } DxfRGBColor; 00071 00072 00073 char *dxf_RGB_color_get_name (int RGB_color_hex_triplet); 00074 DxfRGBColor *dxf_RGB_color_new (); 00075 DxfRGBColor *dxf_RGB_color_set (int red, int green, int blue); 00076 int dxf_ACI_init (DxfRGBColor *ACI[DXF_COLOR_INDEX_MAX_NUMBER_OF_COLORS]); 00077 int dxf_RGB_to_triplet (int red, int green, int blue); 00078 int dxf_RGB_color_free (DxfRGBColor *RGB_color); 00079 void dxf_RGB_color_free_chain (DxfRGBColor *colors); 00080 00081 00082 #ifdef __cplusplus 00083 } 00084 #endif 00085 00086 00087 #endif /* LIBDXF_SRC_COLOR_H */ 00088 00089 00090 /* EOF */