home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Apps / ScreenSavers / BackSpaceViews / SpiralView.BackModule / Source / SpiralView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-01  |  1.3 KB  |  65 lines

  1. #import <dpsclient/event.h>
  2.  
  3. // Constants
  4. #define MAXSPIRALS    100
  5. #define MINRADIUS 50
  6. #define MAXRADIUS 300
  7.  
  8.  
  9. @interface SpiralView:View
  10. {
  11.     float    minRadius;
  12.     float    maxRadius;
  13.     float    maxSpirals;
  14.  
  15.     int    numSpirals;
  16.     float    x,y;            // coordinates of center of circle
  17.     float    radius;            // radius of circle
  18.     int    colorIndex;
  19.     float    degree;            // degrees of circle to arc at
  20.     int    degIterations;        // current # of degree iterations made
  21.     int    degCircles;            // # loops around the circle
  22.     float    maxDegree;            // # degrees around the circle
  23.     float    maxCurrentRadius;    // largest radius of current circle
  24.  
  25. #ifdef IB
  26.     id    inspectorPanel;
  27.     id    minRadiusSlider;
  28.     id    minRadiusField;
  29.     id    maxRadiusSlider;
  30.     id    maxRadiusField;
  31.     id    maxSpiralsSlider;
  32.     id    maxSpiralsField;
  33. #else
  34.     Box        *inspectorPanel;
  35.     Slider        *minRadiusSlider;
  36.     TextField    *minRadiusField;
  37.     Slider        *maxRadiusSlider;
  38.     TextField    *maxRadiusField;
  39.     Slider        *maxSpiralsSlider;
  40.     TextField    *maxSpiralsField;
  41. #endif
  42. }
  43.  
  44. - initFrame:(const NXRect *)frameRect;
  45. - oneStep;
  46. - (const char *)windowTitle;
  47. - inspector:sender;
  48. - sizeTo:(NXCoord)width :(NXCoord)height;
  49. - drawSelf:(const NXRect *)rects :(int)rectCount;
  50. - (BOOL) useBufferedWindow;
  51.  
  52. - changeMinRadius:sender;
  53. - changeMaxRadius:sender;
  54. - changeMaxSpirals:sender;
  55.  
  56. - (void)loadDefaults;
  57. - (void)saveDefaults;
  58. - (void)constrainDefaults;
  59.  
  60. - startOver;
  61. - newSpiral;
  62.  
  63. @end
  64.  
  65.