home *** CD-ROM | disk | FTP | other *** search
/ NeXT Enterprise Objects Framework 1.1 / NeXT Enterprise Objects Framework 1.1.iso / NextDeveloper / Headers / eointerface / NXImageView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-29  |  1.0 KB  |  56 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 NXImageView : Control
  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. - initFrame:(const NXRect *)frameRect;
  34. - drawSelf:(const NXRect *)rects :(int)rectCount;
  35.  
  36. - image;
  37. - setImage:newImage;
  38.  
  39. - setStyle:(int)newStyle;
  40. - (int)style;
  41. - setEditable:(BOOL)yn;
  42. - (BOOL)isEditable;
  43.  
  44.  
  45. typedef enum {
  46.     NX_ImageNoFrame = 0,
  47.     NX_ImagePhoto,
  48.     NX_ImageGrayBezel,
  49.     NX_ImageGroove
  50. } NXImageStyle;
  51.  
  52.  
  53. @end
  54.  
  55.  
  56.