jawt_md.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*========================================================================
  2. * Licensed Materials - Property of IBM
  3. * "Restricted Materials of IBM"
  4. *
  5. * IBM SDK, Java(tm) Technology Edition, v8
  6. * (C) Copyright IBM Corp. 2000, 2014. All Rights Reserved
  7. *
  8. * US Government Users Restricted Rights - Use, duplication or disclosure
  9. * restricted by GSA ADP Schedule Contract with IBM Corp.
  10. *========================================================================
  11. */
  12. /*
  13. * Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
  14. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  15. *
  16. *
  17. *
  18. *
  19. *
  20. *
  21. *
  22. *
  23. *
  24. *
  25. *
  26. *
  27. *
  28. *
  29. *
  30. *
  31. *
  32. *
  33. *
  34. *
  35. */
  36. #ifndef _JAVASOFT_JAWT_MD_H_
  37. #define _JAVASOFT_JAWT_MD_H_
  38. #include <X11/Xlib.h>
  39. #include <X11/Xutil.h>
  40. #include <X11/Intrinsic.h>
  41. #include "jawt.h"
  42. #ifdef __cplusplus
  43. extern "C" {
  44. #endif
  45. /*
  46. * X11-specific declarations for AWT native interface.
  47. * See notes in jawt.h for an example of use.
  48. */
  49. typedef struct jawt_X11DrawingSurfaceInfo {
  50. Drawable drawable;
  51. Display* display;
  52. VisualID visualID;
  53. Colormap colormapID;
  54. int depth;
  55. /*
  56. * Since 1.4
  57. * Returns a pixel value from a set of RGB values.
  58. * This is useful for paletted color (256 color) modes.
  59. */
  60. int (JNICALL *GetAWTColor)(JAWT_DrawingSurface* ds,
  61. int r, int g, int b);
  62. } JAWT_X11DrawingSurfaceInfo;
  63. #ifdef __cplusplus
  64. }
  65. #endif
  66. #endif /* !_JAVASOFT_JAWT_MD_H_ */