< prev index next >

src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.h

Print this page




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

  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))


  24  */
  25 
  26 #include "jni.h"
  27 
  28 #import <pthread.h>
  29 #import <assert.h>
  30 
  31 #import <Cocoa/Cocoa.h>
  32 
  33 #define DEBUG 1
  34 
  35 // number of mouse buttons supported
  36 extern int gNumberOfButtons;
  37 
  38 // InputEvent mask array
  39 extern jint* gButtonDownMasks;
  40 
  41 @interface AWTToolkit : NSObject { }
  42 + (long) getEventCount;
  43 + (void) eventCountPlusPlus;
  44 + (jint) scrollStateWithEvent: (NSEvent*) event;
  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))
< prev index next >