CPView Class Reference
[AppKit]

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]
(void) - setTag: [implementation]
(CPInteger) - tag [implementation]
(void) - viewWithTag: [implementation]
(BOOL) - isFlipped [implementation]
(void) - setFrame: [implementation]
(CGRect) - frame [implementation]
(void) - setCenter: [implementation]
(CGPoint) - center [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 [implementation]
(BOOL) - enterFullScreenMode:withOptions: [implementation]
(void) - exitFullScreenMode [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]
(void) - setNeedsLayout [implementation]
(void) - layoutIfNeeded [implementation]
(void) - layoutSubviews [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]
(BOOL) - canBecomeKeyView [implementation]
(CPView- nextKeyView [implementation]
(CPView- nextValidKeyView [implementation]
(CPView- previousKeyView [implementation]
(CPView- previousValidKeyView [implementation]
(void) - setNextKeyView: [implementation]
(void) - setLayer: [implementation]
(CALayer- layer [implementation]
(void) - setWantsLayer: [implementation]
(BOOL) - wantsLayer [implementation]
(unsigned) - themeState [implementation]
(BOOL) - hasThemeState: [implementation]
(BOOL) - setThemeState: [implementation]
(BOOL) - unsetThemeState: [implementation]
(void) - setTheme: [implementation]
(CPTheme- theme [implementation]
(void) - viewDidChangeTheme [implementation]
(void) - setValue:forThemeAttribute:inState: [implementation]
(void) - setValue:forThemeAttribute: [implementation]
(id) - valueForThemeAttribute:inState: [implementation]
(id) - valueForThemeAttribute: [implementation]
(void) - currentValueForThemeAttribute: [implementation]
(id) - initWithCoder: [implementation]
(void) - encodeWithCoder: [implementation]

Static Public Member Functions

(void) + initialize [implementation]
(CPString+ themeClass [implementation]
(CPDictionary+ themeAttributes [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 120 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 1116 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 296 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 307 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 1802 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 1091 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 918 of file CPView.j.

- (unsigned) autoresizingMask   [implementation]

Returns the bit mask options for resizing behavior

Definition at line 935 of file CPView.j.

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

Definition at line 1791 of file CPView.j.

- (CPColor) backgroundColor   [implementation]

Returns the background color of the receiver

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

- (BOOL) canBecomeKeyView   [implementation]

Definition at line 1853 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 643 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 1308 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 1319 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 1352 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 1363 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 1330 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 1341 of file CPView.j.

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

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

- (void) display   [implementation]

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

Definition at line 1581 of file CPView.j.

- (void) displayIfNeeded   [implementation]

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

Definition at line 1572 of file CPView.j.

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

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

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

Definition at line 1605 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 1446 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 1461 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 1511 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 537 of file CPView.j.

- (CPScrollView) enclosingScrollView   [implementation]

Returns the CPScrollView containing the receiver.

Returns:
the CPScrollView containing the receiver.

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

- (BOOL) enterFullScreenMode   [implementation]

Puts the receiver into full screen mode.

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

- (void) exitFullScreenMode   [implementation]

The receiver should exit full screen mode.

Definition at line 984 of file CPView.j.

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

The receiver should exit full screen mode.

Parameters:
options configurations options

Definition at line 993 of file CPView.j.

- (CGRect) frame   [implementation]

Returns the receiver's frame.

Returns:
a copy of the receiver's frame

Definition at line 622 of file CPView.j.

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

Definition at line 1971 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 1144 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 1125 of file CPView.j.

- (id) init   [implementation]

Definition at line 211 of file CPView.j.

+ (void) initialize   [implementation]

Definition at line 192 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 2209 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 220 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 480 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 590 of file CPView.j.

- (BOOL) isHidden   [implementation]

Returns YES if the receiver is hidden.

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

- (BOOL) isInFullScreenMode   [implementation]

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

Definition at line 1010 of file CPView.j.

- (BOOL) isOpaque   [implementation]

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

Definition at line 1705 of file CPView.j.

- (CALayer) layer   [implementation]

Returns the core animation layer used by the receiver.

Definition at line 1938 of file CPView.j.

- (void) layoutIfNeeded   [implementation]

Definition at line 1688 of file CPView.j.

- (void) layoutSubviews   [implementation]

Definition at line 1698 of file CPView.j.

- (void) lockFocus   [implementation]

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

Definition at line 1622 of file CPView.j.

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

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

- (BOOL) needsDisplay   [implementation]

Definition at line 1564 of file CPView.j.

- (CPView) nextKeyView   [implementation]

Definition at line 1858 of file CPView.j.

- (CPView) nextValidKeyView   [implementation]

Definition at line 1863 of file CPView.j.

- (BOOL) postsBoundsChangedNotifications   [implementation]

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

Definition at line 1431 of file CPView.j.

- (BOOL) postsFrameChangedNotifications   [implementation]

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

Definition at line 1396 of file CPView.j.

- (CPView) previousKeyView   [implementation]

Definition at line 1873 of file CPView.j.

- (CPView) previousValidKeyView   [implementation]

Definition at line 1878 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 1845 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 1488 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 1470 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 404 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 429 of file CPView.j.

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

Initiates superviewSizeChanged: messages to subviews.

Parameters:
aSize the size for the subviews

Definition at line 894 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 863 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 1835 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 1738 of file CPView.j.

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

Should be overridden by subclasses.

Definition at line 1810 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 1753 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 1065 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 909 of file CPView.j.

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

Determines automatic resizing behavior.

Parameters:
aMask a bit mask with options

Definition at line 927 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 1182 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 752 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 783 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 826 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 634 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 602 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 655 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 679 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 1019 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 1134 of file CPView.j.

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

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

Definition at line 1906 of file CPView.j.

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

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

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

- (void) setNeedsLayout   [implementation]

Definition at line 1664 of file CPView.j.

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

Definition at line 1893 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 1413 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 1380 of file CPView.j.

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

Definition at line 557 of file CPView.j.

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

Definition at line 2084 of file CPView.j.

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

Definition at line 1976 of file CPView.j.

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

Definition at line 2144 of file CPView.j.

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

Definition at line 2128 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 1947 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 279 of file CPView.j.

- (CPView) superview   [implementation]

Returns the container view of the receiver

Returns:
the receiver's containing view

Definition at line 270 of file CPView.j.

- (CPInteger) tag   [implementation]

Definition at line 562 of file CPView.j.

- (CPTheme) theme   [implementation]

Definition at line 2094 of file CPView.j.

+ (CPDictionary) themeAttributes   [implementation]

Definition at line 2013 of file CPView.j.

+ (CPString) themeClass   [implementation]

Definition at line 2008 of file CPView.j.

- (unsigned) themeState   [implementation]

Definition at line 1966 of file CPView.j.

- (void) unlockFocus   [implementation]

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

Definition at line 1657 of file CPView.j.

- (void) unregisterDraggedTypes   [implementation]

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

Definition at line 1499 of file CPView.j.

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

Definition at line 1991 of file CPView.j.

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

Definition at line 2168 of file CPView.j.

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

Definition at line 2160 of file CPView.j.

- (void) viewDidChangeTheme   [implementation]

Definition at line 2099 of file CPView.j.

- (void) viewDidMoveToSuperview   [implementation]

Called when the receiver's superview has changed.

Definition at line 496 of file CPView.j.

- (void) viewDidMoveToWindow   [implementation]

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

Definition at line 505 of file CPView.j.

- (void) viewWillDraw   [implementation]

Definition at line 1615 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 513 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 521 of file CPView.j.

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

Definition at line 567 of file CPView.j.

- (CGRect) visibleRect   [implementation]

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

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

- (CPWindow) window   [implementation]

Returns the window containing this receiver

Definition at line 287 of file CPView.j.


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

Generated on Wed May 20 12:44:01 2009 for Cappuccino by  doxygen 1.5.8