00001 /* 00002 * @(#)jawt_md.h 1.10 03/01/23 00003 * 00004 * Copyright 2003 Sun Microsystems, Inc. All rights reserved. 00005 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 00006 */ 00007 00008 #ifndef _JAVASOFT_JAWT_MD_H_ 00009 #define _JAVASOFT_JAWT_MD_H_ 00010 00011 #include <X11/Xlib.h> 00012 #include <X11/Xutil.h> 00013 #include <X11/Intrinsic.h> 00014 #include "jawt.h" 00015 00016 #ifdef __cplusplus 00017 extern "C" { 00018 #endif 00019 00020 /* 00021 * X11-specific declarations for AWT native interface. 00022 * See notes in jawt.h for an example of use. 00023 */ 00024 typedef struct jawt_X11DrawingSurfaceInfo { 00025 Drawable drawable; 00026 Display* display; 00027 VisualID visualID; 00028 Colormap colormapID; 00029 int depth; 00030 /* 00031 * Since 1.4 00032 * Returns a pixel value from a set of RGB values. 00033 * This is useful for paletted color (256 color) modes. 00034 */ 00035 int (JNICALL *GetAWTColor)(JAWT_DrawingSurface* ds, 00036 int r, int g, int b); 00037 } JAWT_X11DrawingSurfaceInfo; 00038 00039 #ifdef __cplusplus 00040 } 00041 #endif 00042 00043 #endif /* !_JAVASOFT_JAWT_MD_H_ */