CPObjectCPResponder
CPView
CPClipView
@implementation CPClipView : CPView
CPClipView
allows you to define a clip rect and display only that portion of its containing view.
It is used to hold the document view in a CPScrollView
.
Method Summary | |
---|---|
-(CGPoint) | constrainScrollPoint:(CGPoint)aPoint Returns a new point that may be adjusted from aPoint
to make sure it lies within the document view. |
-(id) | documentView Returns the document view. |
-(void) | scrollToPoint:(CGPoint)aPoint Scrolls the clip view to the specified point. |
-(void) | setBoundsOrigin:(CGPoint)aPoint Sets the location of the receiver inside its frame. |
-(void) | setDocumentView:(CPView)aView Sets the document view to be aView . |
-(void) | viewBoundsChanged:(CPNotification)aNotification Handles a CPViewBoundsDidChangeNotification . |
-(void) | viewFrameChanged:(CPNotification)aNotification Handles a CPViewFrameDidChangeNotification . |
Method Detail |
---|
-(CGPoint)constrainScrollPoint:(CGPoint)aPoint
aPoint
to make sure it lies within the document view.aPoint
- -(id)documentView
-(void)scrollToPoint:(CGPoint)aPoint
aPoint
.aPoint
-(void)setBoundsOrigin:(CGPoint)aPoint
CPViewBoundsDidChangeNotification
to the
default notification center if the receiver is configured to do so.aPoint
- the new location for the receiver-(void)setDocumentView:(CPView)aView
aView
.aView
- the new document view. It's frame origin will be changed to (0,0)
after calling this method.-(void)viewBoundsChanged:(CPNotification)aNotification
CPViewBoundsDidChangeNotification
.aNotification
- the notification event-(void)viewFrameChanged:(CPNotification)aNotification
CPViewFrameDidChangeNotification
.aNotification
- the notification eventCreated on Sat Sep 13 14:15:43 PDT 2008