home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / appkit / NXCursor.h < prev    next >
Text File  |  1990-10-15  |  1KB  |  57 lines

  1. /*
  2.     NXCursor.h
  3.     Application Kit, Release 2.0
  4.     Copyright (c) 1988, 1989, 1990, NeXT, Inc.  All rights reserved. 
  5. */
  6.  
  7. #import <objc/Object.h>
  8. #import "NXImage.h"
  9.  
  10. /* AppKit Cursors */
  11.  
  12. #define    NXarrow    NXArrow
  13. #define    NXiBeam    NXIBeam
  14.  
  15. extern id       NXArrow;     /* Arrow cursor */
  16. extern id       NXIBeam;    /* Text cursor */
  17.  
  18. @interface NXCursor : Object
  19. {
  20.     NXPoint             hotSpot;
  21.     struct _csrFlags {
  22.     unsigned int        onMouseExited:1;
  23.     unsigned int        onMouseEntered:1;
  24.     unsigned int        _RESERVED:14;
  25.     }                   cFlags;
  26.     id            image;
  27.     unsigned int    _reservedInt;
  28. }
  29.  
  30. + pop;
  31. + currentCursor;
  32.  
  33. - init;
  34. - initFromImage:newImage;
  35.  
  36. - image;
  37. - setImage:newImage;
  38. - setHotSpot:(const NXPoint *)spot;
  39. - push;
  40. - pop;
  41. - set;
  42. - setOnMouseExited:(BOOL)flag;
  43. - setOnMouseEntered:(BOOL)flag;
  44. - mouseEntered:(NXEvent *)theEvent;
  45. - mouseExited:(NXEvent *)theEvent;
  46. - read:(NXTypedStream *)stream;
  47. - write:(NXTypedStream *)stream;
  48.  
  49. /* 
  50.  * The following new... methods are now obsolete.  They remain in this  
  51.  * interface file for backward compatibility only.  Use Object's alloc method  
  52.  * and the init... methods defined in this class instead.
  53.  */
  54. + newFromImage:newImage;
  55.  
  56. @end
  57.