jawt_md.h 995 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
  3. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. *
  5. *
  6. *
  7. *
  8. *
  9. *
  10. *
  11. *
  12. *
  13. *
  14. *
  15. *
  16. *
  17. *
  18. *
  19. *
  20. *
  21. *
  22. *
  23. *
  24. */
  25. #ifndef _JAVASOFT_JAWT_MD_H_
  26. #define _JAVASOFT_JAWT_MD_H_
  27. #include <X11/Xlib.h>
  28. #include <X11/Xutil.h>
  29. #include <X11/Intrinsic.h>
  30. #include "jawt.h"
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34. /*
  35. * X11-specific declarations for AWT native interface.
  36. * See notes in jawt.h for an example of use.
  37. */
  38. typedef struct jawt_X11DrawingSurfaceInfo {
  39. Drawable drawable;
  40. Display* display;
  41. VisualID visualID;
  42. Colormap colormapID;
  43. int depth;
  44. /*
  45. * Since 1.4
  46. * Returns a pixel value from a set of RGB values.
  47. * This is useful for paletted color (256 color) modes.
  48. */
  49. int (JNICALL *GetAWTColor)(JAWT_DrawingSurface* ds,
  50. int r, int g, int b);
  51. } JAWT_X11DrawingSurfaceInfo;
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55. #endif /* !_JAVASOFT_JAWT_MD_H_ */