CPView Class Reference

List of all members.

Public Member Functions

(id) - init [implementation]
(id) - initWithFrame: [implementation]
(CPView- superview [implementation]
(CPArray- subviews [implementation]
(CPWindow- window [implementation]
(void) - addSubview: [implementation]
(void) - addSubview:positioned:relativeTo: [implementation]
(void) - didAddSubview: [implementation]
(void) - removeFromSuperview [implementation]
(void) - replaceSubview:with: [implementation]
(BOOL) - isDescendantOf: [implementation]
(void) - viewDidMoveToSuperview [implementation]
(void) - viewDidMoveToWindow [implementation]
(void) - viewWillMoveToSuperview: [implementation]
(void) - viewWillMoveToWindow: [implementation]
(void) - willRemoveSubview: [implementation]
(CPMenuItem- enclosingMenuItem [implementation]
(int) - tag [implementation]
(BOOL) - isFlipped [implementation]
(void) - setFrame: [implementation]
(CGRect) - frame [implementation]
(void) - setFrameOrigin: [implementation]
(void) - setFrameSize: [implementation]
(void) - setBounds: [implementation]
(CGRect) - bounds [implementation]
(void) - setBoundsOrigin: [implementation]
(void) - setBoundsSize: [implementation]
(void) - resizeWithOldSuperviewSize: [implementation]
(void) - resizeSubviewsWithOldSize: [implementation]
(void) - setAutoresizesSubviews: [implementation]
(BOOL) - autoresizesSubviews [implementation]
(void) - setAutoresizingMask: [implementation]
(unsigned) - autoresizingMask [implementation]
(BOOL) - enterFullScreenMode:withOptions: [implementation]
(void) - exitFullScreenModeWithOptions: [implementation]
(BOOL) - isInFullScreenMode [implementation]
(void) - setHidden: [implementation]
(BOOL) - isHidden [implementation]
(void) - setAlphaValue: [implementation]
(float) - alphaValue [implementation]
(BOOL) - isHiddenOrHasHiddenAncestor [implementation]
(BOOL) - acceptsFirstMouse: [implementation]
(BOOL) - hitTests [implementation]
(void) - setHitTests: [implementation]
(CPView- hitTest: [implementation]
(BOOL) - mouseDownCanMoveWindow [implementation]
(void) - mouseDown: [implementation]
(void) - setBackgroundColor: [implementation]
(CPColor) - backgroundColor [implementation]
(CGPoint) - convertPoint:fromView: [implementation]
(CGPoint) - convertPoint:toView: [implementation]
(CGSize) - convertSize:fromView: [implementation]
(CGSize) - convertSize:toView: [implementation]
(CGRect) - convertRect:fromView: [implementation]
(CGRect) - convertRect:toView: [implementation]
(void) - setPostsFrameChangedNotifications: [implementation]
(BOOL) - postsFrameChangedNotifications [implementation]
(void) - setPostsBoundsChangedNotifications: [implementation]
(BOOL) - postsBoundsChangedNotifications [implementation]
(void) - dragImage:at:offset:event:pasteboard:source:slideBack: [implementation]
(void) - dragView:at:offset:event:pasteboard:source:slideBack: [implementation]
(void) - registerForDraggedTypes: [implementation]
(CPArray- registeredDraggedTypes [implementation]
(void) - unregisterDraggedTypes [implementation]
(void) - drawRect: [implementation]
(void) - setNeedsDisplay: [implementation]
(void) - setNeedsDisplayInRect: [implementation]
(BOOL) - needsDisplay [implementation]
(void) - displayIfNeeded [implementation]
(void) - display [implementation]
(void) - displayIfNeededInRect: [implementation]
(void) - displayRect: [implementation]
(void) - displayRectIgnoringOpacity:inContext: [implementation]
(void) - viewWillDraw [implementation]
(void) - lockFocus [implementation]
(void) - unlockFocus [implementation]
(BOOL) - isOpaque [implementation]
(CGRect) - visibleRect [implementation]
(void) - scrollPoint: [implementation]
(BOOL) - scrollRectToVisible: [implementation]
(BOOL) - autoscroll: [implementation]
(CGRect) - adjustScroll: [implementation]
(void) - scrollRect:by: [implementation]
(CPScrollView- enclosingScrollView [implementation]
(void) - scrollClipView:toPoint: [implementation]
(void) - reflectScrolledClipView: [implementation]
(void) - setLayer: [implementation]
(CALayer- layer [implementation]
(void) - setWantsLayer: [implementation]
(BOOL) - wantsLayer [implementation]
(id) - initWithCoder: [implementation]
(void) - encodeWithCoder: [implementation]

Static Public Member Functions

(void) + initialize [implementation]


Detailed Description

CPView is a class which provides facilities for drawing in a window and receiving events. It is the superclass of many of the visual elements of the GUI.

In order to display itself, a view must be placed in a window (represented by an CPWindow object). Within the window is a hierarchy of CPViews, headed by the window's content view. Every other view in a window is a descendant of this view.

Subclasses can override -drawRect: in order to implement their appearance. Other methods of CPView and CPResponder can also be overridden to handle user generated events.

Definition at line 118 of file CPView.j.


Member Function Documentation

- (BOOL) acceptsFirstMouse: (CPEvent anEvent   [implementation]

Returns whether the receiver should be sent a mouseDown: message for anEvent.
Returns YES by default.

Returns:
YES, if the view object accepts first mouse-down event. NO, otherwise.

Definition at line 986 of file CPView.j.

- (void) addSubview: (CPView aSubview   [implementation]

Makes the argument a subview of the receiver.

Parameters:
aSubview the CPView to make a subview

Definition at line 275 of file CPView.j.

- (void) addSubview: (CPView aSubview
positioned: (CPWindowOrderingMode)  anOrderingMode
relativeTo: (CPView anotherView 
[implementation]

Makes aSubview a subview of the receiver. It is positioned relative to anotherView

Parameters:
aSubview the view to add as a subview
anOrderingMode specifies aSubview's ordering relative to anotherView
anotherView aSubview will be positioned relative to this argument

Definition at line 286 of file CPView.j.

- (CGRect) adjustScroll: (CGRect)  proposedVisibleRect   [implementation]

Subclasses can override this to modify the visible rectangle after a scrolling operation. The default implementation simply returns the provided rectangle.

Parameters:
proposedVisibleRect the rectangle to alter
Returns:
the same adjusted rectangle

Definition at line 1616 of file CPView.j.

- (float) alphaValue   [implementation]

Returns the alpha value of the receiver. Ranges from 0.0 to 1.0, where 0.0 is completely transparent and 1.0 is completely opaque.

Definition at line 961 of file CPView.j.

- (BOOL) autoresizesSubviews   [implementation]

Reports whether the receiver automatically resizes its subviews when its frame size changes.

Returns:
YES means it resizes its subviews on a frame size change.

Definition at line 826 of file CPView.j.

- (unsigned) autoresizingMask   [implementation]

Returns the bit mask options for resizing behavior

Definition at line 843 of file CPView.j.

- (BOOL) autoscroll: (CPEvent anEvent   [implementation]

Definition at line 1604 of file CPView.j.

- (CPColor) backgroundColor   [implementation]

Returns the background color of the receiver

Definition at line 1166 of file CPView.j.

- (CGRect) bounds   [implementation]

Returns the receiver's bounds. The bounds define the size and location of the receiver inside its frame.

Definition at line 680 of file CPView.j.

- (CGPoint) convertPoint: (CGPoint)  aPoint
fromView: (CPView aView 
[implementation]

Converts aPoint from the coordinate space of aView to the coordinate space of the receiver.

Parameters:
aPoint the point to convert
aView the view space to convert from
Returns:
the converted point

Definition at line 1178 of file CPView.j.

- (CGPoint) convertPoint: (CGPoint)  aPoint
toView: (CPView aView 
[implementation]

Converts aPoint from the receiver's coordinate space to the coordinate space of aView.

Parameters:
aPoint the point to convert
aView the coordinate space to which the point will be converted
Returns:
the converted point

Definition at line 1189 of file CPView.j.

- (CGRect) convertRect: (CGRect)  aRect
fromView: (CPView aView 
[implementation]

Converts aRect from aView's coordinate space to the receiver's space.

Parameters:
aRect the rectangle to convert
aView the coordinate space from which to convert
Returns:
the converted rectangle

Definition at line 1222 of file CPView.j.

- (CGRect) convertRect: (CGRect)  aRect
toView: (CPView aView 
[implementation]

Converts aRect from the receiver's coordinate space to aView's coordinate space.

Parameters:
aRect the rectangle to convert
aView the coordinate space to which the rectangle will be converted
Returns:
the converted rectangle

Definition at line 1233 of file CPView.j.

- (CGSize) convertSize: (CGSize)  aSize
fromView: (CPView aView 
[implementation]

Convert's aSize from aView's coordinate space to the receiver's coordinate space.

Parameters:
aSize the size to convert
aView the coordinate space to convert from
Returns:
the converted size

Definition at line 1200 of file CPView.j.

- (CGSize) convertSize: (CGSize)  aSize
toView: (CPView aView 
[implementation]

Convert's aSize from the receiver's coordinate space to aView's coordinate space.

Parameters:
aSize the size to convert
the coordinate space to which the size will be converted
Returns:
the converted size

Definition at line 1211 of file CPView.j.

- (void) didAddSubview: (CPView aSubview   [implementation]

Called when the receiver has added aSubview to it's child views.

Parameters:
aSubview the view that was added

Definition at line 372 of file CPView.j.

- (void) display   [implementation]

Draws the entire area of the receiver as defined by its bounds.

Definition at line 1432 of file CPView.j.

- (void) displayIfNeeded   [implementation]

Displays the receiver and any of its subviews that need to be displayed.

Definition at line 1423 of file CPView.j.

- (void) displayIfNeededInRect: (CGRect)  aRect   [implementation]

Definition at line 1437 of file CPView.j.

- (void) displayRect: (CPRect)  aRect   [implementation]

Draws the receiver into the area defined by aRect.

Parameters:
aRect the area to be drawn

Definition at line 1447 of file CPView.j.

- (void) displayRectIgnoringOpacity: (CGRect)  aRect
inContext: (CPGraphicsContext aGraphicsContext 
[implementation]

Definition at line 1456 of file CPView.j.

- (void) dragImage: (CPImage anImage
at: (CGPoint)  aLocation
offset: (CGSize)  mouseOffset
event: (CPEvent anEvent
pasteboard: (CPPasteboard aPasteboard
source: (id)  aSourceObject
slideBack: (BOOL)  slideBack 
[implementation]

Initiates a drag operation from the receiver to another view that accepts dragged data.

Parameters:
anImage the image to be dragged
aLocation the lower-left corner coordinate of anImage
mouseOffset the distance from the mouseDown: location and the current location
anEvent the mouseDown: that triggered the drag
aPastebaord the pasteboard that holds the drag data
aSourceObject the drag operation controller
slideBack Whether the image should 'slide back' if the drag is rejected

Definition at line 1312 of file CPView.j.

- (void) dragView: (CPView aView
at: (CPPoint)  aLocation
offset: (CPSize)  mouseOffset
event: (CPEvent anEvent
pasteboard: (CPPasteboard aPasteboard
source: (id)  aSourceObject
slideBack: (BOOL)  slideBack 
[implementation]

Initiates a drag operation from the receiver to another view that accepts dragged data.

Parameters:
aView the view to be dragged
aLocation the lower-left corner coordinate of aView
mouseOffset the distance from the mouseDown: location and the current location
anEvent the mouseDown: that triggered the drag
aPastebaord the pasteboard that holds the drag data
aSourceObject the drag operation controller
slideBack Whether the view should 'slide back' if the drag is rejected

Definition at line 1327 of file CPView.j.

- (void) drawRect: (CPRect)  aRect   [implementation]

Draws the receiver into aRect. This method should be overridden by subclasses.

Parameters:
aRect the area that should be drawn into

Definition at line 1362 of file CPView.j.

- (CPMenuItem) enclosingMenuItem   [implementation]

Returns the menu item containing the receiver or one of its ancestor views.

Returns:
a menu item, or nil if the view or one of its ancestors wasn't found

Definition at line 491 of file CPView.j.

- (CPScrollView) enclosingScrollView   [implementation]

Returns the CPScrollView containing the receiver.

Returns:
the CPScrollView containing the receiver.

Definition at line 1633 of file CPView.j.

- (void) encodeWithCoder: (CPCoder aCoder   [implementation]

Archives the view to a coder.

Parameters:
aCoder the object into which the view's data will be archived.

Definition at line 1812 of file CPView.j.

- (BOOL) enterFullScreenMode: (CPScreen)  aScreen
withOptions: (CPDictionary options 
[implementation]

Puts the receiver into full screen mode.

Parameters:
aScreen the that should be used
options configuration options

Definition at line 854 of file CPView.j.

- (void) exitFullScreenModeWithOptions: (CPDictionary options   [implementation]

The receiver should exit full screen mode.

Parameters:
options configurations options

Definition at line 884 of file CPView.j.

- (CGRect) frame   [implementation]

Returns the receiver's frame.

Returns:
a copy of the receiver's frame

Definition at line 552 of file CPView.j.

- (CPView) hitTest: (CPPoint)  aPoint   [implementation]

Tests whether a point is contained within this view, or one of its subviews.

Parameters:
aPoint the point to test
Returns:
returns the containing view, or nil if the point is not contained

Definition at line 1014 of file CPView.j.

- (BOOL) hitTests   [implementation]

Returns whether or not the view responds to hit tests.

Returns:
YES if this view listens to hitTest messages, NO otherwise.

Definition at line 995 of file CPView.j.

- (id) init   [implementation]

Definition at line 195 of file CPView.j.

+ (void) initialize   [implementation]

Definition at line 176 of file CPView.j.

- (id) initWithCoder: (CPCoder aCoder   [implementation]

Initializes the view from an archive.

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

Definition at line 1747 of file CPView.j.

- (id) initWithFrame: (CGRect)  aFrame   [implementation]

Initializes the receiver for usage with the specified bounding rectangle

Returns:
the initialized view

Definition at line 204 of file CPView.j.

- (BOOL) isDescendantOf: (CPView aView   [implementation]

Returns YES if the receiver is, or is a descendant of, aView.

Parameters:
aView the view to test for ancestry

Definition at line 434 of file CPView.j.

- (BOOL) isFlipped   [implementation]

Returns whether the view is flipped.

Returns:
YES if the view is flipped. NO, otherwise.

Definition at line 520 of file CPView.j.

- (BOOL) isHidden   [implementation]

Returns YES if the receiver is hidden.

Definition at line 925 of file CPView.j.

- (BOOL) isHiddenOrHasHiddenAncestor   [implementation]

Returns YES if the receiver is hidden, or one of it's ancestor views is hidden. NO, otherwise.

Definition at line 970 of file CPView.j.

- (BOOL) isInFullScreenMode   [implementation]

Returns YES if the receiver is currently in full screen mode.

Definition at line 901 of file CPView.j.

- (BOOL) isOpaque   [implementation]

Returns whether the receiver is completely opaque. By default, returns NO.

Definition at line 1518 of file CPView.j.

- (CALayer) layer   [implementation]

Returns the core animation layer used by the receiver.

Definition at line 1702 of file CPView.j.

- (void) lockFocus   [implementation]

Locks focus on the receiver, so drawing commands apply to it.

Definition at line 1473 of file CPView.j.

- (void) mouseDown: (CPEvent anEvent   [implementation]

Definition at line 1042 of file CPView.j.

- (BOOL) mouseDownCanMoveWindow   [implementation]

Returns YES if mouse events aren't needed by the receiver and can be sent to the superview. The default implementation returns NO if the view is opaque.

Definition at line 1037 of file CPView.j.

- (BOOL) needsDisplay   [implementation]

Definition at line 1415 of file CPView.j.

- (BOOL) postsBoundsChangedNotifications   [implementation]

Returns YES if the receiver posts a CPViewBoundsDidChangeNotification when its bounds is changed.

Definition at line 1297 of file CPView.j.

- (BOOL) postsFrameChangedNotifications   [implementation]

Returns YES if the receiver posts a CPViewFrameDidChangeNotification if its frame is changed.

Definition at line 1264 of file CPView.j.

- (void) reflectScrolledClipView: (CPClipView aClipView   [implementation]

Notifies the receiver (superview of a CPClipView) that the clip view bounds or the document view bounds have changed.

Parameters:
aClipView the clip view of the superview being notified

Definition at line 1659 of file CPView.j.

- (CPArray) registeredDraggedTypes   [implementation]

Returns an array of all types the receiver accepts for dragging operations.

Returns:
an array of CPPasteBoards

Definition at line 1345 of file CPView.j.

- (void) registerForDraggedTypes: (CPArray pasteboardTypes   [implementation]

Sets the receiver's list of acceptable data types for a dragging operation.

Parameters:
pasteboardTypes an array of CPPasteboards

Definition at line 1336 of file CPView.j.

- (void) removeFromSuperview   [implementation]

Removes the receiver from it's container view and window. Does nothing if there's no container view.

Definition at line 380 of file CPView.j.

- (void) replaceSubview: (CPView aSubview
with: (CPView aView 
[implementation]

Replaces the specified child view with another view

Parameters:
aSubview the view to replace
aView the replacement view

Definition at line 402 of file CPView.j.

- (void) resizeSubviewsWithOldSize: (CGSize)  aSize   [implementation]

Initiates superviewSizeChanged: messages to subviews.

Parameters:
aSize the size for the subviews

Definition at line 802 of file CPView.j.

- (void) resizeWithOldSuperviewSize: (CGSize)  aSize   [implementation]

Notifies subviews that the superview changed size.

Parameters:
aSize the size of the old superview

Definition at line 771 of file CPView.j.

- (void) scrollClipView: (CPClipView aClipView
toPoint: (CGPoint)  aPoint 
[implementation]

Scrolls the clip view to a specified point

Parameters:
the clip view to scoll
the point to scroll to

Definition at line 1649 of file CPView.j.

- (void) scrollPoint: (CGPoint)  aPoint   [implementation]

Changes the receiver's frame origin to a 'constrained' aPoint.

Parameters:
aPoint the proposed frame origin

Definition at line 1551 of file CPView.j.

- (void) scrollRect: (CGRect)  aRect
by: (float)  anAmount 
[implementation]

Should be overridden by subclasses.

Definition at line 1624 of file CPView.j.

- (BOOL) scrollRectToVisible: (CGRect)  aRect   [implementation]

Scrolls the nearest ancestor CPClipView a minimum amount so aRect can become visible.

Parameters:
aRect the area to become visible
Returns:
<codeYES if any scrolling occurred, NO otherwise.

Definition at line 1566 of file CPView.j.

- (void) setAlphaValue: (float)  anAlphaValue   [implementation]

Sets the opacity of the receiver. The value must be in the range of 0.0 to 1.0, where 0.0 is completely transparent and 1.0 is completely opaque.

Parameters:
anAlphaValue an alpha value ranging from 0.0 to 1.0.

Definition at line 935 of file CPView.j.

- (void) setAutoresizesSubviews: (BOOL)  aFlag   [implementation]

Specifies whether the receiver view should automatically resize its subviews when its setFrameSize: method receives a change.

Parameters:
aFlag If YES, then subviews will automatically be resized when this view is resized. NO means the views will not be resized automatically.

Definition at line 817 of file CPView.j.

- (void) setAutoresizingMask: (unsigned)  aMask   [implementation]

Determines automatic resizing behavior.

Parameters:
aMask a bit mask with options

Definition at line 835 of file CPView.j.

- (void) setBackgroundColor: (CPColor)  aColor   [implementation]

Sets the background color of the receiver.

Parameters:
aColor the new color for the receiver's background

Definition at line 1052 of file CPView.j.

- (void) setBounds: (CGRect)  bounds   [implementation]

Sets the receiver's bounds. The bounds define the size and location of the receiver inside it's frame. Posts a CPViewBoundsDidChangeNotification to the default notification center if the receiver is configured to do so.

Parameters:
bounds the new bounds

Definition at line 660 of file CPView.j.

- (void) setBoundsOrigin: (CGPoint)  aPoint   [implementation]

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:
aPoint the new location for the receiver

Definition at line 691 of file CPView.j.

- (void) setBoundsSize: (CGSize)  aSize   [implementation]

Sets the receiver's size inside its frame. The method posts a CPViewBoundsDidChangeNotification to the default notification center if the receiver is configured to do so.

Parameters:
aSize the new size for the receiver

Definition at line 734 of file CPView.j.

- (void) setFrame: (CGRect)  aFrame   [implementation]

Sets the frame size of the receiver to the dimensions and origin of the provided rectangle in the coordinate system of the superview. The method also posts an CPViewFrameDidChangeNotification to the notification center if the receiver is configured to do so. If the frame is the same as the current frame, the method simply returns (and no notificaion is posted).

Parameters:
aFrame the rectangle specifying the new origin and size of the receiver

Definition at line 532 of file CPView.j.

- (void) setFrameOrigin: (CGPoint)  aPoint   [implementation]

Sets the receiver's frame origin to the provided point. The point is defined in the superview's coordinate system. The method posts a CPViewFrameDidChangeNotification to the default notification center if the receiver is configured to do so. If the specified origin is the same as the frame's current origin, the method will simply return (and no notification will be posted).

Parameters:
aPoint the new origin point

Definition at line 564 of file CPView.j.

- (void) setFrameSize: (CGSize)  aSize   [implementation]

Sets the receiver's frame size. If aSize is the same as the frame's current dimensions, this method simply returns. The method posts a CPViewFrameDidChangeNotification to the default notification center if the receiver is configured to do so.

Parameters:
aSize the new size for the frame

Definition at line 588 of file CPView.j.

- (void) setHidden: (BOOL)  aFlag   [implementation]

Sets whether the receiver should be hidden.

Parameters:
aFlag YES makes the receiver hidden.

Definition at line 910 of file CPView.j.

- (void) setHitTests: (BOOL)  shouldHitTest   [implementation]

Set whether or not the view should respond to hit tests.

Parameters:
shouldHitTest should be YES if this view should respond to hit tests, NO otherwise.

Definition at line 1004 of file CPView.j.

- (void) setLayer: (CALayer aLayer   [implementation]

Sets the core animation layer to be used by this receiver.

Definition at line 1670 of file CPView.j.

- (void) setNeedsDisplay: (BOOL)  aFlag   [implementation]

Marks the entire view as dirty, and needing a redraw.

Definition at line 1372 of file CPView.j.

- (void) setNeedsDisplayInRect: (CPRect)  aRect   [implementation]

Marks the area denoted by aRect as dirty, and initiates a redraw on it.

Parameters:
aRect the area that needs to be redrawn

Definition at line 1386 of file CPView.j.

- (void) setPostsBoundsChangedNotifications: (BOOL)  shouldPostBoundsChangedNotifications   [implementation]

Sets whether the receiver posts a CPViewBoundsDidChangeNotification notification to the default notification center when its bounds is changed. The default is NO. Methods that could cause a bounds change notification are:

setBounds:
setBoundsSize:
setBoundsOrigin:
Parameters:
shouldPostBoundsChangedNotifications YES makes the receiver post notifications on bounds changes

Definition at line 1281 of file CPView.j.

- (void) setPostsFrameChangedNotifications: (BOOL)  shouldPostFrameChangedNotifications   [implementation]

Sets whether the receiver posts a CPViewFrameDidChangeNotification notification to the default notification center when its frame is changed. The default is NO. Methods that could cause a frame change notification are:

setFrame:
setFrameSize:
setFrameOrigin:
Parameters:
shouldPostFrameChangedNotifications YES makes the receiver post notifications on frame changes (size or origin)

Definition at line 1250 of file CPView.j.

- (void) setWantsLayer: (BOOL)  aFlag   [implementation]

Sets whether the receiver wants a core animation layer.

Parameters:
<code>YES</code> means the receiver wants a layer.

Definition at line 1711 of file CPView.j.

- (CPArray) subviews   [implementation]

Returns an array of all the views contained as direct children of the receiver

Returns:
an array of CPViews

Definition at line 258 of file CPView.j.

- (CPView) superview   [implementation]

Returns the container view of the receiver

Returns:
the receiver's containing view

Definition at line 249 of file CPView.j.

- (int) tag   [implementation]

Definition at line 511 of file CPView.j.

- (void) unlockFocus   [implementation]

Takes focus away from the receiver, and restores it to the previous view.

Definition at line 1508 of file CPView.j.

- (void) unregisterDraggedTypes   [implementation]

Resets the array of acceptable data types for a dragging operation.

Definition at line 1353 of file CPView.j.

- (void) viewDidMoveToSuperview   [implementation]

Called when the receiver's superview has changed.

Definition at line 450 of file CPView.j.

- (void) viewDidMoveToWindow   [implementation]

Called when the receiver has been moved to a new CPWindow.

Definition at line 459 of file CPView.j.

- (void) viewWillDraw   [implementation]

Definition at line 1466 of file CPView.j.

- (void) viewWillMoveToSuperview: (CPView aView   [implementation]

Called when the receiver is about to be moved to a new view.

Parameters:
aView the view to which the receiver will be moved

Definition at line 467 of file CPView.j.

- (void) viewWillMoveToWindow: (CPWindow aWindow   [implementation]

Called when the receiver is about to be moved to a new window.

Parameters:
aWindow the window to which the receiver will be moved.

Definition at line 475 of file CPView.j.

- (CGRect) visibleRect   [implementation]

Returns the rectangle of the receiver not clipped by its superview.

Definition at line 1526 of file CPView.j.

- (BOOL) wantsLayer   [implementation]

Returns YES if the receiver uses a CALayer

Returns:
YES if the receiver uses a CALayer

Definition at line 1720 of file CPView.j.

- (void) willRemoveSubview: (CPView aView   [implementation]

Called when the receiver is about to be remove one of its subviews.

Parameters:
aView the view that will be removed

Definition at line 483 of file CPView.j.

- (CPWindow) window   [implementation]

Returns the window containing this receiver

Definition at line 266 of file CPView.j.


The documentation for this class was generated from the following file:

Generated on Thu Dec 11 01:55:51 2008 for Cappuccino by  doxygen 1.5.7.1