ftp.nice.ch/pub/next/developer/hardware/powerglove/PGlove.N.bs.tar.gz#/PowerGlove/PaintLab/MouseTracker.h

This is MouseTracker.h in view mode; [Download] [Up]

/*
 *	MouseTracker -- Randy Nelson
 *	An abstract class that manages a modal loop for tracking the mouse
 *
 *	You may freely copy, distribute and reuse the code in this example.
 *	NeXT disclaims any warranty of any kind, expressed or implied, as to
 *	its fitness for any particular use.
 */

#import <appkit/View.h>
#import <dpsclient/dpsclient.h>		/* timer events */

@interface MouseTracker:View
{
    float frameGray, backgroundGray;
}
- (float)frameGray;
- setFrameGray:(float)newGray;
- newFrameGray:sender;

- (float)backgroundGray;
- setBackgroundGray:(float)newGray;
- newBackgroundGray:sender;

- setTrackingRect:sender;
- mouseEntered:(NXEvent *)e;
- mouseExited:(NXEvent *)e;

- mouseDownAction:(NXPoint *)currentLocation;
- mouseDraggedAction:(NXPoint *)currentLocation;
- mouseUpAction:(NXPoint *)currentLocation;

@end

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.