home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / 3Dkit / N3DRIBImageRep.h < prev    next >
Text File  |  1992-07-18  |  1KB  |  48 lines

  1. /*
  2.     Copyright (c) 1991, 1992 by NeXT Computer, Inc as an unpublished work.
  3.     All rights reserved.
  4. */
  5. #import <appkit/NXImageRep.h>
  6. #import <streams/streams.h>
  7. #import <ri/ri.h>
  8. #import "next3d.h"
  9.  
  10. @interface N3DRIBImageRep : NXImageRep
  11. {
  12.   N3DHider hider;
  13.   N3DSurfaceType surface;
  14.   NXColor backgroundColor;
  15.   char *_data;
  16.   int    _dlen;
  17.   NXRect _RIBbbox, _printbbox;
  18.   float _aspect_ratio;
  19.   RtToken _imageToken;
  20.   int _lastWindowNum;
  21.   char *_spoolfile;
  22.   void *_N3Dprivate;
  23. }
  24.  
  25. + (const char *const *)imageUnfilteredFileTypes;
  26. + (const NXAtom *)imageUnfilteredPasteboardTypes;
  27. + (BOOL)canLoadFromStream:(NXStream *)ribstream;
  28. - initFromFile:(const char *)ribfile;
  29. - initFromStream:(NXStream *)ribstream;
  30. - free;
  31. - (BOOL)drawIn:(const NXRect *)rect;
  32. - (BOOL)drawAt:(const NXPoint *)point;
  33. - (BOOL)draw;
  34. - getSize:(NXSize *)theSize;
  35. - getBoundingBox:(NXRect *)r;
  36. - setSurfaceType:(N3DSurfaceType)surfaceType;
  37. - setHider:(N3DHider)ahider;
  38. - (N3DSurfaceType)surfaceType;
  39. - (N3DHider)hider;
  40. - setBackgroundColor:(NXColor)col;
  41. - (NXColor)backgroundColor;
  42.  
  43.  
  44. - read:(NXTypedStream *)stream;
  45. - write:(NXTypedStream *)stream;
  46.  
  47. @end
  48.