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

  1. /*
  2.     NSClipView.h
  3.     Application Kit
  4.     Copyright (c) 1994-1996, NeXT Software, Inc.
  5.     All rights reserved.
  6. */
  7.  
  8. #import <AppKit/NSView.h>
  9.  
  10. @class NSColor;
  11.  
  12. @interface NSClipView : NSView
  13. {
  14.     NSColor             *_backgroundColor;
  15.     NSView              *_docView;
  16.     NSRect              _docRect;
  17.     NSRect              _oldDocFrame;
  18.     NSCursor            *_cursor;
  19.     void                *_halftone;
  20.     struct __cvFlags {
  21.     unsigned int        isFlipped:1;
  22.     unsigned int        onlyUncovered:1;
  23.     unsigned int        reflectScroll:1;
  24.     unsigned int        usedByCell:1;
  25.     unsigned int        scrollClipTo:1;
  26.     unsigned int        noCopyOnScroll:1;
  27.         unsigned int        drawsBackground:1;
  28.         unsigned int        scrollInProgress:1;
  29.         unsigned int        RESERVED:24;
  30.     } _cvFlags;
  31. }
  32.  
  33. - (void)setBackgroundColor:(NSColor *)color;
  34. - (NSColor *)backgroundColor;
  35. - (void)setDocumentView:(NSView *)aView;
  36. - (id)documentView;
  37. - (NSRect)documentRect;
  38. - (void)setDocumentCursor:(NSCursor *)anObj;
  39. - (NSCursor *)documentCursor;
  40. - (NSRect)documentVisibleRect;
  41. - (void)viewFrameChanged:(NSNotification *)notification;
  42. - (void)setCopiesOnScroll:(BOOL)flag;
  43. - (BOOL)copiesOnScroll;
  44. - (BOOL)autoscroll:(NSEvent *)theEvent;
  45. - (NSPoint)constrainScrollPoint:(NSPoint)newOrigin;
  46. - (void)scrollToPoint:(NSPoint)newOrigin;
  47.  
  48. @end
  49.  
  50. @interface NSView(NSClipViewSuperview)
  51. - (void)reflectScrolledClipView:(NSClipView *)aClipView;
  52. - (void)scrollClipView:(NSClipView *)aClipView toPoint:(NSPoint)aPoint;
  53. @end
  54.