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

  1. @interface Line : Graphic
  2. {
  3.     int startCorner;    /* corner we start creating from */
  4. }
  5.  
  6. /* Creation method */
  7.  
  8. - (id)init;
  9.  
  10. /* Methods overridden from superclass */
  11.  
  12. - (BOOL)isValid;
  13. - (int)moveCorner:(int)corner to:(NSPoint)point constrain:(BOOL)flag;
  14. - (void)constrainCorner:(int)corner toAspectRatio:(float)ratio;
  15. - (int)cornerMask;
  16. - draw;
  17. - (BOOL)hit:(NSPoint)point;
  18.  
  19. /* Methods to be overridden by subclassers */
  20.  
  21. - (float)arrowAngle:(int)corner;
  22. - (void)drawLine;
  23.  
  24. /* Archiving */
  25.  
  26. - (id)propertyList;
  27. - initFromPropertyList:(id)plist inDirectory:(NSString *)directory;
  28.  
  29. @end
  30.