22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
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 + (BOOL) hasPreciseScrollingDeltas: (NSEvent*) event;
46 @end
47
48 /*
49 * Utility Macros
50 */
51
52 /** Macro to cast a jlong to an Objective-C object (id). Casts to long on 32-bit systems to quiesce the compiler. */
53 #define OBJC(jl) ((id)jlong_to_ptr(jl))
|
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
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 + (BOOL) inDoDragDropLoop;
43 + (void) setInDoDragDropLoop:(BOOL)val;
44 + (long) getEventCount;
45 + (void) eventCountPlusPlus;
46 + (jint) scrollStateWithEvent: (NSEvent*) event;
47 + (BOOL) hasPreciseScrollingDeltas: (NSEvent*) event;
48 @end
49
50 /*
51 * Utility Macros
52 */
53
54 /** Macro to cast a jlong to an Objective-C object (id). Casts to long on 32-bit systems to quiesce the compiler. */
55 #define OBJC(jl) ((id)jlong_to_ptr(jl))
|