home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / appkit / ClipView.h < prev    next >
Text File  |  1990-10-15  |  2KB  |  76 lines

  1. /*
  2.     ClipView.h
  3.     Application Kit, Release 2.0
  4.     Copyright (c) 1988, 1989, 1990, NeXT, Inc.  All rights reserved. 
  5. */
  6.  
  7. #import "View.h"
  8. #import "color.h"
  9.  
  10. @interface ClipView : View
  11. {
  12.     float               backgroundGray;UDi id                  docView;
  13.     NXRect              _docRect;
  14.     id                  cursor;
  15.     void               *_private;
  16.     struct __clFlags {
  17.     unsigned int        isGraySet:1;
  18.     unsigned int        _RESERVED:11;
  19.     unsigned int        _onlyUncovered:1;
  20.     unsigned int        _reflectScroll:1;
  21.     unsigned int        _usedByCell:1;
  22.     unsigned int        _scrollClipTo:1;
  23.     }                   _clFlags;
  24. }
  25.  
  26. + initialize;
  27.  
  28. - initFrame:(const NXRect *)frameRect;
  29. - setBackgroundGray:(float)value;
  30. - (float)backgroundGray;
  31. - setBackgroundColor:(NXColor)color;
  32. - (NXColor)backgroundColor;
  33. - drawSelf:(const NXRect *)rects :(int)rectCount;
  34. - setDocView:aView;
  35. - docView;
  36. - getDocRect:(NXRect *)aRect;
  37. - setDocCursor:anObj;
  38. - resetCursorRects;
  39. - getDocVisibleRect:(NXRect *)aRect;
  40. - descendantFrameChanged:sender;
  41. - descendantFlipped:sender;
  42. - setCopyOnScroll:(BOOL)flag;
  43. - setDisplayOnScroll:(BOOL)flag;
  44. - autoscroll:(NXEvent *)theEvent;
  45. - constrainScroll:(NXPoint *)newOrigin;
  46. - rawScroll:(const NXPoint *)newOrigin;
  47. - write:(NXTypedStream *)stream;
  48. - read:(NXTypedStream *)stream;
  49. - free;
  50.  
  51. - rotate:(NXCoord)angle;
  52. - rotateTo:(NXCoord)angle;
  53. - setDrawRotation:(NXCoord)angle;
  54.  
  55. - awake;
  56. - moveTo:(NXCoord)x :(NXCoord)y;
  57. - sizeTo:(NXCoord)width :(NXCoord)height;
  58. - setDrawOrigin:(NXCoord)x :(NXCoord)y;
  59. - setDrawSize:(NXCoord)width :(NXCoord)height;
  60. - translate:(NXCoord)x :(NXCoord)y;
  61. - scale:(NXCoord)x :(NXCoord)y;
  62.  
  63. /* 
  64.  * The following new... methods are now obsolete.  They remain in this  
  65.  * interface file for backward compatibility only.  Use Object's alloc method  
  66.  * and the init... methods defined in this class instead.
  67.  */
  68. + newFrame:(const NXRect *)frameRect;
  69.  
  70. @end
  71.  
  72. @interface View(ClipViewSuperview)
  73. - reflectScroll:aClipView;
  74. - scrollClip:aClipView to:(const NXPoint *)aPoint;
  75. @end
  76.