home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / appkit / obsoleteBitmap.h < prev    next >
Text File  |  1990-08-13  |  3KB  |  93 lines

  1. /*
  2.     obsoleteBitmap.h
  3.     Application Kit, Release 1.0
  4.     Copyright (c) 1988, 1989, NeXT, Inc.  All rights reserved. 
  5. */
  6.  
  7. #import <objc/Object.h>
  8. #import "graphics.h"
  9.  
  10. /* NOTE: The Bitmap class has been obsoleted, use NXImage instead.   */
  11. /*       To ease conversion, this file contains the old declarations */
  12. /*       of the Bitmap methods.                                      */
  13.  
  14. /* Bitmap Types */
  15.  
  16. #define    NX_UNIQUEBITMAP        (-1)
  17. #define    NX_NOALPHABITMAP    (0)
  18. #define    NX_ALPHABITMAP        (1)
  19. #define    NX_UNIQUEALPHABITMAP    (2)
  20.  
  21. @interface Bitmap : Object
  22. {
  23.     NXRect         frame;
  24.     char       *iconName;
  25.     int             type;
  26.     int            _builtIn;
  27.     void       *_manager;        
  28.     struct __bFlags{
  29.     unsigned int    _flipDraw:1;
  30.     unsigned int    _systemBitmap:1;
  31.     unsigned int    _nibBitmap:1;
  32.     unsigned int    _willFree:1;
  33.     unsigned int    _RESERVED:12;
  34.     }               _bFlags;
  35. }
  36.   
  37. + findBitmapFor:(const char *)name;
  38. + getSize:(NXSize *) size for:(const char *)name;
  39. + (BOOL)addName:(const char *)name data:(void *)bitmapData
  40.     width:(int)samplesWide height:(int)samplesHigh
  41.     bps:(int)bitsPerSample spp:(int)sampUF#erPixel;
  42. + (BOOL)addName :(const char *)name fromTIFF:(const char *)filename;
  43. + (BOOL)addName :(const char *)name fromMachO:(const char *)sectionName;
  44. + (BOOL)addName :(const char *)name bitmap:bitmapObj;
  45. + newFromStream:(NXStream *)stream;
  46. + newFromTIFF:(const char *)filename;
  47. + newFromMachO:(const char *)sectionName;
  48. + newSize:(NXCoord) width :(NXCoord) height type:(int)aType;
  49. + newRect:(const NXRect *) aRect type:(int) aType window: window;
  50. + compact;
  51. - finishUnarchiving;
  52. - free;
  53. - setFlip:(BOOL)flag;
  54. - _getFrame:(NXRect *) aRect;
  55. - (const char *)name;
  56. - window;
  57. - getSize:(NXSize *)theSize;
  58. - (BOOL)lockFocus;
  59. - unlockFocus;
  60. - (int)type;
  61. - writeTIFF:(NXStream *) stream;
  62. - image:(void *)data withAlpha:(void *)alpha
  63.     width:(int)samplesWide height:(int)sampleHigh
  64.     bps:(int)bitsPerSample;
  65. - image:(void *)data width:(int)samplesWide height:(int)sampleHigh
  66.     bps:(int)bitsPerSample spp:(int)samplesPerPixel;
  67. - image:(void *)data toRect:(const NXRect *) rect
  68.     width:(int)samplesWide height:(int)sampleHigh
  69.     bps:(int)bitsPerSample spp:(int)samplesPerPixel;
  70. - imageSize:(int *)sizeInBytes 
  71.     width:(int *)ptrWidth height:(int *)ptrHeight
  72.     bps:(int *)ptrBps spp:(int *)ptrSpp inRect:(const NXRect *)rect;
  73. - readImage:(void *)image;
  74. - readImage:(void *)image inRect:(const NXRect *)rect;
  75. - readImage:(void *)image withAlpha:(void *)alpha;
  76. - readImage:(void *)image withAlpha:(void *)alpha inRect:(NXRect *)rect;
  77. - composite:(int)op toPoint:(const NXPoint *)aPoint;
  78. - composite:(int)op fromRect:(const NXRect *)aRect toPoint:(const NXPoint *)aPoint;
  79. - write:(NXTypedStream *)s;
  80. - read:(NXTypedStream *)s;
  81. - resize:(NXCoord)theWidth :(NXCoord)theHeight;
  82. - image:(void *)data toRect:(const NXRect *)rect 
  83.     width:(int)samplesWide height:(int)samplesHigh
  84.     bps:(int)bitsPerSample spp:(int)samplesPerPixel 
  85.     config:(int)planarConfig interp:(int)photoInterp;
  86. - imageSize:(int *)sizeInBytes
  87.     width:(int *)ptrWidth height:(int *)ptrHeight
  88.     bps:(int *)ptrBps spp:(int *)ptrSpp 
  89.     config:(int *)ptrConfig interp:(int *)ptrInterp
  90.     inRect:(const NXRect *)rect;
  91.     
  92. @end
  93.