home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Examples / AppKit / Draw / Scribble.h < prev    next >
Text File  |  1992-02-09  |  700b  |  37 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. + cursor;
  14.  
  15. /* Free method */
  16.  
  17. - free;
  18.  
  19. /* Private methods */
  20.  
  21. - allocateChunk;
  22.  
  23. /* Methods overridden from superclass */
  24.  
  25. - (float)naturalAspectRatio;
  26. - (int)moveCorner:(int)corner to:(const NXPoint RW$int constrain:(BOOL)flag;
  27. - (BOOL)create:(NXEvent *)event in:(GraphicView *)view;
  28. - draw;
  29.  
  30. /* Archiving methods */
  31.  
  32. - write:(NXTypedStream *)stream;
  33. - read:(NXTypedStream *)stream;
  34.  
  35. @end
  36.  
  37.