mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 10:01:14 +00:00
Tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12956 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c648c250e7
commit
bcaa4a4c28
2 changed files with 30 additions and 52 deletions
|
@ -2,7 +2,8 @@
|
|||
|
||||
* Headers/AppKit/NSEvent.h: Rename 'middle' mouse to 'other' as
|
||||
MacOS-X has caught up with the functionality but not adopted our
|
||||
names. Add -buttonNumber
|
||||
names. Add -buttonNumber. Add conditional compilation for strict
|
||||
openstep to exclude new methods.
|
||||
* Headers/AppKit/NSResponder.h: ditto
|
||||
* Source/Functions.m: ditto
|
||||
* Source/GSComboSupport.m: ditto
|
||||
|
|
|
@ -146,10 +146,6 @@ enum {
|
|||
} event_data;
|
||||
}
|
||||
|
||||
/*
|
||||
* Creating NSEvent objects
|
||||
*/
|
||||
|
||||
+ (NSEvent*) enterExitEventWithType: (NSEventType)type
|
||||
location: (NSPoint)location
|
||||
modifierFlags: (unsigned int)flags
|
||||
|
@ -181,6 +177,7 @@ enum {
|
|||
clickCount: (int)clickNum
|
||||
pressure: (float)pressureValue;
|
||||
|
||||
#ifndef NO_GNUSTEP
|
||||
+ (NSEvent*) mouseEventWithType: (NSEventType)type
|
||||
location: (NSPoint)location
|
||||
modifierFlags: (unsigned int)flags
|
||||
|
@ -190,6 +187,9 @@ enum {
|
|||
deltaX: (float)deltaX
|
||||
deltaY: (float)deltaY
|
||||
deltaZ: (float)deltaZ;
|
||||
#endif
|
||||
|
||||
+ (NSPoint)mouseLocation;
|
||||
|
||||
+ (NSEvent*) otherEventWithType: (NSEventType)type
|
||||
location: (NSPoint)location
|
||||
|
@ -201,62 +201,39 @@ enum {
|
|||
data1: (int)data1
|
||||
data2: (int)data2;
|
||||
|
||||
/*
|
||||
* Getting General Event Information
|
||||
*/
|
||||
#ifndef STRICT_OPENSTEP
|
||||
- (int) buttonNumber;
|
||||
#endif
|
||||
- (NSGraphicsContext*) context;
|
||||
- (NSPoint) locationInWindow;
|
||||
- (unsigned int) modifierFlags;
|
||||
- (NSTimeInterval) timestamp;
|
||||
- (NSEventType) type;
|
||||
- (NSWindow *) window;
|
||||
- (int) windowNumber;
|
||||
|
||||
/*
|
||||
* Getting Key Event Information
|
||||
*/
|
||||
- (NSString *) characters;
|
||||
- (NSString *) charactersIgnoringModifiers;
|
||||
- (BOOL) isARepeat;
|
||||
- (unsigned short) keyCode;
|
||||
|
||||
/*
|
||||
* Getting Mouse Event Information
|
||||
*/
|
||||
+ (NSPoint)mouseLocation;
|
||||
- (int) clickCount;
|
||||
- (int) eventNumber;
|
||||
- (float) pressure;
|
||||
|
||||
/*
|
||||
* Getting Tracking Event Information
|
||||
*/
|
||||
- (int) trackingNumber;
|
||||
- (void *) userData;
|
||||
|
||||
/*
|
||||
* Requesting Periodic Events
|
||||
*/
|
||||
+ (void) startPeriodicEventsAfterDelay: (NSTimeInterval)delaySeconds
|
||||
withPeriod: (NSTimeInterval)periodSeconds;
|
||||
+ (void) stopPeriodicEvents;
|
||||
|
||||
/*
|
||||
* Getting Information about Specially Defined Events
|
||||
*/
|
||||
|
||||
#ifndef STRICT_OPENSTEP
|
||||
- (int) buttonNumber;
|
||||
#endif
|
||||
- (NSString *) characters;
|
||||
- (NSString *) charactersIgnoringModifiers;
|
||||
- (int) clickCount;
|
||||
- (NSGraphicsContext*) context;
|
||||
- (int) data1;
|
||||
- (int) data2;
|
||||
- (short) subtype;
|
||||
|
||||
/*
|
||||
* Scroll event data
|
||||
*/
|
||||
#ifndef STRICT_OPENSTEP
|
||||
- (float)deltaX;
|
||||
- (float)deltaY;
|
||||
- (float)deltaZ;
|
||||
#endif
|
||||
- (int) eventNumber;
|
||||
- (BOOL) isARepeat;
|
||||
- (unsigned short) keyCode;
|
||||
- (NSPoint) locationInWindow;
|
||||
- (unsigned int) modifierFlags;
|
||||
- (float) pressure;
|
||||
- (short) subtype;
|
||||
- (NSTimeInterval) timestamp;
|
||||
- (int) trackingNumber;
|
||||
- (NSEventType) type;
|
||||
- (void *) userData;
|
||||
- (NSWindow *) window;
|
||||
- (int) windowNumber;
|
||||
|
||||
|
||||
@end
|
||||
|
||||
|
|
Loading…
Reference in a new issue