Annotation of Examples/AppKit/BackspaceViews/Sperm/SpermView.h, revision 1.1.1.1

1.1       root        1: #import <appkit/color.h>
                      2: #import <appkit/View.h>
                      3: #import "UserPath.h"
                      4: 
                      5: // you can change MAXCOUNT to anything higher if you want
                      6: #define MAXCOUNT 200
                      7: 
                      8: typedef double POINT[2];
                      9: typedef double VECTOR[2];
                     10: 
                     11: @interface SpermView : View {
                     12:     UserPath *uPath;
                     13:     POINT x[MAXCOUNT], prevX[MAXCOUNT];
                     14:     VECTOR v[MAXCOUNT];
                     15:     VECTOR mouse;
                     16:     double sine[MAXCOUNT];
                     17:     double cosine[MAXCOUNT];
                     18:     double vel[MAXCOUNT];
                     19:     double rad;
                     20:     double dir;
                     21:     NXColor color; 
                     22:     int oldEventMask;
                     23:        BOOL alreadyInitialized;
                     24:        int randCount1, randCount2;
                     25: 
                     26:        BOOL useColors; 
                     27:        NXCoord lineWidth;
                     28:        int count;
                     29:        id inspectorPanel;
                     30: 
                     31:        id spermCountSlider;
                     32:        id spermWidthSlider;
                     33:        id colorButton;
                     34: }
                     35: 
                     36: extern id SP_sharedInspectorPanel;
                     37: extern BOOL SP_useColors; 
                     38: extern NXCoord SP_lineWidth;
                     39: extern int SP_count;
                     40: 
                     41: - initFrame:(const NXRect *)rect;
                     42: - (void)initializeLine:(int)i;
                     43: - oneStep;
                     44: - drawPath;
                     45: - drawSelf:(const NXRect *)rects :(int)rectCount;
                     46: - free;
                     47: 
                     48: - newWindow;
                     49: 
                     50: - effectOne;
                     51: - effectTwo;
                     52: - effectThree;
                     53: - effectFour;
                     54: - effectFive;
                     55: - effectSix;
                     56: - effectSeven;
                     57: - doEffectNumber:(int)val;
                     58: 
                     59: - setNumLines:sender;
                     60: - getSpermCount;
                     61: - setUseColor:sender;
                     62: - getUseColor;
                     63: - setLineWidth:sender;
                     64: - getLineWidth;
                     65: 
                     66: - inspector:sender;
                     67: @end

unix.superglobalmegacorp.com

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