home *** CD-ROM | disk | FTP | other *** search
- /*
- * MouseView -- John Glover, adapted from MouseTracker by 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>
-
- @interface MouseView:View
- {
- }
-
- - setTrackingRect:sender;
- - mouseEntered:(NXEvent *)e;
- - mouseExited:(NXEvent *)e;
-
- - mouseDownAction:(NXPoint *)currentLocation;
- - mouseDraggedAction:(NXPoint *)currentLocation;
- - mouseUpAction:(NXPoint *)currentLocation;
-
- @end
-