|
|
1.1 ! root 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 *)point 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:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.