#include "../jnilib.h"
Include dependency graph for color.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | Color |
| Struct Color descripes a RGBA color. More... | |
Defines | |
| #define | CLS_COLOR "java/awt/Color" |
| Defines the full name of the Java Color-Class. | |
Typedefs | |
| typedef Color | Color |
| Struct Color descripes a RGBA color. | |
Functions | |
| jobject | convertColor (const Color *color) |
| Converts a Color struct to a Java Color-Object. | |
| Color | convertJavaColor (jobject color) |
| Converts a Java Color-Object to a Color struct. | |
Variables | |
| static const Color | BLACK = {0, 0, 0, 255} |
| static const Color | BLUE = {0, 0, 255, 255} |
| static const Color | GRAY = {190, 190, 190, 255} |
| static const Color | GREEN = {0, 255, 0, 255} |
| static const Color | ORANGE = {255, 165, 0, 255} |
| static const Color | RED = {255, 0, 0, 255} |
| static const Color | WHITE = {255, 255, 255, 255} |
| static const Color | YELLOW = {255, 255, 0, 255} |
This Color structure is an "equivalent" to the Java color. It holds the same values namely red, green, blue and alpha. Each value can be a number from 0 to 255. An alpha value of 0 means transparent and an alpha value of 255 means opaque.
Definition in file color.h.
|
|
Defines the full name of the Java Color-Class.
|
|
|
Struct Color descripes a RGBA color. It holds the values for red, green, blue and alpha part of a color. |
|
|
Converts a Color struct to a Java Color-Object.
|
|
|
Converts a Java Color-Object to a Color struct.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.4