< prev index next >

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

Print this page




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

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


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