API 0.9.5
CPClipView Class Reference

#import <CPClipView.h>

Inheritance diagram for CPClipView:

List of all members.

Instance Methods

(BOOL) - autoscroll:
(CGPoint) - constrainScrollPoint:
(id) - documentView
(void) - encodeWithCoder:
(id) - initWithCoder:
(void) - resizeSubviewsWithOldSize:
(void) - scrollToPoint:
(void) - setBoundsOrigin:
(void) - setDocumentView:
(void) - viewBoundsChanged:
(void) - viewFrameChanged:

Detailed Description

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.


Method Documentation

- (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.

Parameters:
aPoint
Returns:
the adjusted point

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.

Parameters:
aCoderthe 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.

Parameters:
aCoderthe coder from which to initialize
Returns:
the initialized view

Reimplemented from CPView.

Definition at line 232 of file CPClipView.j.

- (void) resizeSubviewsWithOldSize: (CGSize)  aSize

Initiates -superviewSizeChanged: messages to subviews.

Parameters:
aSizethe 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.

Parameters:
aPointthe 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.

Parameters:
aViewthe 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.

Parameters:
aNotificationthe notification event

Definition at line 143 of file CPClipView.j.

- (void) viewFrameChanged: (CPNotification aNotification

Handles a CPViewFrameDidChangeNotification.

Parameters:
aNotificationthe notification event

Definition at line 152 of file CPClipView.j.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Defines