src/macosx/native/sun/awt/LWCToolkit.h

Print this page




  27 #import <assert.h>
  28 
  29 #import <Cocoa/Cocoa.h>
  30 #import <JavaNativeFoundation/JavaNativeFoundation.h>
  31 #import <CoreServices/CoreServices.h>
  32 #import <AudioToolbox/AudioToolbox.h>
  33 
  34 #define DEBUG 1
  35 
  36 // number of mouse buttons supported
  37 extern int gNumberOfButtons;
  38 
  39 // InputEvent mask array
  40 extern jint* gButtonDownMasks;
  41 
  42 @interface AWTToolkit : NSObject { }
  43 + (long) getEventCount;
  44 + (void) eventCountPlusPlus;
  45 @end
  46 
  47 CGDirectDisplayID FindCGDirectDisplayIDForScreenIndex(jint screenIndex);
  48 
  49 /*
  50  * Utility Macros
  51  */
  52 
  53 /** Macro to cast a jlong to an Objective-C object (id). Casts to long on 32-bit systems to quiesce the compiler. */
  54 #define OBJC(jl) ((id)jlong_to_ptr(jl))


  27 #import <assert.h>
  28 
  29 #import <Cocoa/Cocoa.h>
  30 #import <JavaNativeFoundation/JavaNativeFoundation.h>
  31 #import <CoreServices/CoreServices.h>
  32 #import <AudioToolbox/AudioToolbox.h>
  33 
  34 #define DEBUG 1
  35 
  36 // number of mouse buttons supported
  37 extern int gNumberOfButtons;
  38 
  39 // InputEvent mask array
  40 extern jint* gButtonDownMasks;
  41 
  42 @interface AWTToolkit : NSObject { }
  43 + (long) getEventCount;
  44 + (void) eventCountPlusPlus;
  45 @end
  46 


  47 /*
  48  * Utility Macros
  49  */
  50 
  51 /** Macro to cast a jlong to an Objective-C object (id). Casts to long on 32-bit systems to quiesce the compiler. */
  52 #define OBJC(jl) ((id)jlong_to_ptr(jl))