home *** CD-ROM | disk | FTP | other *** search
- /*
- NSClipView.h
- Application Kit
- Copyright (c) 1994-1996, NeXT Software, Inc.
- All rights reserved.
- */
-
- #import <AppKit/NSView.h>
-
- @class NSColor;
-
- @interface NSClipView : NSView
- {
- NSColor *_backgroundColor;
- NSView *_docView;
- NSRect _docRect;
- NSRect _oldDocFrame;
- NSCursor *_cursor;
- void *_halftone;
- struct __cvFlags {
- unsigned int isFlipped:1;
- unsigned int onlyUncovered:1;
- unsigned int reflectScroll:1;
- unsigned int usedByCell:1;
- unsigned int scrollClipTo:1;
- unsigned int noCopyOnScroll:1;
- unsigned int drawsBackground:1;
- unsigned int scrollInProgress:1;
- unsigned int RESERVED:24;
- } _cvFlags;
- }
-
- - (void)setBackgroundColor:(NSColor *)color;
- - (NSColor *)backgroundColor;
- - (void)setDocumentView:(NSView *)aView;
- - (id)documentView;
- - (NSRect)documentRect;
- - (void)setDocumentCursor:(NSCursor *)anObj;
- - (NSCursor *)documentCursor;
- - (NSRect)documentVisibleRect;
- - (void)viewFrameChanged:(NSNotification *)notification;
- - (void)setCopiesOnScroll:(BOOL)flag;
- - (BOOL)copiesOnScroll;
- - (BOOL)autoscroll:(NSEvent *)theEvent;
- - (NSPoint)constrainScrollPoint:(NSPoint)newOrigin;
- - (void)scrollToPoint:(NSPoint)newOrigin;
-
- @end
-
- @interface NSView(NSClipViewSuperview)
- - (void)reflectScrolledClipView:(NSClipView *)aClipView;
- - (void)scrollClipView:(NSClipView *)aClipView toPoint:(NSPoint)aPoint;
- @end
-