home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-Developer.iso / NextLibrary / Frameworks / AppKit.framework / Versions / B / Headers / NSCursor.h < prev    next >
Text File  |  1996-10-17  |  1KB  |  53 lines

  1. /*
  2.     NSCursor.h
  3.     Application Kit
  4.     Copyright (c) 1994-1996, NeXT Software, Inc.
  5.     All rights reserved.
  6. */
  7.  
  8. #import <Foundation/NSObject.h>
  9. #import <Foundation/NSGeometry.h>
  10.  
  11. @class NSImage;
  12. @class NSEvent;
  13. @class NSColor;
  14.  
  15. @interface NSCursor : NSObject <NSCoding> {
  16.     NSPoint _hotSpot;
  17.     struct _cursorFlags {
  18.     unsigned int onMouseExited:1;
  19.     unsigned int onMouseEntered:1;
  20.     unsigned int :30;
  21.     } _flags;
  22.     id _image;
  23. #ifdef WIN32
  24.     void *_windowsCursor;
  25. #endif
  26. }
  27.  
  28. + (NSCursor *)currentCursor;
  29. + (NSCursor *)arrowCursor;
  30. + (NSCursor *)IBeamCursor;
  31.  
  32. - (id)initWithImage:(NSImage *)newImage hotSpot:(NSPoint)aPoint;
  33. - (id)initWithImage:(NSImage *)newImage    foregroundColorHint:(NSColor *)fg backgroundColorHint:(NSColor *)bg hotSpot:(NSPoint)hotSpot;
  34.  
  35. + (void)hide;
  36. + (void)unhide;
  37. + (void)setHiddenUntilMouseMoves:(BOOL)flag;
  38. + (void)pop;
  39.  
  40. - (NSImage *)image;
  41. - (NSPoint)hotSpot;
  42. - (void)push;
  43. - (void)pop;
  44. - (void)set;
  45. - (void)setOnMouseExited:(BOOL)flag;
  46. - (void)setOnMouseEntered:(BOOL)flag;
  47. - (BOOL)isSetOnMouseExited;
  48. - (BOOL)isSetOnMouseEntered;
  49. - (void)mouseEntered:(NSEvent *)theEvent;
  50. - (void)mouseExited:(NSEvent *)theEvent;
  51.  
  52. @end
  53.