File:  [NeXTSTEP 3.3 examples] / Examples / AppKit / Draw / Scribble.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

#define CHUNK_SIZE 64	/* this is a malloc good size */

@interface Scribble : Graphic
{
    float *points;	/* the points in the scribble */
    char *userPathOps;	/* the linetos */
    int length;		/* the number of points */
    float bbox[4];	/* the bounding box of the scribble */
}

/* Factory methods */

+ cursor;

/* Free method */

- free;

/* Private methods */

- allocateChunk;

/* Methods overridden from superclass */

- (float)naturalAspectRatio;
- (int)moveCorner:(int)corner to:(const NXPoint *)point constrain:(BOOL)flag;
- (BOOL)create:(NXEvent *)event in:(GraphicView *)view;
- draw;

/* Archiving methods */

- 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.