supernova: allocators - fix construct method
[supercollider.git] / editors / scapp / include / TabletEvents.h
blobd4fa6ed1378d66967a05e973c5ee0ea1c2c58ce9
1 /*----------------------------------------------------------------------------
3 FILE NAME
5 TabletEvents.h - Header file for TabletEvent Category.
6 This is an extension to the NSEvent class.
8 COPYRIGHT
10 Copyright WACOM Technology, Inc. 2001.
12 All rights reserved.
14 ----------------------------------------------------------------------------*/
16 #import <Cocoa/Cocoa.h>
17 #import <Carbon/Carbon.h>
19 @interface NSEvent ( TabletEvents )
21 - (void *)eventRef;
22 - (BOOL) isTabletPointerEvent;
23 - (BOOL) isTabletProximityEvent;
24 - (void) setLocation:(NSPoint)loc;
25 - (TabletPointerRec) tabletRec;
26 - (SInt32) absoluteX;
27 - (SInt32) absoluteY;
28 - (SInt32) absoluteZ;
29 - (void) getAbsoluteX:(SInt32*)absX Y:(SInt32*)absY Z:(SInt32*)absZ;
30 - (NSPoint) tilt;
31 - (UInt16) rawTabletPressure;
32 - (float) scaledTabletPressure;
33 - (float) rotationInDegrees; /* 0¡ <-> +359.9999¡ */
34 - (float) rotationInRadians; /* 0 <-> 2¹ */
35 - (UInt16) deviceID;
37 @end
39 ///////////////////////////////////////////////////////////////////////////
40 /* This is the name of the Notification sent when a proximity event is
41 captured by the application */
42 extern NSString *kProximityNotification;
44 /* vendor-defined ID - typically will be USB vendor ID */
45 extern NSString *kVendorID;
47 /* vendor-defined tablet ID */
48 extern NSString *kTabletID;
50 /* vendor-defined ID of the specific pointing device */
51 extern NSString *kPointerID;
53 /* unique device ID - matches to deviceID field in tablet event */
54 extern NSString *kDeviceID;
56 /* unique tablet ID */
57 extern NSString *kSystemTabletID;
59 /* vendor-defined pointer type */
60 extern NSString *kVendorPointerType;
62 /* vendor-defined serial number of the specific pointing device */
63 extern NSString *kPointerSerialNumber;
65 /* vendor-defined unique ID for this pointer */
66 extern NSString *kUniqueID;
68 /* mask representing the capabilities of the device */
69 extern NSString *kCapabilityMask;
71 /* type of pointing device - enum to be defined */
72 extern NSString *kPointerType;
74 /* non-zero = entering; zero = leaving */
75 extern NSString *kEnterProximity;