home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-Developer.iso / NextLibrary / Frameworks / AppKit.framework / Versions / B / Headers / NSImageCell.h < prev    next >
Text File  |  1996-10-17  |  1KB  |  57 lines

  1. /*
  2.     NSImageCell.h
  3.     Application Kit
  4.     Copyright (c) 1994-1996, NeXT Software, Inc.
  5.     All rights reserved.
  6. */
  7.  
  8.  
  9. #import <AppKit/NSCell.h>
  10.  
  11. @class NSImage;
  12.  
  13. typedef enum {
  14.     NSScaleProportionally = 0,   // Fit propoRtionally
  15.     NSScaleToFit,                // Forced fit (distort if necessary)
  16.     NSScaleNone                  // Don't scale (clip)
  17. } NSImageScaling;
  18.  
  19. typedef enum {
  20.     NSImageAlignCenter = 0,
  21.     NSImageAlignTop,
  22.     NSImageAlignTopLeft,
  23.     NSImageAlignTopRight,
  24.     NSImageAlignLeft,
  25.     NSImageAlignBottom,
  26.     NSImageAlignBottomLeft,
  27.     NSImageAlignBottomRight,
  28.     NSImageAlignRight
  29. } NSImageAlignment;
  30.  
  31. typedef enum {
  32.     NSImageFrameNone = 0,
  33.     NSImageFramePhoto,
  34.     NSImageFrameGrayBezel,
  35.     NSImageFrameGroove,
  36.     NSImageFrameButton
  37. } NSImageFrameStyle;
  38.  
  39.  
  40. @interface NSImageCell : NSCell <NSCopying, NSCoding>
  41. {
  42.     NSImageAlignment _align;
  43.     NSImageScaling _scale;
  44.     NSImageFrameStyle _style;
  45.     NSImage *_scaledImage;
  46. }
  47.  
  48. - (NSImageAlignment)imageAlignment;
  49. - (void)setImageAlignment:(NSImageAlignment)newAlign;
  50. - (NSImageScaling)imageScaling;
  51. - (void)setImageScaling:(NSImageScaling)newScaling;
  52. - (NSImageFrameStyle)imageFrameStyle;
  53. - (void)setImageFrameStyle:(NSImageFrameStyle)newStyle;
  54.  
  55. @end
  56.  
  57.