home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / OpenStepConversion / IntermediateFrameworks3 / AppKit.framework / Headers / NSImageView.h < prev    next >
Text File  |  1996-01-22  |  954b  |  53 lines

  1. /*
  2. **      NXImageView.h
  3. **      Copyright (c) 1992, NeXT Computer, Inc.  All rights reserved. 
  4. */
  5.  
  6.  
  7. #import <AppKit/AppKit.h>
  8.  
  9.  
  10. // NXImageView is functionally identical to the Database Kit's DBImageView.
  11. // Please refer to the DatabaseKit documentation for use of this class.
  12.  
  13.  
  14. @interface NSImageView : NSControl
  15. {
  16.     id        _image;
  17.     struct {
  18. #ifdef __BIG_ENDIAN__
  19.     unsigned    _style : 4;
  20.     BOOL        _editable : 1;
  21.         unsigned        _reserved :27;
  22. #else
  23.         unsigned        _reserved :27;
  24.         BOOL        _editable : 1;
  25.         unsigned    _style : 4;
  26. #endif
  27.     } _ivflags;
  28.     id _target;                    // for action messages
  29.     SEL _action;                   // call here after an image drag-drop
  30. }
  31.  
  32.  
  33. - image;
  34. - setImage:newImage;
  35.  
  36. - setStyle:(int)newStyle;
  37. - (int)style;
  38. - setEditable:(BOOL)yn;
  39. - (BOOL)isEditable;
  40.  
  41.  
  42. typedef enum {
  43.     NX_ImageNoFrame = 0,
  44.     NX_ImagePhoto,
  45.     NX_ImageGrayBezel,
  46.     NX_ImageGroove
  47. } NXImageStyle;
  48.  
  49.  
  50. @end
  51.  
  52.  
  53.