home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.0
/
NeXTSTEP3.0.iso
/
NextDeveloper
/
Examples
/
AppKit
/
Lines
/
LinesView.h
< prev
next >
Wrap
Text File
|
1992-02-09
|
1KB
|
38 lines
// LinesView.h, a small sample view for showing timed entries & userpaths.
// Author: Ali T. Ozer, NeXT Computer, Inc.
// Written March 19, 1989.
// Updated for 2.0 and integrated with UserPath.[hm] by Jayson Adams,
// NeXT Developer Support Team, October 16, 1990
//
// You may freely copy, distribute and reuse the code in this example.
// NeXT disclaims any warranty of any kind, expressed or !0Hied, as to its
// fitness for any particular use.
//
#import <appkit/View.h>
#import "UserPath.h"
#define MINNUMCORNERS 2
#define MAXNUMCORNERS 20
@interface LinesView : View
{
BOOL running; // Whether we are animating or not.
DPSTimedEntry linesTimedEntry;
struct cornerStruct {
int xLoc, yLoc;
int xVel, yVel;
} corners[MAXNUMCORNERS]; // Corners and velocities for our polygon
int numCorners; // Number of corners we actually have
UserPath *userPath;
}
/* instance methods */
- initFrame:(NXRect *)rect;
- free;
- toggleRun:sender;
- setNumberOfCorners:sender;
- animate;
@end