Decalre to support copying.

Added event type NSScrollWheel and mask NSScrollWheelMask.
Declare methods mouseLocation and deltaX...deltaZ.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10631 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2001-08-01 22:45:38 +00:00
parent 6d7b4fe72c
commit e1c5be3cbb

View file

@ -61,7 +61,8 @@ typedef enum _NSEventType {
NSSystemDefined,
NSApplicationDefined,
NSPeriodic,
NSCursorUpdate
NSCursorUpdate,
NSScrollWheel
} NSEventType;
enum {
@ -85,6 +86,7 @@ enum {
NSApplicationDefinedMask = (1 << NSApplicationDefined),
NSPeriodicMask = (1 << NSPeriodic),
NSCursorUpdateMask = (1 << NSCursorUpdate),
NSScrollWheelMask = (1 << NSScrollWheel),
NSAnyEventMask = 0xffffffff
};
@ -99,7 +101,7 @@ enum {
NSFunctionKeyMask = 128
};
@interface NSEvent : NSObject <NSCoding>
@interface NSEvent : NSObject <NSCoding, NSCopying>
{
NSEventType event_type;
NSPoint location_point;
@ -204,6 +206,7 @@ enum {
/*
* Getting Mouse Event Information
*/
+ (NSPoint)mouseLocation;
- (int) clickCount;
- (int) eventNumber;
- (float) pressure;
@ -229,10 +232,11 @@ enum {
- (short) subtype;
/*
* NSCoding protocol
* Scroll event data
*/
- (void) encodeWithCoder: (NSCoder*)aCoder;
- (id) initWithCoder: (NSCoder*)aDecoder;
- (float)deltaX;
- (float)deltaY;
- (float)deltaZ;
@end