![]() |
API 0.9.5
|
#import <CPClipView.h>
Inheritance diagram for CPClipView:Instance Methods | |
| (BOOL) | - autoscroll: |
| (CGPoint) | - constrainScrollPoint: |
| (id) | - documentView |
| (void) | - encodeWithCoder: |
| (id) | - initWithCoder: |
| (void) | - resizeSubviewsWithOldSize: |
| (void) | - scrollToPoint: |
| (void) | - setBoundsOrigin: |
| (void) | - setDocumentView: |
| (void) | - viewBoundsChanged: |
| (void) | - viewFrameChanged: |
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.
Definition at line 2 of file CPClipView.h.
| - (BOOL) autoscroll: | (CPEvent) | anEvent |
Reimplemented from CPView.
Definition at line 187 of file CPClipView.j.
| - (CGPoint) constrainScrollPoint: | (CGPoint) | aPoint |
Returns a new point that may be adjusted from aPoint to make sure it lies within the document view.
| aPoint |
Definition at line 100 of file CPClipView.j.
| - (id) documentView |
Returns the document view.
Definition at line 89 of file CPClipView.j.
| - (void) encodeWithCoder: | (CPCoder) | aCoder |
Archives the view to a coder.
| aCoder | the object into which the view's data will be archived. |
Reimplemented from CPView.
Definition at line 240 of file CPClipView.j.
| - (id) initWithCoder: | (CPCoder) | aCoder |
Initializes the view from an archive.
| aCoder | the coder from which to initialize |
Reimplemented from CPView.
Definition at line 232 of file CPClipView.j.
| - (void) resizeSubviewsWithOldSize: | (CGSize) | aSize |
Initiates -superviewSizeChanged: messages to subviews.
| aSize | the size for the subviews |
Reimplemented from CPView.
Definition at line 157 of file CPClipView.j.
| - (void) scrollToPoint: | (CGPoint) | aPoint |
Scrolls the clip view to the specified point. The method sets its bounds origin to aPoint.
Definition at line 134 of file CPClipView.j.
| - (void) setBoundsOrigin: | (CGPoint) | aPoint |
Sets the location of the receiver inside its frame. The method posts a CPViewBoundsDidChangeNotification to the default notification center if the receiver is configured to do so.
| aPoint | the new location for the receiver |
Reimplemented from CPView.
Definition at line 113 of file CPClipView.j.
| - (void) setDocumentView: | (CPView) | aView |
Sets the document view to be aView.
| aView | the new document view. It's frame origin will be changed to (0,0) after calling this method. |
Definition at line 41 of file CPClipView.j.
| - (void) viewBoundsChanged: | (CPNotification) | aNotification |
Handles a CPViewBoundsDidChangeNotification.
| aNotification | the notification event |
Definition at line 143 of file CPClipView.j.
| - (void) viewFrameChanged: | (CPNotification) | aNotification |
Handles a CPViewFrameDidChangeNotification.
| aNotification | the notification event |
Definition at line 152 of file CPClipView.j.