home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer) / NeXT_Developer-3.3.iso / NextDeveloper / Examples / AppKit / Draw / Line.h < prev    next >
Encoding:
Text File  |  1992-02-17  |  604 b   |  34 lines

  1. @interface Line : Graphic
  2. {
  3.     int startCorner;    /* corner we start creating from */
  4. }
  5.  
  6. /* Initialization method */
  7.  
  8. + initialize;
  9.  
  10. /* Creation method */
  11.  
  12. - init;
  13.  
  14. /* Methods overridden from superclass */
  15.  
  16. - (BOOL)isValid;
  17. - (int)moveCorner:(int)corner to:(const NXPoint *)point constrain:(BOOL)flag;
  18. - constrainCorner:(int)corner toAspectRatio:(float)ratio;
  19. - (int)cornerMask;
  20. - draw;
  21. - (BOOL)hit:(const NXPoint *)point;
  22.  
  23. /* Methods to be overridden by subclassers */
  24.  
  25. - (float)arrowAngle:(int)corner;
  26. - drawLine;
  27.  
  28. /* Archiving */
  29.  
  30. - write:(NXTypedStream *)stream;
  31. - read:(NXTypedStream *)stream;
  32.  
  33. @end
  34.