color.h

Go to the documentation of this file.
00001 
00014 #ifndef _COLOR_H_
00015 #define _COLOR_H_
00016 
00017 #include "../jnilib.h"
00018 
00019 #ifdef __cplusplus
00020 extern "C" {
00021 #endif
00022 
00024 #define CLS_COLOR "java/awt/Color"
00025 
00030 typedef struct Color {
00031    unsigned char red; 
00032    unsigned char green; 
00033    unsigned char blue; 
00034    unsigned char alpha; 
00035 } Color;
00036 
00037 /* Predefined Colors */
00038 static const Color WHITE = {255, 255, 255, 255};
00039 static const Color BLACK = {0, 0, 0, 255};
00040 static const Color GRAY = {190, 190, 190, 255};
00041 static const Color RED = {255, 0, 0, 255};
00042 static const Color GREEN = {0, 255, 0, 255};
00043 static const Color BLUE = {0, 0, 255, 255};
00044 static const Color YELLOW = {255, 255, 0, 255};
00045 static const Color ORANGE = {255, 165, 0, 255};
00046 
00047 
00048 Color convertJavaColor(jobject color);
00049 jobject convertColor(const Color* color);
00050 
00051 #ifdef __cplusplus
00052 } /* extern "C" */
00053 #endif
00054 
00055 #endif /* _COLOR_H_ */
00056 
00057 /* end of file color.h */

Generated on Sat Nov 19 14:11:11 2005 for GrubC by  doxygen 1.4.4