home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Examples / AppKit / Draw / Image.h < prev    next >
Text File  |  1992-07-19  |  1KB  |  61 lines

  1. @interface Image : Graphic
  2. {
  3.     NXImage *image;        /* an NXImage object */
  4.     NXSize originalSize;    /* the original size */
  5.     NXDataLink *link;
  6.     BOOL dontCache, amLinkButton, amIcon;
  7. }
  8.  
  9. + initialize;
  10.  
  11. /* Creation methods */
  12.  
  13. + (BOOL)canInitFromPasteboard:(Pasteboard *)pboard;
  14.  
  15. - init;
  16. - initWithLinkButton;
  17. - initFromImage:(NXImage *)anImage;
  18. - initFromStream:(NXStream *)stream;
  19. - initFromPasteboard:(Pasteboard *)pboard;
  20. - initFromFile:(const char *)file;
  21. - initFromIcon:(NXImage *)anImage;
  22.  
  23. - (NXRect)reinitFromPasteboard:(Pasteboard *)pboard;
  24. - (NXRect)reinitFromFile:(const char *)file;
  25.  
  26. - free;
  27.  
  28. /* Link methods */
  29.  
  30. - setLink:(NXDataLink *)aLink;
  31. - (NXDataLink *)link;
  32.  
  33. /* Methods overridden from superclass to support liRW*/
  34.  
  35. - (int)cornerMask;
  36. - (NXRect *)getExtendedBounds:(NXRect *)theRect;
  37. - (BOOL)constrainByDefault;
  38.  
  39. /* Overridden from superclass */
  40.  
  41. - (BOOL)isValid;
  42. - (BOOL)isOpaque;
  43. - (float)naturalAspectRatio;
  44. - draw;
  45.  
  46. - (BOOL)canEmitEPS;
  47. - writeEPSToStream:(NXStream *)stream;
  48. - (BOOL)canEmitTIFF;
  49. - writeTIFFToStream:(NXStream *)stream;
  50.  
  51. - setCacheable:(BOOL)flag;
  52. - (BOOL)isCacheable;
  53.  
  54. /* Archiving methods */
  55.  
  56. - write:(NXTypedStream *)stream;
  57. - read:(NXTypedStream *)stream;
  58.  
  59. @end
  60.  
  61.