CPObjectCPResponder
CPView
CPScrollView
@implementation CPScrollView : CPView
Used to display views that are too large for the viewing area. the CPScrollView
places scroll bars on the side of the view to allow the user to scroll and see the entire
contents of the view.
Method Summary | |
---|---|
-(id) | initWithFrame:(CGRect)aFrame Initializes the receiver for usage with the specified bounding rectangle. |
-(BOOL) | autohidesScrollers Returns YES if the scroll view hides its scroll
bars when not necessary. |
-(CGRect) | contentSize Returns the size of the scroll view's content view. |
-(CPClipView) | contentView Returns the content view that clips the document. |
-(id) | documentView Returns the view that is scrolled for the user. |
-(BOOL) | hasHorizontalScroller Returns YES if the scroll view can have a horizontal
scroller. |
-(BOOL) | hasHorizontalScroller Returns YES if the scroll view can have
a vertical scroller. |
-(float) | horizontalLineScroll Returns how much the document moves horizontally when scrolled. |
-(float) | horizontalPageScroll Returns the horizontal page scroll amount. |
-(CPScroller) | horizontalScroller Returns the scroll view's horizontal scroller. |
-(float) | lineScroll Returns how much the document moves when scrolled. |
-(float) | pageScroll Returns the vertical and horizontal page scroll amount. |
-(void) | reflectScrolledClipView:(CPClipView)aClipView Resizes the scroll view to contain the specified clip view. |
-(void) | scrollWheel:(CPEvent)anEvent Handles a scroll wheel event from the user. |
-(void) | setAutohidesScrollers:(BOOL)autohidesScrollers Sets whether the scroll view hides its scoll bars when not needed. |
-(void) | setContentView:(CPClipView)aContentView Sets the content view that clips the document. |
-(void) | setDocumentView:(CPView)aView Sets the view that is scrolled for the user. |
-(void) | setHasHorizontalScroller:(BOOL)hasHorizontalScroller Specifies whether the scroll view can have a horizontal scroller. |
-(void) | setHasVerticalScroller:(BOOL)hasVerticalScroller Specifies whether the scroll view has can have a vertical scroller. |
-(void) | setHorizontalLineScroll:(float)aLineScroll Sets how much the document moves when scrolled horizontally. |
-(void) | setHorizontalPageScroll:(float)aPageScroll Sets the horizontal page scroll amount. |
-(void) | setHorizontalScroller:(CPScroller)aScroller Sets the scroll view's horizontal scroller. |
-(void) | setLineScroll:(float)aLineScroll Sets how much the document moves when scrolled. |
-(void) | setPageScroll:(float)aPageScroll Sets the horizontal and vertical page scroll amount. |
-(void) | setVerticalLineScroll:(float)aLineScroll Sets how much the document moves when scrolled vertically. |
-(void) | setVerticalPageScroll:(float)aPageScroll Sets the vertical page scroll amount. |
-(void) | setVerticalScroller:(CPScroller)aScroller Sets the scroll view's vertical scroller. |
-(void) | tile Lays out the scroll view's components. |
-(float) | verticalLineScroll Returns how much the document moves vertically when scrolled. |
-(float) | verticalPageScroll Returns the vertical page scroll amount. |
-(CPScroller) | verticalScroller Return's the scroll view's vertical scroller. |
Method Detail |
---|
-(id)initWithFrame:(CGRect)aFrame
aFrame
-(BOOL)autohidesScrollers
YES
if the scroll view hides its scroll
bars when not necessary.-(CGRect)contentSize
-(CPClipView)contentView
-(id)documentView
-(BOOL)hasHorizontalScroller
YES
if the scroll view can have a horizontal
scroller.-(BOOL)hasHorizontalScroller
YES
if the scroll view can have
a vertical scroller.-(float)horizontalLineScroll
-(float)horizontalPageScroll
-(CPScroller)horizontalScroller
-(float)lineScroll
-(float)pageScroll
-(void)reflectScrolledClipView:(CPClipView)aClipView
aClipView
- the clip view to resize to-(void)scrollWheel:(CPEvent)anEvent
anEvent
- the scroll wheel event-(void)setAutohidesScrollers:(BOOL)autohidesScrollers
autohidesScrollers
- YES
causes the scroll bars
to be hidden when not needed.-(void)setContentView:(CPClipView)aContentView
aContentView
- the content view-(void)setDocumentView:(CPView)aView
aView
- the view that will be scrolled-(void)setHasHorizontalScroller:(BOOL)hasHorizontalScroller
hasHorizontalScroller
- YES
lets the scroll view
allocate a horizontal scroller if necessary.-(void)setHasVerticalScroller:(BOOL)hasVerticalScroller
hasVerticalScroller
- YES
allows
the scroll view to display a vertical scroller-(void)setHorizontalLineScroll:(float)aLineScroll
aLineScroll
- the amount to move horizontally
when scrolled.-(void)setHorizontalPageScroll:(float)aPageScroll
aPageScroll
- the new horizontal page scroll amount-(void)setHorizontalScroller:(CPScroller)aScroller
aScroller
- the horizontal scroller for the scroll view-(void)setLineScroll:(float)aLineScroll
aLineScroll
- the amount to move the document
when scrolled-(void)setPageScroll:(float)aPageScroll
aPageScroll
- the new horizontal and vertical page
scroll amount-(void)setVerticalLineScroll:(float)aLineScroll
aLineScroll
- the new amount to move vertically
when scrolled.-(void)setVerticalPageScroll:(float)aPageScroll
aPageScroll
- the new vertcal page scroll
amount-(void)setVerticalScroller:(CPScroller)aScroller
aScroller
- the vertical scroller-(void)tile
-(float)verticalLineScroll
-(float)verticalPageScroll
-(CPScroller)verticalScroller
Created on Sat Sep 13 14:15:43 PDT 2008