home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Apps / ScreenSavers / BackSpaceViews / MandelView.BackModule / MandelView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-12  |  1.3 KB  |  73 lines

  1. #import "BackView.h"
  2. #import <appkit/appkit.h>
  3.  
  4. typedef struct _sdata {
  5.     int sx, sy, ex, ey ;
  6.     int c ;
  7. } sdata;
  8.  
  9.  
  10.  
  11. @interface MandelView:BackView
  12. {
  13.     id    colorButton;
  14.     id    inspectorPanel;
  15.     id    spermCountSlider;
  16.     id    spermWidthSlider;
  17.     id backWell ;
  18.     id Well1 ;
  19.     id Well2 ;
  20.     id Well3 ;
  21.     id Well4 ;
  22.  
  23.     sdata todo[1000] ;
  24.     int stack, max_stack ;
  25.     int best_max_stack ;
  26.  
  27.     long draw_length, best_draw_length ;
  28.     
  29.     double or_x, or_y, or_w, odx, ody ;
  30.     double old_or_x, old_or_y, old_or_w ;
  31.     double best_or_x, best_or_y, best_or_w ;
  32.     int best_lost ;
  33.  
  34.     time_t last_finished ;
  35.     BOOL drawing_mandel, frame_drawn ;
  36.  
  37.     BOOL use_fixed ;
  38.     NXColor color; 
  39.  
  40.     NXColor mypal[256] ;
  41.     int cx, cy ;
  42.     double sx, ex, sy, ey, dx, dy ;
  43.     BOOL alreadyInitialized;
  44.     int randCount1, randCount2;
  45.     
  46.     BOOL useColors; 
  47.     NXCoord lineWidth;
  48.     int resolution;
  49.  
  50. }
  51.  
  52. extern id SP_sharedInspectorPanel;
  53. extern BOOL SP_useColors; 
  54. extern NXCoord SP_lineWidth;
  55. extern int SP_count;
  56.  
  57.  
  58. - inspector:sender;
  59. - setUseColor:sender;
  60. - sizeTo:(NXCoord)width :(NXCoord)height ;
  61. - oneStep ;
  62. - newWindow ;
  63. - initFrame:(NXRect *)rect;
  64. - setImageConstraints;
  65.  
  66. - setColors:sender ;
  67. - giveColorPanel:sender ;
  68.  
  69. - drawNextBounds ;
  70. - drawSelf:(const NXRect *)rects :(int)rectCount ;
  71.  
  72. @end
  73.