diff options
author | Sven Gothel <[email protected]> | 2011-10-29 15:10:48 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-10-29 15:10:48 +0200 |
commit | 6a770d1ec80a656db62feb8100e3fe58800e79af (patch) | |
tree | b20ea684417f6945b30426782e1442382ec1afb8 /make/stub_includes | |
parent | bc826eb2e216ce82a5e6bc61403e4eff2f338380 (diff) |
MacOsX/JAWT_SurfaceLayers/CALayers: Kick off / JAWT_getAWT() CALAYER version support.
Diffstat (limited to 'make/stub_includes')
-rw-r--r-- | make/stub_includes/jni/macosx/jawt_md.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/make/stub_includes/jni/macosx/jawt_md.h b/make/stub_includes/jni/macosx/jawt_md.h index aca47f66e..3a371af0d 100644 --- a/make/stub_includes/jni/macosx/jawt_md.h +++ b/make/stub_includes/jni/macosx/jawt_md.h @@ -9,17 +9,35 @@ #include <jawt.h> #include <AppKit/NSView.h> +#include <QuartzCore/CALayer.h> #ifdef __cplusplus extern "C" { #endif +/** + * JAWT_DrawingSurfaceInfo.getPlatformInfo() + * + * Only if not JAWT_SurfaceLayers, see below! + */ typedef struct JAWT_MacOSXDrawingSurfaceInfo { - NSView *cocoaViewRef; // the view is guaranteed to be valid only for the duration of Component.paint method + /** the view is guaranteed to be valid only for the duration of Component.paint method */ + NSView *cocoaViewRef; } JAWT_MacOSXDrawingSurfaceInfo; +/** + * JAWT_DrawingSurfaceInfo.getPlatformInfo() + * + * >= 10.6.4 if JAWT_MACOSX_USE_CALAYER is set in JAWT version + */ +typedef struct JAWT_SurfaceLayers +{ + CALayer *layer; +} +JAWT_SurfaceLayers; + #ifdef __cplusplus } #endif |