home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Graphics / ToyViewer-2.6a / src / ToyView.h < prev    next >
Encoding:
Text File  |  1997-01-24  |  1.4 KB  |  61 lines

  1. #import  <objc/Object.h>
  2. #import  <appkit/View.h>
  3. #import  "common.h"
  4.  
  5. @class NXImage, NXImageRep, TextField, PrefControl;
  6.  
  7. @interface ToyView: View
  8. {
  9.     NXImage        *image;
  10.     NXSize        origSize;
  11.     NXSize        curSize;
  12.     float        scaleFactor;
  13.     float        backgray;
  14.     unsigned char    *rawmap;
  15.     commonInfo    *comInfo;
  16.     NXRect        selectRect;
  17.     TextField    *commText;
  18. }
  19.  
  20. - initFromFile:(const char *)filename;
  21. - initFromStream:(NXStream *)stream;
  22. - initDataPlanes:(unsigned char **)planes info:(commonInfo *)cinf;
  23. - setCommText: (TextField *)text;
  24. - (NXSize *)originalSize;
  25. - (NXSize *)resize: (float)factor;
  26. - free;
  27. - (NXImage *)image;
  28. - (commonInfo *)commonInfo;
  29. - (float)scaleFactor;
  30. - (NXRect *)selectedRect;
  31. - (NXRect *)selectedScaledRect;
  32.  
  33. - beginPrologueBBox:(const NXRect *)boundingBox
  34.     creationDate:(const char *)dateCreated
  35.     createdBy:(const char *)anApplication
  36.     fonts:(const char *)fontNames
  37.     forWhom:(const char *)user
  38.     pages:(int)numPages
  39.     title:(const char *)aTitle;    /* Overload */
  40.  
  41. @end
  42.  
  43.  
  44. @interface ToyView (EventHandling)
  45. + cursor;
  46. + (BOOL)setOriginUpperLeft:(BOOL)flag;
  47. - (BOOL)acceptsFirstResponder;
  48. - (BOOL)acceptsFirstMouse;
  49. - resetCursorRects;            /* Overload */
  50.  
  51. - setDraggedLine: sender;
  52. - clearDraggedLine;
  53. - rewriteComment;
  54. - mouseDown:(NXEvent *)event;        /* Overload */
  55. - selectAll:sender;            /* Overload */
  56. - copy:sender;                /* Overload */
  57. - drawSelf:(NXRect *)r :(int) count;    /* Overload */
  58.  
  59. @end
  60.  
  61.