home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Examples / AppKit / Draw / Scribble.h < prev    next >
Text File  |  1995-09-04  |  741b  |  36 lines

  1. #define CHUNK_SIZE 64    /* this is a malloc good size */
  2.  
  3. @interface Scribble : Graphic
  4. {
  5.     float *points;    /* the points in the scribble */
  6.     char *userPathOps;    /* the linetos */
  7.     int length;        /* the number of points */
  8.     float bbox[4];    /* the bounding box of the scribble */
  9. }
  10.  
  11. /* Factory methods */
  12.  
  13. + (NSCursor *)cursor;
  14.  
  15. /* Free method */
  16.  
  17. - (void)dealloc;
  18.  
  19. /* Private methods */
  20.  
  21. - (void)allocateChunk;
  22.  
  23. /* Methods overridden from superclass */
  24.  
  25. - (float)naturalAspectRatio;
  26. - (int)moveCorner:(int)corner to:(NSPoint)point constrain:(BOOL)flag;
  27. - (BOOL)create:(NSEvent *)event in:(GraphicView *)view;
  28. - draw;
  29.  
  30. /* Archiving methods */
  31.  
  32. - (id)propertyList;
  33. - initFromPropertyList:(id)plist inDirectory:(NSString *)directory;
  34.  
  35. @end
  36.