CPView Class Reference
[AppKit]

List of all members.

Public Member Functions

(BOOL) - acceptsFirstMouse: [implementation]
(void) - addSubview: [implementation]
(void) - addSubview:positioned:relativeTo: [implementation]
(CGRect) - adjustScroll: [implementation]
(float) - alphaValue [implementation]
(BOOL) - autoresizesSubviews [implementation]
(unsigned) - autoresizingMask [implementation]
(BOOL) - autoscroll: [implementation]
(CPColor- backgroundColor [implementation]
(CGRect) - bounds [implementation]
(CGPoint) - boundsOrigin [implementation]
(CGSize) - boundsSize [implementation]
(BOOL) - canBecomeKeyView [implementation]
(CGPoint) - center [implementation]
(CGPoint) - convertPoint:fromView: [implementation]
(CGPoint) - convertPoint:toView: [implementation]
(CGRect) - convertRect:fromView: [implementation]
(CGRect) - convertRect:toView: [implementation]
(CGSize) - convertSize:fromView: [implementation]
(CGSize) - convertSize:toView: [implementation]
(CPView- createEphemeralSubviewNamed: [implementation]
(id) - currentValueForThemeAttribute: [implementation]
(void) - didAddSubview: [implementation]
(void) - display [implementation]
(void) - displayIfNeeded [implementation]
(void) - displayIfNeededInRect: [implementation]
(void) - displayRect: [implementation]
(void) - displayRectIgnoringOpacity:inContext: [implementation]
(void) - dragImage:at:offset:event:pasteboard:source:slideBack: [implementation]
(void) - dragView:at:offset:event:pasteboard:source:slideBack: [implementation]
(void) - drawRect: [implementation]
(CPMenuItem- enclosingMenuItem [implementation]
(CPScrollView- enclosingScrollView [implementation]
(void) - encodeWithCoder: [implementation]
(BOOL) - enterFullScreenMode [implementation]
(BOOL) - enterFullScreenMode:withOptions: [implementation]
(void) - exitFullScreenMode [implementation]
(void) - exitFullScreenModeWithOptions: [implementation]
(CGRect) - frame [implementation]
(CGPoint) - frameOrigin [implementation]
(CGSize) - frameSize [implementation]
(BOOL) - hasThemeState: [implementation]
(CPView- hitTest: [implementation]
(BOOL) - hitTests [implementation]
(id) - init [implementation]
(id) - initWithCoder: [implementation]
(id) - initWithFrame: [implementation]
(BOOL) - isDescendantOf: [implementation]
(BOOL) - isFlipped [implementation]
(BOOL) - isHidden [implementation]
(BOOL) - isHiddenOrHasHiddenAncestor [implementation]
(BOOL) - isInFullScreenMode [implementation]
(BOOL) - isOpaque [implementation]
(CALayer- layer [implementation]
(CPView- layoutEphemeralSubviewNamed:positioned:relativeToEphemeralSubviewNamed: [implementation]
(void) - layoutIfNeeded [implementation]
(void) - layoutSubviews [implementation]
(void) - lockFocus [implementation]
(void) - mouseDown: [implementation]
(BOOL) - mouseDownCanMoveWindow [implementation]
(BOOL) - needsDisplay [implementation]
(BOOL) - needsPanelToBecomeKey [implementation]
(CPView- nextKeyView [implementation]
(CPView- nextValidKeyView [implementation]
(BOOL) - performKeyEquivalent: [implementation]
(BOOL) - postsBoundsChangedNotifications [implementation]
(BOOL) - postsFrameChangedNotifications [implementation]
(CPView- previousKeyView [implementation]
(CPView- previousValidKeyView [implementation]
(CGRect) - rectForEphemeralSubviewNamed: [implementation]
(void) - reflectScrolledClipView: [implementation]
(CPArray- registeredDraggedTypes [implementation]
(void) - registerForDraggedTypes: [implementation]
(void) - removeFromSuperview [implementation]
(void) - replaceSubview:with: [implementation]
(void) - resizeSubviewsWithOldSize: [implementation]
(void) - resizeWithOldSuperviewSize: [implementation]
(void) - scrollClipView:toPoint: [implementation]
(void) - scrollPoint: [implementation]
(void) - scrollRect:by: [implementation]
(BOOL) - scrollRectToVisible: [implementation]
(void) - setAlphaValue: [implementation]
(void) - setAutoresizesSubviews: [implementation]
(void) - setAutoresizingMask: [implementation]
(void) - setBackgroundColor: [implementation]
(void) - setBounds: [implementation]
(void) - setBoundsOrigin: [implementation]
(void) - setBoundsSize: [implementation]
(void) - setCenter: [implementation]
(void) - setFrame: [implementation]
(void) - setFrameOrigin: [implementation]
(void) - setFrameSize: [implementation]
(void) - setHidden: [implementation]
(void) - setHitTests: [implementation]
(void) - setLayer: [implementation]
(void) - setNeedsDisplay: [implementation]
(void) - setNeedsDisplayInRect: [implementation]
(void) - setNeedsLayout [implementation]
(void) - setNextKeyView: [implementation]
(void) - setPostsBoundsChangedNotifications: [implementation]
(void) - setPostsFrameChangedNotifications: [implementation]
(void) - setSubviews: [implementation]
(void) - setTag: [implementation]
(void) - setTheme: [implementation]
(BOOL) - setThemeState: [implementation]
(void) - setupViewFlags [implementation]
(void) - setValue:forThemeAttribute: [implementation]
(void) - setValue:forThemeAttribute:inState: [implementation]
(void) - setWantsLayer: [implementation]
(CPArray- subviews [implementation]
(CPView- superview [implementation]
(CPInteger) - tag [implementation]
(CPTheme- theme [implementation]
(unsigned) - themeState [implementation]
(void) - unlockFocus [implementation]
(void) - unregisterDraggedTypes [implementation]
(BOOL) - unsetThemeState: [implementation]
(id) - valueForThemeAttribute: [implementation]
(id) - valueForThemeAttribute:inState: [implementation]
(void) - viewDidChangeTheme [implementation]
(void) - viewDidMoveToSuperview [implementation]
(void) - viewDidMoveToWindow [implementation]
(void) - viewWillDraw [implementation]
(void) - viewWillMoveToSuperview: [implementation]
(void) - viewWillMoveToWindow: [implementation]
(CPView- viewWithTag: [implementation]
(CGRect) - visibleRect [implementation]
(BOOL) - wantsLayer [implementation]
(void) - willRemoveSubview: [implementation]
(CPWindow- window [implementation]

Static Public Member Functions

(void) + initialize [implementation]
(CPSet+ keyPathsForValuesAffectingBounds [implementation]
(CPSet+ keyPathsForValuesAffectingFrame [implementation]
(CPDictionary+ themeAttributes [implementation]
(CPString+ themeClass [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 121 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 1242 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 331 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 342 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 1906 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 1217 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 1044 of file CPView.j.

- (unsigned) autoresizingMask   [implementation]

Returns the bit mask options for resizing behavior

Definition at line 1061 of file CPView.j.

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

Definition at line 1895 of file CPView.j.

- (CPColor) backgroundColor   [implementation]

Returns the background color of the receiver

Definition at line 1430 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 888 of file CPView.j.

- (CGPoint) boundsOrigin   [implementation]

Definition at line 893 of file CPView.j.

- (CGSize) boundsSize   [implementation]

Definition at line 898 of file CPView.j.

- (BOOL) canBecomeKeyView   [implementation]

Definition at line 1969 of file CPView.j.

- (CGPoint) center   [implementation]

Returns the center of the receiver's frame to the provided point. The point is defined in the superview's coordinate system.

Returns:
CGPoint the center point of the receiver's frame

Definition at line 757 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 1442 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 1453 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 1486 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 1497 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 1464 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 1475 of file CPView.j.

- (CPView) createEphemeralSubviewNamed: (CPString aViewName   [implementation]

Definition at line 2305 of file CPView.j.

- (id) currentValueForThemeAttribute: (CPString aName   [implementation]

Definition at line 2297 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 431 of file CPView.j.

- (void) display   [implementation]

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

Definition at line 1698 of file CPView.j.

- (void) displayIfNeeded   [implementation]

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

Definition at line 1689 of file CPView.j.

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

Definition at line 1703 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 1713 of file CPView.j.

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

Definition at line 1722 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 1580 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 top-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 1595 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 1645 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 641 of file CPView.j.

- (CPScrollView) enclosingScrollView   [implementation]

Returns the CPScrollView containing the receiver.

Returns:
the CPScrollView containing the receiver.

Definition at line 1923 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 2471 of file CPView.j.

- (BOOL) enterFullScreenMode   [implementation]

Puts the receiver into full screen mode.

Definition at line 1071 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 1081 of file CPView.j.

- (void) exitFullScreenMode   [implementation]

The receiver should exit full screen mode.

Definition at line 1110 of file CPView.j.

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

The receiver should exit full screen mode.

Parameters:
options configurations options

Definition at line 1119 of file CPView.j.

- (CGRect) frame   [implementation]

Returns the receiver's frame.

Returns:
a copy of the receiver's frame

Definition at line 726 of file CPView.j.

- (CGPoint) frameOrigin   [implementation]

Definition at line 731 of file CPView.j.

- (CGSize) frameSize   [implementation]

Definition at line 736 of file CPView.j.

- (BOOL) hasThemeState: (CPThemeState)  aState   [implementation]

Definition at line 2087 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 1270 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 1251 of file CPView.j.

- (id) init   [implementation]

Definition at line 246 of file CPView.j.

+ (void) initialize   [implementation]

Definition at line 196 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 2378 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 255 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 584 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 694 of file CPView.j.

- (BOOL) isHidden   [implementation]

Returns YES if the receiver is hidden.

Definition at line 1181 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 1226 of file CPView.j.

- (BOOL) isInFullScreenMode   [implementation]

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

Definition at line 1136 of file CPView.j.

- (BOOL) isOpaque   [implementation]

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

Definition at line 1809 of file CPView.j.

+ (CPSet) keyPathsForValuesAffectingBounds   [implementation]

Definition at line 241 of file CPView.j.

+ (CPSet) keyPathsForValuesAffectingFrame   [implementation]

Definition at line 236 of file CPView.j.

- (CALayer) layer   [implementation]

Returns the core animation layer used by the receiver.

Definition at line 2054 of file CPView.j.

- (CPView) layoutEphemeralSubviewNamed: (CPString aViewName
positioned: (CPWindowOrderingMode)  anOrderingMode
relativeToEphemeralSubviewNamed: (CPString relativeToViewName 
[implementation]

Definition at line 2315 of file CPView.j.

- (void) layoutIfNeeded   [implementation]

Definition at line 1792 of file CPView.j.

- (void) layoutSubviews   [implementation]

Definition at line 1802 of file CPView.j.

- (void) lockFocus   [implementation]

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

Definition at line 1739 of file CPView.j.

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

Definition at line 1306 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 1301 of file CPView.j.

- (BOOL) needsDisplay   [implementation]

Definition at line 1681 of file CPView.j.

- (BOOL) needsPanelToBecomeKey   [implementation]

Returns YES if this view requires a panel to become key. Normally only text fields, so this returns NO.

Definition at line 1292 of file CPView.j.

- (CPView) nextKeyView   [implementation]

Definition at line 1974 of file CPView.j.

- (CPView) nextValidKeyView   [implementation]

Definition at line 1979 of file CPView.j.

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

Definition at line 1957 of file CPView.j.

- (BOOL) postsBoundsChangedNotifications   [implementation]

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

Definition at line 1565 of file CPView.j.

- (BOOL) postsFrameChangedNotifications   [implementation]

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

Definition at line 1530 of file CPView.j.

- (CPView) previousKeyView   [implementation]

Definition at line 1989 of file CPView.j.

- (CPView) previousValidKeyView   [implementation]

Definition at line 1994 of file CPView.j.

- (CGRect) rectForEphemeralSubviewNamed: (CPString aViewName   [implementation]

Definition at line 2310 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 1949 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 1622 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 1604 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 439 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 464 of file CPView.j.

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

Initiates -superviewSizeChanged: messages to subviews.

Parameters:
aSize the size for the subviews

Definition at line 1020 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 989 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 1939 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 1842 of file CPView.j.

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

Should be overridden by subclasses.

Definition at line 1914 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 1857 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 1191 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 1035 of file CPView.j.

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

Determines automatic resizing behavior.

Parameters:
aMask a bit mask with options

Definition at line 1053 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 1316 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 868 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 909 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 952 of file CPView.j.

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

Moves the center of the receiver's frame 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 748 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 706 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 769 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 795 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 1145 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 1260 of file CPView.j.

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

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

Definition at line 2022 of file CPView.j.

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

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

Definition at line 1655 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 1665 of file CPView.j.

- (void) setNeedsLayout   [implementation]

Definition at line 1782 of file CPView.j.

- (void) setNextKeyView: (CPView next   [implementation]

Definition at line 2009 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 1547 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 1514 of file CPView.j.

- (void) setSubviews: (CPArray newSubviews   [implementation]

Definition at line 476 of file CPView.j.

- (void) setTag: (CPInteger)  aTag   [implementation]

Definition at line 661 of file CPView.j.

- (void) setTheme: (CPTheme aTheme   [implementation]

Definition at line 2202 of file CPView.j.

- (BOOL) setThemeState: (CPThemeState)  aState   [implementation]

Definition at line 2092 of file CPView.j.

- (void) setupViewFlags   [implementation]

Definition at line 215 of file CPView.j.

- (void) setValue: (id)  aValue
forThemeAttribute: (CPString aName 
[implementation]

Definition at line 2265 of file CPView.j.

- (void) setValue: (id)  aValue
forThemeAttribute: (CPString aName
inState: (CPThemeState)  aState 
[implementation]

Definition at line 2249 of file CPView.j.

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

Sets whether the receiver wants a core animation layer.

Parameters:
\c YES means the receiver wants a layer.

Definition at line 2063 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 314 of file CPView.j.

- (CPView) superview   [implementation]

Returns the container view of the receiver

Returns:
the receiver's containing view

Definition at line 305 of file CPView.j.

- (CPInteger) tag   [implementation]

Definition at line 666 of file CPView.j.

- (CPTheme) theme   [implementation]

Definition at line 2212 of file CPView.j.

+ (CPDictionary) themeAttributes   [implementation]

Definition at line 2129 of file CPView.j.

+ (CPString) themeClass   [implementation]

Definition at line 2124 of file CPView.j.

- (unsigned) themeState   [implementation]

Definition at line 2082 of file CPView.j.

- (void) unlockFocus   [implementation]

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

Definition at line 1775 of file CPView.j.

- (void) unregisterDraggedTypes   [implementation]

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

Definition at line 1633 of file CPView.j.

- (BOOL) unsetThemeState: (CPThemeState)  aState   [implementation]

Definition at line 2107 of file CPView.j.

- (id) valueForThemeAttribute: (CPString aName   [implementation]

Definition at line 2289 of file CPView.j.

- (id) valueForThemeAttribute: (CPString aName
inState: (CPThemeState)  aState 
[implementation]

Definition at line 2281 of file CPView.j.

- (void) viewDidChangeTheme   [implementation]

Definition at line 2217 of file CPView.j.

- (void) viewDidMoveToSuperview   [implementation]

Called when the receiver's superview has changed.

Definition at line 600 of file CPView.j.

- (void) viewDidMoveToWindow   [implementation]

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

Definition at line 609 of file CPView.j.

- (void) viewWillDraw   [implementation]

Definition at line 1732 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 617 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 625 of file CPView.j.

- (CPView) viewWithTag: (CPInteger)  aTag   [implementation]

Definition at line 671 of file CPView.j.

- (CGRect) visibleRect   [implementation]

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

Definition at line 1817 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 2072 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 633 of file CPView.j.

- (CPWindow) window   [implementation]

Returns the window containing this receiver

Definition at line 322 of file CPView.j.


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

Generated on Fri Apr 9 11:04:23 2010 for Cappuccino API by  doxygen 1.6.1