jawt_md.h 898 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * Copyright (c) 1999, 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 <windows.h>
  28. #include "jawt.h"
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32. /*
  33. * Win32-specific declarations for AWT native interface.
  34. * See notes in jawt.h for an example of use.
  35. */
  36. typedef struct jawt_Win32DrawingSurfaceInfo {
  37. /* Native window, DDB, or DIB handle */
  38. union {
  39. HWND hwnd;
  40. HBITMAP hbitmap;
  41. void* pbits;
  42. };
  43. /*
  44. * This HDC should always be used instead of the HDC returned from
  45. * BeginPaint() or any calls to GetDC().
  46. */
  47. HDC hdc;
  48. HPALETTE hpalette;
  49. } JAWT_Win32DrawingSurfaceInfo;
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif /* !_JAVASOFT_JAWT_MD_H_ */