home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / NeXT / Tree0.5 / treeobj / MapView.h < prev    next >
Encoding:
Text File  |  1992-05-16  |  1.2 KB  |  40 lines

  1. /* MapView.h - Copyright 1992  Steve Ludtke  All Rights Reserved      */
  2.  
  3. #import <appkit/View.h>
  4. #import <stdlib.h>
  5. #import "gopher.h"
  6.  
  7.  
  8. @interface MapView:View
  9. {
  10.     id                  object;        /* points to the GopherObj */
  11.     float               bgColor;    /* background color */
  12.     float               fgColor;    /* foreground color */
  13.     float               path[3004], bbox[4];    /* storage for line drawing */
  14.     char                com[1502];
  15.     int                 pathc;        /* line counter */
  16.     float               myx, myy;     /* my current position x,y */
  17.     float               xsca, zsca;     /* scaling factors to map to display */
  18.     float               xof, zof;     /* offset for display mapping */
  19.     Root               *top;         /* points to top of web */
  20. }
  21.  
  22. - initFrame:(NXRect *)myrect;
  23.  
  24. /* methods required by GopherObj */
  25.     -start:(Root *) Ptop :Pobject :(char *)path;
  26.     -step:(Branch *) myloc;
  27.     -drawSelf:(NXRect *)rects :(int)rectCount;
  28.     -refresh:(Branch *) myloc :(int)speed;
  29.     -(char *)help:window :browser;
  30.     -preferences:sender;
  31.  
  32. /* methods for io */
  33.     -(BOOL)acceptsFirstResponder;
  34.     -keyDown:(NXEvent *)event;
  35.     -keyUp:(NXEvent *)event;
  36.  
  37. /* draw a line */
  38.     -addline:(float)x1 :(float)y1 :(float)x2 :(float)y2;
  39.     @end
  40.