Name

NSScrollView — Mac OS X 10.0

Synopsis

This subclass of NSView allows a user to view a portion of a large document view using scrollbars. Clipping of the document view is performed by the subclass NSClipView. Horizontal and vertical scrollbars are instances of the class NSScroller. Rulers, which are instances of the class NSRulerView, can be displayed in the left and top edges of the scrollview.

@interface NSScrollView : NSView
                                  // Accessor Methods
   - (void)setBackgroundColor:(NSColor *)color;
   - (NSColor *)backgroundColor;
   - (void)setPageScroll:(float)value;
   - (float)pageScroll;
   - (void)setHorizontalRulerView:(NSRulerView *)ruler;
   - (NSRulerView *)horizontalRulerView;
   - (void)setHasVerticalRuler:(BOOL)flag;
   - (BOOL)hasVerticalRuler;
   - (void)setHasHorizontalRuler:(BOOL)flag;
   - (BOOL)hasHorizontalRuler;
   - (void)setHorizontalPageScroll:(float)value;
   - (float)horizontalPageScroll;
   - (void)setBorderType:(NSBorderType)aType;
   - (NSBorderType)borderType;
   - (void)setHorizontalLineScroll:(float)value;
   - (float)horizontalLineScroll;
   - (void)setRulersVisible:(BOOL)flag;
   - (BOOL)rulersVisible;
   - (void)setScrollsDynamically:(BOOL)flag;
   - (BOOL)scrollsDynamically;
   - (void)setHasVerticalScroller:(BOOL)flag;
   - (BOOL)hasVerticalScroller;
   - (void)setHasHorizontalScroller:(BOOL)flag;
   - (BOOL)hasHorizontalScroller;
   - (void)setLineScroll:(float)value;
   - (float)lineScroll;
   - (void)setHorizontalScroller:(NSScroller *)anObject;
   - (NSScroller *)horizontalScroller;
   - (void)setDocumentCursor:(NSCursor *)anObj;
   - (NSCursor *)documentCursor;
   - (void)setDocumentView:(NSView *)aView;
   - (id)documentView;
   - (void)setContentView:(NSClipView *)contentView;
   - (NSClipView *)contentView;
   - (void)setVerticalScroller:(NSScroller *)anObject;
   - (NSScroller *)verticalScroller;
   - (void)setVerticalRulerView:(NSRulerView *)ruler;
   - (NSRulerView *)verticalRulerView;
   - (void)setVerticalLineScroll:(float)value;
   - (float)verticalLineScroll;
   - (void)setVerticalPageScroll:(float)value;
   - (float)verticalPageScroll;
   - (void)setDrawsBackground:(BOOL)flag;
   - (BOOL)drawsBackground;
                                  // Class Methods
   + (NSSize)contentSizeForFrameSize:(NSSize)fSize 
                                 hasHorizontalScroller:(BOOL)hFlag 
                                 hasVerticalScroller:(BOOL)vFlag
                                 borderType:(NSBorderType)aType;
   + (NSSize)frameSizeForContentSize:(NSSize)cSize 
                                 hasHorizontalScroller:(BOOL)hFlag 
                                 hasVerticalScroller:(BOOL)vFlag
                                 borderType:(NSBorderType)aType;
   + (Class)rulerViewClass;
   + (void)setRulerViewClass:(Class)rulerViewClass;
                                  // Instance Methods
   - (void)reflectScrolledClipView:(NSClipView *)cView;
   - (void)scrollWheel:(NSEvent *)theEvent;
   - (void)tile;
   - (NSSize)contentSize;
   - (NSRect)documentVisibleRect;