src/share/javavm/export/jawt.h

Print this page
rev 8336 : 8016096: [macosx] jawt_md.h shipped with jdk is outdated
Summary: Revised build system and added platform specific headers for Mac OS X
Reviewed-by:
Contributed-by: david.dehaven@oracle.com


 137  * JAWT_Rectangle
 138  * Structure for a native rectangle.
 139  */
 140 typedef struct jawt_Rectangle {
 141     jint x;
 142     jint y;
 143     jint width;
 144     jint height;
 145 } JAWT_Rectangle;
 146 
 147 struct jawt_DrawingSurface;
 148 
 149 /*
 150  * JAWT_DrawingSurfaceInfo
 151  * Structure for containing the underlying drawing information of a component.
 152  */
 153 typedef struct jawt_DrawingSurfaceInfo {
 154     /*
 155      * Pointer to the platform-specific information.  This can be safely
 156      * cast to a JAWT_Win32DrawingSurfaceInfo on Windows or a
 157      * JAWT_X11DrawingSurfaceInfo on Solaris.  See jawt_md.h for details.


 158      */
 159     void* platformInfo;
 160     /* Cached pointer to the underlying drawing surface */
 161     struct jawt_DrawingSurface* ds;
 162     /* Bounding rectangle of the drawing surface */
 163     JAWT_Rectangle bounds;
 164     /* Number of rectangles in the clip */
 165     jint clipSize;
 166     /* Clip rectangle array */
 167     JAWT_Rectangle* clip;
 168 } JAWT_DrawingSurfaceInfo;
 169 
 170 #define JAWT_LOCK_ERROR                 0x00000001
 171 #define JAWT_LOCK_CLIP_CHANGED          0x00000002
 172 #define JAWT_LOCK_BOUNDS_CHANGED        0x00000004
 173 #define JAWT_LOCK_SURFACE_CHANGED       0x00000008
 174 
 175 /*
 176  * JAWT_DrawingSurface
 177  * Structure for containing the underlying drawing information of a component.




 137  * JAWT_Rectangle
 138  * Structure for a native rectangle.
 139  */
 140 typedef struct jawt_Rectangle {
 141     jint x;
 142     jint y;
 143     jint width;
 144     jint height;
 145 } JAWT_Rectangle;
 146 
 147 struct jawt_DrawingSurface;
 148 
 149 /*
 150  * JAWT_DrawingSurfaceInfo
 151  * Structure for containing the underlying drawing information of a component.
 152  */
 153 typedef struct jawt_DrawingSurfaceInfo {
 154     /*
 155      * Pointer to the platform-specific information.  This can be safely
 156      * cast to a JAWT_Win32DrawingSurfaceInfo on Windows or a
 157      * JAWT_X11DrawingSurfaceInfo on Solaris. On Mac OS X this is a
 158      * pointer to a NSObject that conforms to the JAWT_SurfaceLayers
 159      * protocol. See jawt_md.h for details.
 160      */
 161     void* platformInfo;
 162     /* Cached pointer to the underlying drawing surface */
 163     struct jawt_DrawingSurface* ds;
 164     /* Bounding rectangle of the drawing surface */
 165     JAWT_Rectangle bounds;
 166     /* Number of rectangles in the clip */
 167     jint clipSize;
 168     /* Clip rectangle array */
 169     JAWT_Rectangle* clip;
 170 } JAWT_DrawingSurfaceInfo;
 171 
 172 #define JAWT_LOCK_ERROR                 0x00000001
 173 #define JAWT_LOCK_CLIP_CHANGED          0x00000002
 174 #define JAWT_LOCK_BOUNDS_CHANGED        0x00000004
 175 #define JAWT_LOCK_SURFACE_CHANGED       0x00000008
 176 
 177 /*
 178  * JAWT_DrawingSurface
 179  * Structure for containing the underlying drawing information of a component.