File:  [NeXTSTEP 3.3 examples] / Examples / AppKit / Draw / Line.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:48:37 2018 UTC (8 years, 1 month ago) by root
Branches: NeXT, MAIN
CVS tags: NeXTSTEP33, HEAD
Sample Programs from NeXSTEP 3.3

@interface Line : Graphic
{
    int startCorner;	/* corner we start creating from */
}

/* Initialization method */

+ initialize;

/* Creation method */

- init;

/* Methods overridden from superclass */

- (BOOL)isValid;
- (int)moveCorner:(int)corner to:(const NXPoint *)point constrain:(BOOL)flag;
- constrainCorner:(int)corner toAspectRatio:(float)ratio;
- (int)cornerMask;
- draw;
- (BOOL)hit:(const NXPoint *)point;

/* Methods to be overridden by subclassers */

- (float)arrowAngle:(int)corner;
- drawLine;

/* Archiving */

- write:(NXTypedStream *)stream;
- read:(NXTypedStream *)stream;

@end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.