API  0.9.10
CPView Class Reference
+ Inheritance diagram for CPView:

Instance Methods

(BOOL) - acceptsFirstMouse:
 
(void) - addSubview:
 
(void) - addSubview:positioned:relativeTo:
 
(void) - addTrackingArea:
 
(CGRect) - adjustScroll:
 
(float) - alphaValue
 
(CAAnimation- animationForKey:
 
(CPDictionary- animations
 
(id) - animator
 
(BOOL) - autoresizesSubviews
 
(unsigned) - autoresizingMask
 
(BOOL) - autoscroll:
 
(CPColor- backgroundColor
 
(BOOL) - becomeFirstResponder
 
(CGRect) - bounds
 
(CGPoint) - boundsOrigin
 
(CGSize) - boundsSize
 
(BOOL) - canBecomeKeyView
 
(CGPoint) - center
 
(BOOL) - clipsToBounds
 
(CGPoint) - convertPoint:fromView:
 
(CGPoint) - convertPoint:toView:
 
(CGPoint) - convertPointFromBase:
 
(CGPoint) - convertPointToBase:
 
(CGRect) - convertRect:fromView:
 
(CGRect) - convertRect:toView:
 
(CGRect) - convertRectFromBase:
 
(CGRect) - convertRectToBase:
 
(CGSize) - convertSize:fromView:
 
(CGSize) - convertSize:toView:
 
(CPView- createEphemeralSubviewNamed:
 
(CPString- debug_description
 
(void) - didAddSubview:
 
(void) - display
 
(void) - displayIfNeeded
 
(void) - displayIfNeededInRect:
 
(void) - displayRect:
 
(void) - displayRectIgnoringOpacity:inContext:
 
(void) - dragImage:at:offset:event:pasteboard:source:slideBack:
 
(void) - dragView:at:offset:event:pasteboard:source:slideBack:
 
(void) - drawRect:
 
(CPAppearance- effectiveAppearance
 
(CPMenuItem- enclosingMenuItem
 
(CPScrollView- enclosingScrollView
 
(void) - encodeWithCoder:
 
(BOOL) - enterFullScreenMode
 
(BOOL) - enterFullScreenMode:withOptions:
 
(CPView- ephemeralSubviewNamed:
 
(void) - exitFullScreenMode
 
(void) - exitFullScreenModeWithOptions:
 
(CGRect) - frame
 
(CGPoint) - frameOrigin
 
(CGRect) - frameRectOfView:inSuperviewSize:
 
(CGSize) - frameSize
 
(CGRect) - frameWithNewSuperviewSize:
 
(BOOL) - hasCustomDrawRect
 
(BOOL) - hasCustomLayoutSubviews
 
(CPView- hitTest:
 
(BOOL) - hitTests
 
(id) - init
 
(id) - initWithCoder:
 
(id) - initWithFrame:
 
(BOOL) - inLiveResize
 
(BOOL) - isDescendantOf:
 
(BOOL) - isFlipped
 
(BOOL) - isHidden
 
(BOOL) - isHiddenOrHasHiddenAncestor
 
(BOOL) - isInFullScreenMode
 
(BOOL) - isOpaque
 
(CALayer- layer
 
(void) - layout
 
(CPView- layoutEphemeralSubviewNamed:positioned:relativeToEphemeralSubviewNamed:
 
(void) - layoutIfNeeded
 
(void) - layoutSubviews
 
(void) - lockFocus
 
(CPMenu- menuForEvent:
 
(void) - mouseDown:
 
(BOOL) - mouseDownCanMoveWindow
 
(BOOL) - needsDisplay
 
(BOOL) - needsLayout
 
(BOOL) - needsPanelToBecomeKey
 
(CPView- nextKeyView
 
(CPView- nextValidKeyView
 
(void) - objectDidChangeTheme
 
(BOOL) - performKeyEquivalent:
 
(BOOL) - postsBoundsChangedNotifications
 
(BOOL) - postsFrameChangedNotifications
 
(CPView- previousKeyView
 
(CPView- previousValidKeyView
 
(CGRect) - rectForEphemeralSubviewNamed:
 
(void) - reflectScrolledClipView:
 
(CPArray) - registeredDraggedTypes
 
(void) - registerForDraggedTypes:
 
(void) - removeAllTrackingAreas
 
(void) - removeFromSuperview
 
(void) - removeTrackingArea:
 
(void) - replaceSubview:with:
 
(BOOL) - resignFirstResponder
 
(void) - resizeSubviewsWithOldSize:
 
(void) - resizeWithOldSuperviewSize:
 
(void) - rightMouseDown:
 
(CGSize) - scaleSize
 
(void) - scaleUnitSquareToSize:
 
(void) - scrollClipView:toPoint:
 
(void) - scrollPoint:
 
(void) - scrollRect:by:
 
(BOOL) - scrollRectToVisible:
 
(void) - setAlphaValue:
 
(void) - setAnimations:
 
(void) - setAppearance:
 
(void) - setAutoresizesSubviews:
 
(void) - setAutoresizingMask:
 
(void) - setBackgroundColor:
 
(void) - setBounds:
 
(void) - setBoundsOrigin:
 
(void) - setBoundsSize:
 
(void) - setCenter:
 
(void) - setClipsToBounds:
 
(void) - setFrame:
 
(void) - setFrameOrigin:
 
(void) - setFrameSize:
 
(void) - setHidden:
 
(void) - setHitTests:
 
(void) - setLayer:
 
(void) - setNeedsDisplay:
 
(void) - setNeedsDisplayInRect:
 
(void) - setNeedsLayout
 
(void) - setNeedsLayout:
 
(void) - setNextKeyView:
 
(void) - setPostsBoundsChangedNotifications:
 
(void) - setPostsFrameChangedNotifications:
 
(void) - setScaleSize:
 
(void) - setSubviews:
 
(void) - setTag:
 
(void) - setThemeClass:
 
(BOOL) - setThemeState:
 
(void) - setToolTip:
 
(void) - setValue:forThemeAttribute:
 
(void) - setValue:forThemeAttribute:inState:
 
(void) - setWantsLayer:
 
(CPArray) - subviews
 
(CPView- superview
 
(CPInteger) - tag
 
(void) - unlockFocus
 
(void) - unregisterDraggedTypes
 
(BOOL) - unsetThemeState:
 
(void) - updateTrackingAreas
 
(void) - viewDidEndLiveResize
 
(void) - viewDidHide
 
(void) - viewDidLayout
 
(void) - viewDidMoveToSuperview
 
(void) - viewDidMoveToWindow
 
(void) - viewDidUnhide
 
(void) - viewWillDraw
 
(void) - viewWillLayout
 
(void) - viewWillMoveToSuperview:
 
(void) - viewWillMoveToWindow:
 
(void) - viewWillStartLiveResize
 
(CPView- viewWithTag:
 
(CGRect) - visibleRect
 
(BOOL) - wantsLayer
 
(void) - willRemoveSubview:
 
(CPWindow- window
 

Class Methods

(Class) + animatorClass
 
(CAAnimation+ defaultAnimationForKey:
 
(CPMenu+ defaultMenu
 
(void) + initialize
 
(BOOL) + isHighDPIDrawingEnabled
 
(CPSet) + keyPathsForValuesAffectingBounds
 
(CPSet) + keyPathsForValuesAffectingFrame
 
(void) + setHighDPIDrawingEnabled:
 

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 136 of file CPView.j.

Method Documentation

◆ acceptsFirstMouse:()

- (BOOL) acceptsFirstMouse: (CPEvent anEvent
implementation

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

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

Reimplemented in CPTextField, CPControl, and CPTabView.

Definition at line 1805 of file CPView.j.

◆ addSubview:()

- (void) addSubview: (CPView aSubview
implementation

Makes the argument a subview of the receiver.

Parameters
aSubviewthe CPView to make a subview

Definition at line 512 of file CPView.j.

◆ addSubview:positioned:relativeTo:()

- (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
aSubviewthe view to add as a subview
anOrderingModespecifies aSubview's ordering relative to anotherView
anotherViewaSubview will be positioned relative to this argument

Definition at line 523 of file CPView.j.

◆ addTrackingArea:()

- (void) addTrackingArea: (CPTrackingArea trackingArea
implementation

Provided by category CPView(TrackingAreaAdditions).

Definition at line 3500 of file CPView.j.

◆ adjustScroll:()

- (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
proposedVisibleRectthe rectangle to alter
Returns
the same adjusted rectangle

Definition at line 2911 of file CPView.j.

◆ alphaValue()

- (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 1750 of file CPView.j.

◆ animationForKey:()

- (CAAnimation) animationForKey: (CPString aKey
implementation

Provided by category CPView(CPAnimatablePropertyContainer).

Definition at line 265 of file CPViewAnimator.j.

◆ animations()

- (CPDictionary) animations
implementation

Provided by category CPView(CPAnimatablePropertyContainer).

Definition at line 278 of file CPViewAnimator.j.

◆ animator()

- (id) animator
implementation

Provided by category CPView(CPAnimatablePropertyContainer).

Definition at line 242 of file CPViewAnimator.j.

◆ animatorClass()

+ (Class) animatorClass
implementation

Provided by category CPView(CPAnimatablePropertyContainer).

Definition at line 232 of file CPViewAnimator.j.

◆ autoresizesSubviews()

- (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 1478 of file CPView.j.

◆ autoresizingMask()

- (unsigned) autoresizingMask
implementation

Returns the bit mask options for resizing behavior

Definition at line 1495 of file CPView.j.

◆ autoscroll:()

- (BOOL) autoscroll: (CPEvent anEvent
implementation

Scrolls the view’s CPClipView in the direction of a mouse event that occurs outside of it.

Reimplemented in CPClipView.

Definition at line 2900 of file CPView.j.

◆ backgroundColor()

- (CPColor) backgroundColor
implementation

Returns the background color of the receiver

Reimplemented in CPTabView.

Definition at line 2196 of file CPView.j.

◆ becomeFirstResponder()

- (BOOL) becomeFirstResponder
implementation

Reimplemented in CPTextField, CPTextView, CPTokenField, and CPDatePicker.

Provided by category CPView(Theming).

Definition at line 3251 of file CPView.j.

◆ bounds()

- (CGRect) bounds
implementation

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

Definition at line 1302 of file CPView.j.

◆ boundsOrigin()

- (CGPoint) boundsOrigin
implementation

Definition at line 1307 of file CPView.j.

◆ boundsSize()

- (CGSize) boundsSize
implementation

Definition at line 1312 of file CPView.j.

◆ canBecomeKeyView()

- (BOOL) canBecomeKeyView
implementation

Provided by category CPView(KeyView).

Definition at line 3025 of file CPView.j.

◆ center()

- (CGPoint) center
implementation

Returns the center of the receiver's frame in the superview's coordinate system.

Returns
CGPoint the center point of the receiver's frame

Definition at line 1053 of file CPView.j.

◆ clipsToBounds()

- (BOOL) clipsToBounds
implementation

Definition at line 1714 of file CPView.j.

◆ convertPoint:fromView:()

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

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

Parameters
aPointthe point to convert
aViewthe view space to convert from
Returns
the converted point

Definition at line 2208 of file CPView.j.

◆ convertPoint:toView:()

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

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

Parameters
aPointthe point to convert
aViewthe coordinate space to which the point will be converted
Returns
the converted point

Definition at line 2232 of file CPView.j.

◆ convertPointFromBase:()

- (CGPoint) convertPointFromBase: (CGPoint)  aPoint
implementation

Converts the point from the base coordinate system to the receiver’s coordinate system.

Parameters
aPointA point specifying a location in the base coordinate system
Returns
The point converted to the receiver’s base coordinate system

Definition at line 2221 of file CPView.j.

◆ convertPointToBase:()

- (CGPoint) convertPointToBase: (CGPoint)  aPoint
implementation

Converts the point from the receiver’s coordinate system to the base coordinate system.

Parameters
aPointA point specifying a location in the coordinate system of the receiver
Returns
The point converted to the base coordinate system

Definition at line 2246 of file CPView.j.

◆ convertRect:fromView:()

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

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

Parameters
aRectthe rectangle to convert
aViewthe coordinate space from which to convert
Returns
the converted rectangle

Definition at line 2285 of file CPView.j.

◆ convertRect:toView:()

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

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

Parameters
aRectthe rectangle to convert
aViewthe coordinate space to which the rectangle will be converted
Returns
the converted rectangle

Definition at line 2309 of file CPView.j.

◆ convertRectFromBase:()

- (CGRect) convertRectFromBase: (CGRect)  aRect
implementation

Converts the rectangle from the base coordinate system to the receiver’s coordinate system.

Parameters
aRectA rectangle specifying a location in the base coordinate system
Returns
The rectangle converted to the receiver’s base coordinate system

Definition at line 2298 of file CPView.j.

◆ convertRectToBase:()

- (CGRect) convertRectToBase: (CGRect)  aRect
implementation

Converts the rectangle from the receiver’s coordinate system to the base coordinate system.

Parameters
aRectA rectangle specifying a location in the coordinate system of the receiver
Returns
The rectangle converted to the base coordinate system

Definition at line 2322 of file CPView.j.

◆ convertSize:fromView:()

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

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

Parameters
aSizethe size to convert
aViewthe coordinate space to convert from
Returns
the converted size

Definition at line 2257 of file CPView.j.

◆ convertSize:toView:()

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

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

Parameters
aSizethe size to convert
thecoordinate space to which the size will be converted
Returns
the converted size

Definition at line 2271 of file CPView.j.

◆ createEphemeralSubviewNamed:()

- (CPView) createEphemeralSubviewNamed: (CPString aViewName
implementation

◆ debug_description()

- (CPString) debug_description
implementation

Provided by category CPView(CPAnimatablePropertyContainer).

Definition at line 293 of file CPViewAnimator.j.

◆ defaultAnimationForKey:()

+ (CAAnimation) defaultAnimationForKey: (CPString aKey
implementation

Provided by category CPView(CPAnimatablePropertyContainer).

Definition at line 250 of file CPViewAnimator.j.

◆ defaultMenu()

+ (CPMenu) defaultMenu
implementation

Definition at line 295 of file CPView.j.

◆ didAddSubview:()

- (void) didAddSubview: (CPView aSubview
implementation

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

Parameters
aSubviewthe view that was added

Reimplemented in CPSplitView.

Definition at line 646 of file CPView.j.

◆ display()

- (void) display
implementation

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

Definition at line 2602 of file CPView.j.

◆ displayIfNeeded()

- (void) displayIfNeeded
implementation

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

Definition at line 2593 of file CPView.j.

◆ displayIfNeededInRect:()

- (void) displayIfNeededInRect: (CGRect)  aRect
implementation

Definition at line 2607 of file CPView.j.

◆ displayRect:()

- (void) displayRect: (CGRect)  aRect
implementation

Draws the receiver into the area defined by aRect.

Parameters
aRectthe area to be drawn

Definition at line 2617 of file CPView.j.

◆ displayRectIgnoringOpacity:inContext:()

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

Reimplemented in CPTextView.

Definition at line 2626 of file CPView.j.

◆ dragImage:at:offset:event:pasteboard:source:slideBack:()

- (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
anImagethe image to be dragged
aLocationthe lower-left corner coordinate of anImage
mouseOffsetthe distance from the -mouseDown: location and the current location
anEventthe -mouseDown: that triggered the drag
aPasteboardthe pasteboard that holds the drag data
aSourceObjectthe drag operation controller
slideBackWhether the image should 'slide back' if the drag is rejected

Definition at line 2399 of file CPView.j.

◆ dragView:at:offset:event:pasteboard:source:slideBack:()

- (void) dragView: (CPView aView
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
aViewthe view to be dragged
aLocationthe top-left corner coordinate of aView
mouseOffsetthe distance from the -mouseDown: location and the current location
anEventthe -mouseDown: that triggered the drag
aPasteboardthe pasteboard that holds the drag data
aSourceObjectthe drag operation controller
slideBackWhether the view should 'slide back' if the drag is rejected

Definition at line 2414 of file CPView.j.

◆ drawRect:()

- (void) drawRect: (CGRect)  aRect
implementation

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

Parameters
aRectthe area that should be drawn into

Reimplemented in CPDisclosureButton, CPTextView, CPScrollView, CPSplitView, CPProgressIndicator, and CPBox.

Definition at line 2464 of file CPView.j.

◆ effectiveAppearance()

- (CPAppearance) effectiveAppearance
implementation

Returns the receiver's appearance if any, or ask the superview and returns it.

Provided by category CPView(Appearance).

Definition at line 3419 of file CPView.j.

◆ enclosingMenuItem()

- (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 931 of file CPView.j.

◆ enclosingScrollView()

- (CPScrollView) enclosingScrollView
implementation

Returns the CPScrollView containing the receiver.

Returns
the CPScrollView containing the receiver.

Definition at line 2928 of file CPView.j.

◆ encodeWithCoder:()

- (void) encodeWithCoder: (CPCoder aCoder
implementation

◆ enterFullScreenMode()

- (BOOL) enterFullScreenMode
implementation

Puts the receiver into full screen mode.

Definition at line 1505 of file CPView.j.

◆ enterFullScreenMode:withOptions:()

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

Puts the receiver into full screen mode.

Parameters
aScreenthe that should be used
optionsconfiguration options

Definition at line 1515 of file CPView.j.

◆ ephemeralSubviewNamed:()

- (CPView) ephemeralSubviewNamed: (CPString aViewName
implementation

Provided by category CPView(Theming).

Definition at line 3404 of file CPView.j.

◆ exitFullScreenMode()

- (void) exitFullScreenMode
implementation

The receiver should exit full screen mode.

Definition at line 1544 of file CPView.j.

◆ exitFullScreenModeWithOptions:()

- (void) exitFullScreenModeWithOptions: (CPDictionary options
implementation

The receiver should exit full screen mode.

Parameters
optionsconfigurations options

Definition at line 1553 of file CPView.j.

◆ frame()

- (CGRect) frame
implementation

Returns the receiver's frame.

Returns
a copy of the receiver's frame

Definition at line 1022 of file CPView.j.

◆ frameOrigin()

- (CGPoint) frameOrigin
implementation

Definition at line 1027 of file CPView.j.

◆ frameRectOfView:inSuperviewSize:()

- (CGRect) frameRectOfView: (CPView aView
inSuperviewSize: (CGSize)  aSize 
implementation

Provided by category CPView(CPAnimationContext).

Definition at line 375 of file CPAnimationContext.j.

◆ frameSize()

- (CGSize) frameSize
implementation

Definition at line 1032 of file CPView.j.

◆ frameWithNewSuperviewSize:()

- (CGRect) frameWithNewSuperviewSize: (CGSize)  newSize
implementation

Provided by category CPView(CPAnimationContext).

Definition at line 380 of file CPAnimationContext.j.

◆ hasCustomDrawRect()

- (BOOL) hasCustomDrawRect
implementation

Provided by category CPView(CPAnimationContext).

Definition at line 414 of file CPAnimationContext.j.

◆ hasCustomLayoutSubviews()

- (BOOL) hasCustomLayoutSubviews
implementation

Provided by category CPView(CPAnimationContext).

Definition at line 419 of file CPAnimationContext.j.

◆ hitTest:()

- (CPView) hitTest: (CGPoint)  aPoint
implementation

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

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

Reimplemented in CPTableView, CPSplitView, CPLevelIndicator, and CPSearchField.

Definition at line 1833 of file CPView.j.

◆ hitTests()

- (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 1814 of file CPView.j.

◆ init()

- (id) init
implementation

Definition at line 325 of file CPView.j.

◆ initialize()

+ (void) initialize
implementation

Reimplemented in CPScrollView, CPControl, and CPImageView.

Definition at line 240 of file CPView.j.

◆ initWithCoder:()

- (id) initWithCoder: (CPCoder aCoder
implementation

◆ initWithFrame:()

◆ inLiveResize()

- (BOOL) inLiveResize
implementation

Return yes if the receiver is in a live-resize operation.

Definition at line 2961 of file CPView.j.

◆ isDescendantOf:()

- (BOOL) isDescendantOf: (CPView aView
implementation

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

Parameters
aViewthe view to test for ancestry

Definition at line 842 of file CPView.j.

◆ isFlipped()

- (BOOL) isFlipped
implementation

Returns whether the view is flipped.

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

Definition at line 984 of file CPView.j.

◆ isHidden()

- (BOOL) isHidden
implementation

Returns YES if the receiver is hidden.

Definition at line 1697 of file CPView.j.

◆ isHiddenOrHasHiddenAncestor()

- (BOOL) isHiddenOrHasHiddenAncestor
implementation

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

Definition at line 1759 of file CPView.j.

◆ isHighDPIDrawingEnabled()

+ (BOOL) isHighDPIDrawingEnabled
implementation

Returns whether high DPI drawing is enabled.

Returns
BOOL - YES if high DPI drawing is activated, otherwise NO.

Definition at line 280 of file CPView.j.

◆ isInFullScreenMode()

- (BOOL) isInFullScreenMode
implementation

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

Definition at line 1570 of file CPView.j.

◆ isOpaque()

- (BOOL) isOpaque
implementation

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

Reimplemented in CPSearchField.

Definition at line 2773 of file CPView.j.

◆ keyPathsForValuesAffectingBounds()

+ (CPSet) keyPathsForValuesAffectingBounds
implementation

Definition at line 290 of file CPView.j.

◆ keyPathsForValuesAffectingFrame()

+ (CPSet) keyPathsForValuesAffectingFrame
implementation

Definition at line 285 of file CPView.j.

◆ layer()

- (CALayer) layer
implementation

Returns the core animation layer used by the receiver.

Provided by category CPView(CoreAnimationAdditions).

Definition at line 3150 of file CPView.j.

◆ layout()

- (void) layout
implementation

Definition at line 2730 of file CPView.j.

◆ layoutEphemeralSubviewNamed:positioned:relativeToEphemeralSubviewNamed:()

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

Provided by category CPView(Theming).

Definition at line 3366 of file CPView.j.

◆ layoutIfNeeded()

- (void) layoutIfNeeded
implementation

Definition at line 2743 of file CPView.j.

◆ layoutSubviews()

◆ lockFocus()

- (void) lockFocus
implementation

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

Definition at line 2648 of file CPView.j.

◆ menuForEvent:()

- (CPMenu) menuForEvent: (CPEvent anEvent
implementation

Reimplemented in CPTableView, and CPCollectionView.

Definition at line 1914 of file CPView.j.

◆ mouseDown:()

◆ mouseDownCanMoveWindow()

- (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 1891 of file CPView.j.

◆ needsDisplay()

- (BOOL) needsDisplay
implementation

Definition at line 2585 of file CPView.j.

◆ needsLayout()

- (BOOL) needsLayout
implementation

Definition at line 2725 of file CPView.j.

◆ needsPanelToBecomeKey()

- (BOOL) needsPanelToBecomeKey
implementation

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

Reimplemented in CPTableView, CPTextField, and CPTextView.

Definition at line 1882 of file CPView.j.

◆ nextKeyView()

- (CPView) nextKeyView
implementation

Provided by category CPView(KeyView).

Definition at line 3030 of file CPView.j.

◆ nextValidKeyView()

- (CPView) nextValidKeyView
implementation

Provided by category CPView(KeyView).

Definition at line 3035 of file CPView.j.

◆ objectDidChangeTheme()

- (void) objectDidChangeTheme
implementation

Provided by category CPView(Theming).

Definition at line 3319 of file CPView.j.

◆ performKeyEquivalent:()

- (BOOL) performKeyEquivalent: (CPEvent anEvent
implementation

Overridden by subclasses to handle a key equivalent.

If the receiver’s key equivalent is the same as the characters of the key-down event theEvent, as returned by [anEvent charactersIgnoringModifiers], the receiver should take the appropriate action and return YES. Otherwise, it should return the result of invoking super’s implementation. The default implementation of this method simply passes the message down the view hierarchy (from superviews to subviews) and returns NO if none of the receiver’s subviews responds YES.

Parameters
anEventAn event object that represents the key equivalent pressed
Returns
YES if theEvent is a key equivalent that the receiver handled, NO if it is not a key equivalent that it should handle.

Reimplemented in CPButton, CPTokenField, and CPComboBox.

Provided by category CPView(KeyView).

Definition at line 3013 of file CPView.j.

◆ postsBoundsChangedNotifications()

- (BOOL) postsBoundsChangedNotifications
implementation

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

Definition at line 2384 of file CPView.j.

◆ postsFrameChangedNotifications()

- (BOOL) postsFrameChangedNotifications
implementation

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

Definition at line 2352 of file CPView.j.

◆ previousKeyView()

- (CPView) previousKeyView
implementation

Provided by category CPView(KeyView).

Definition at line 3056 of file CPView.j.

◆ previousValidKeyView()

- (CPView) previousValidKeyView
implementation

Provided by category CPView(KeyView).

Definition at line 3061 of file CPView.j.

◆ rectForEphemeralSubviewNamed:()

- (CGRect) rectForEphemeralSubviewNamed: (CPString aViewName
implementation

◆ reflectScrolledClipView:()

- (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
aClipViewthe clip view of the superview being notified

Reimplemented in CPScrollView.

Definition at line 2954 of file CPView.j.

◆ registeredDraggedTypes()

- (CPArray) registeredDraggedTypes
implementation

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

Returns
an array of CPPasteBoards

Definition at line 2441 of file CPView.j.

◆ registerForDraggedTypes:()

- (void) registerForDraggedTypes: (CPArray)  pasteboardTypes
implementation

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

Parameters
pasteboardTypesan array of CPPasteboards

Reimplemented in CPBrowser.

Definition at line 2423 of file CPView.j.

◆ removeAllTrackingAreas()

- (void) removeAllTrackingAreas
implementation

This utility method is intended for CPView subclasses overriding updateTrackingAreas

Typical use would be :

  • (void)updateTrackingAreas { [self removeAllTrackingAreas];

    ... add your specific updated tracking areas ... }

Provided by category CPView(TrackingAreaAdditions).

Definition at line 3564 of file CPView.j.

◆ removeFromSuperview()

- (void) removeFromSuperview
implementation

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

Definition at line 654 of file CPView.j.

◆ removeTrackingArea:()

- (void) removeTrackingArea: (CPTrackingArea trackingArea
implementation

Provided by category CPView(TrackingAreaAdditions).

Definition at line 3518 of file CPView.j.

◆ replaceSubview:with:()

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

Replaces the specified child view with another view

Parameters
aSubviewthe view to replace
aViewthe replacement view

Definition at line 696 of file CPView.j.

◆ resignFirstResponder()

- (BOOL) resignFirstResponder
implementation

Reimplemented in CPTextField, CPTextView, CPTokenField, CPComboBox, CPDatePicker, and CPSearchField.

Provided by category CPView(Theming).

Definition at line 3271 of file CPView.j.

◆ resizeSubviewsWithOldSize:()

- (void) resizeSubviewsWithOldSize: (CGSize)  aSize
implementation

Initiates -superviewSizeChanged: messages to subviews.

Parameters
aSizethe size for the subviews

Reimplemented in CPClipView, CPScrollView, CPCollectionView, and CPSplitView.

Definition at line 1454 of file CPView.j.

◆ resizeWithOldSuperviewSize:()

- (void) resizeWithOldSuperviewSize: (CGSize)  aSize
implementation

Notifies subviews that the superview changed size.

Parameters
aSizethe size of the old superview

Reimplemented in CPTableView, and CPCollectionView.

Definition at line 1415 of file CPView.j.

◆ rightMouseDown:()

- (void) rightMouseDown: (CPEvent anEvent
implementation

Reimplemented in CPTextField, and CPPopUpButton.

Definition at line 1902 of file CPView.j.

◆ scaleSize()

- (CGSize) scaleSize
implementation

Return the scaleSize of the view, this scaleSize is used to scale in css

Provided by category CPView(Scaling).

Definition at line 3202 of file CPView.j.

◆ scaleUnitSquareToSize:()

- (void) scaleUnitSquareToSize: (CGSize)  aSize
implementation

Scales the receiver’s coordinate system so that the unit square scales to the specified dimensions. The bounds of the receiver will change, for instance if the given size is (0.5, 0.5) the width and height of the bounds will be multiply by 2. You must call setNeedsDisplay: to redraw the view.

Parameters
aSize,thesize corresponding the new unit scales

Definition at line 2477 of file CPView.j.

◆ scrollClipView:toPoint:()

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

Scrolls the clip view to a specified point

Parameters
theclip view to scroll
thepoint to scroll to

Definition at line 2944 of file CPView.j.

◆ scrollPoint:()

- (void) scrollPoint: (CGPoint)  aPoint
implementation

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

Parameters
aPointthe proposed frame origin

Definition at line 2806 of file CPView.j.

◆ scrollRect:by:()

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

Should be overridden by subclasses.

Definition at line 2919 of file CPView.j.

◆ scrollRectToVisible:()

- (BOOL) scrollRectToVisible: (CGRect)  aRect
implementation

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

Parameters
aRectthe area to become visible
Returns
YES if any scrolling occurred, NO otherwise.

Definition at line 2821 of file CPView.j.

◆ setAlphaValue:()

- (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
anAlphaValuean alpha value ranging from 0.0 to 1.0.

Definition at line 1724 of file CPView.j.

◆ setAnimations:()

- (void) setAnimations: (CPDictionary animationsDict
implementation

Provided by category CPView(CPAnimatablePropertyContainer).

Definition at line 283 of file CPViewAnimator.j.

◆ setAppearance:()

- (void) setAppearance: (CPAppearance anAppearance
implementation

Reimplemented in CPVisualEffectView.

Provided by category CPView(Appearance).

Definition at line 3427 of file CPView.j.

◆ setAutoresizesSubviews:()

- (void) setAutoresizesSubviews: (BOOL)  aFlag
implementation

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

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

Definition at line 1469 of file CPView.j.

◆ setAutoresizingMask:()

- (void) setAutoresizingMask: (unsigned)  aMask
implementation

Determines automatic resizing behavior.

Parameters
aMaska bit mask with options

Reimplemented in CPCollectionView.

Definition at line 1487 of file CPView.j.

◆ setBackgroundColor:()

- (void) setBackgroundColor: (CPColor aColor
implementation

Sets the background color of the receiver.

Parameters
aColorthe new color for the receiver's background

Reimplemented in CPWebView, CPBrowser, CPTabView, and CPDatePicker.

Definition at line 1923 of file CPView.j.

◆ setBounds:()

- (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
boundsthe new bounds

Definition at line 1276 of file CPView.j.

◆ setBoundsOrigin:()

- (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
aPointthe new location for the receiver

Reimplemented in CPTableView, and CPClipView.

Definition at line 1323 of file CPView.j.

◆ setBoundsSize:()

- (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
aSizethe new size for the receiver

Reimplemented in CPTableView.

Definition at line 1372 of file CPView.j.

◆ setCenter:()

- (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
aPointthe new origin point

Definition at line 1044 of file CPView.j.

◆ setClipsToBounds:()

- (void) setClipsToBounds: (BOOL)  shouldClip
implementation

Definition at line 1702 of file CPView.j.

◆ setFrame:()

- (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 a 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 notification is posted).

Parameters
aFramethe rectangle specifying the new origin and size of the receiver

Reimplemented in CPStepper.

Definition at line 996 of file CPView.j.

◆ setFrameOrigin:()

- (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
aPointthe new origin point

Reimplemented in CPTableView.

Definition at line 1065 of file CPView.j.

◆ setFrameSize:()

- (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
aSizethe new size for the frame

Reimplemented in CPTableView, CPTextView, CPWebView, CPSplitView, CPScroller, CPAccordionView, CPProgressIndicator, CPSlider, and CPButtonBar.

Definition at line 1100 of file CPView.j.

◆ setHidden:()

- (void) setHidden: (BOOL)  aFlag
implementation

Sets whether the receiver should be hidden.

Parameters
aFlagYES makes the receiver hidden.

Definition at line 1579 of file CPView.j.

◆ setHighDPIDrawingEnabled:()

+ (void) setHighDPIDrawingEnabled: (BOOL)  isEnabled
implementation

Controls whether high DPI drawing is activated or not. Defaults to YES.

Parameters
isEnabledYES to enable high DPI drawing

Definition at line 271 of file CPView.j.

◆ setHitTests:()

- (void) setHitTests: (BOOL)  shouldHitTest
implementation

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

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

Definition at line 1823 of file CPView.j.

◆ setLayer:()

- (void) setLayer: (CALayer aLayer
implementation

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

Provided by category CPView(CoreAnimationAdditions).

Definition at line 3118 of file CPView.j.

◆ setNeedsDisplay:()

- (void) setNeedsDisplay: (BOOL)  aFlag
implementation

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

Reimplemented in CPTableView.

Definition at line 2556 of file CPView.j.

◆ setNeedsDisplayInRect:()

- (void) setNeedsDisplayInRect: (CGRect)  aRect
implementation

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

Parameters
aRectthe area that needs to be redrawn

Definition at line 2569 of file CPView.j.

◆ setNeedsLayout()

- (void) setNeedsLayout
implementation

Reimplemented in CPTableView.

Definition at line 2707 of file CPView.j.

◆ setNeedsLayout:()

- (void) setNeedsLayout: (BOOL)  needLayout
implementation

Definition at line 2712 of file CPView.j.

◆ setNextKeyView:()

- (void) setNextKeyView: (CPView next
implementation

Provided by category CPView(KeyView).

Definition at line 3094 of file CPView.j.

◆ setPostsBoundsChangedNotifications:()

- (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
shouldPostBoundsChangedNotificationsYES makes the receiver post notifications on bounds changes

Definition at line 2369 of file CPView.j.

◆ setPostsFrameChangedNotifications:()

- (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
shouldPostFrameChangedNotificationsYES makes the receiver post notifications on frame changes (size or origin)

Definition at line 2339 of file CPView.j.

◆ setScaleSize:()

- (void) setScaleSize: (CGSize)  aSize
implementation

Set the zoom of the view. This will call scaleUnitSquareToSize: and setNeedsDisplay: This method doesn't care about the last zoom you set in the view

Parameters
aSize,thesize corresponding the new unit scales

Provided by category CPView(Scaling).

Definition at line 3183 of file CPView.j.

◆ setSubviews:()

- (void) setSubviews: (CPArray)  newSubviews
implementation

Definition at line 708 of file CPView.j.

◆ setTag:()

- (void) setTag: (CPInteger)  aTag
implementation

Definition at line 951 of file CPView.j.

◆ setThemeClass:()

- (void) setThemeClass: (CPString theClass
implementation

Provided by category CPView(Theming).

Definition at line 3240 of file CPView.j.

◆ setThemeState:()

- (BOOL) setThemeState: (ThemeState aState
implementation

Reimplemented in CPTableCellView.

Provided by category CPView(Theming).

Definition at line 3214 of file CPView.j.

◆ setToolTip:()

- (void) setToolTip: (CPString aToolTip
implementation

Sets the tooltip for the receiver.

Parameters
aToolTipthe tooltip

Definition at line 399 of file CPView.j.

◆ setValue:forThemeAttribute:()

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

Provided by category CPView(Theming).

Definition at line 3343 of file CPView.j.

◆ setValue:forThemeAttribute:inState:()

- (void) setValue: (id)  aValue
forThemeAttribute: (CPString aName
inState: (ThemeState aState 
implementation

Provided by category CPView(Theming).

Definition at line 3330 of file CPView.j.

◆ setWantsLayer:()

- (void) setWantsLayer: (BOOL)  aFlag
implementation

Sets whether the receiver wants a core animation layer.

Parameters

Provided by category CPView(CoreAnimationAdditions).

Definition at line 3159 of file CPView.j.

◆ subviews()

- (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 495 of file CPView.j.

◆ superview()

- (CPView) superview
implementation

Returns the container view of the receiver

Returns
the receiver's containing view

Definition at line 486 of file CPView.j.

◆ tag()

- (CPInteger) tag
implementation

Definition at line 956 of file CPView.j.

◆ unlockFocus()

- (void) unlockFocus
implementation

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

Definition at line 2700 of file CPView.j.

◆ unregisterDraggedTypes()

- (void) unregisterDraggedTypes
implementation

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

Definition at line 2452 of file CPView.j.

◆ unsetThemeState:()

- (BOOL) unsetThemeState: (ThemeState aState
implementation

Reimplemented in CPTableCellView.

Provided by category CPView(Theming).

Definition at line 3227 of file CPView.j.

◆ updateTrackingAreas()

- (void) updateTrackingAreas
implementation

Invoked automatically when the view’s geometry changes such that its tracking areas need to be recalculated.

You should override this method to remove out of date tracking areas and add recomputed tracking areas;

Cocoa calls this on every view, whereas they have tracking area(s) or not. Cappuccino behaves differently :

  • updateTrackingAreas is called when placing a view in the view hierarchy (that is in a window)
  • if you have only CPTrackingInVisibleRect tracking areas attached to a view, it will not be called again (until you move the view in the hierarchy)
  • if you have at least one non-CPTrackingInVisibleRect tracking area attached, it will be called every time the view geometry could be modified You don't have to touch to CPTrackingInVisibleRect tracking areas, they will be automatically updated

Please note that it is the owner of a tracking area who is called for updateTrackingAreas. But, if a view without any tracking area is inserted in the view hierarchy (that is, in a window), the view is called for updateTrackingAreas. This enables you to use updateTrackingArea to initially attach your tracking areas to the view.

Reimplemented in CPTableHeaderView, CPTextField, CPSplitView, and CPControl.

Provided by category CPView(TrackingAreaAdditions).

Definition at line 3546 of file CPView.j.

◆ viewDidEndLiveResize()

- (void) viewDidEndLiveResize
implementation

Not implemented.

A view will be sent this message after a window finishes a resize operation. The receiver which simplified its drawing operations in viewWillStartLiveResize might stop doing so now. Note the view might no longer be in a window, so use [self setNeedsDisplay:YES] if a final non-simplified redraw is required.

Subclasses should call super.

Definition at line 2990 of file CPView.j.

◆ viewDidHide()

- (void) viewDidHide
implementation

Called when the return value of isHiddenOrHasHiddenAncestor becomes YES, e.g. when this view becomes hidden due to a setHidden:YES message to itself or to one of its superviews.

Note: in the current implementation, viewDidHide may be called multiple times if additional superviews are hidden, even if isHiddenOrHasHiddenAncestor was already YES.

Reimplemented in CPTextField.

Definition at line 1781 of file CPView.j.

◆ viewDidLayout()

- (void) viewDidLayout
implementation

Definition at line 2760 of file CPView.j.

◆ viewDidMoveToSuperview()

- (void) viewDidMoveToSuperview
implementation

Called when the receiver's superview has changed.

Definition at line 858 of file CPView.j.

◆ viewDidMoveToWindow()

- (void) viewDidMoveToWindow
implementation

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

Reimplemented in CPTableHeaderView, and CPSplitView.

Definition at line 867 of file CPView.j.

◆ viewDidUnhide()

- (void) viewDidUnhide
implementation

Called when the return value of isHiddenOrHasHiddenAncestor becomes NO, e.g. when this view stops being hidden due to a setHidden:NO message to itself or to one of its superviews.

Note: in the current implementation, viewDidUnhide may be called multiple times if additional superviews are unhidden, even if isHiddenOrHasHiddenAncestor was already NO.

Reimplemented in CPTextField, and CPWebView.

Definition at line 1795 of file CPView.j.

◆ viewWillDraw()

- (void) viewWillDraw
implementation

Reimplemented in CPSplitView.

Definition at line 2641 of file CPView.j.

◆ viewWillLayout()

- (void) viewWillLayout
implementation

Definition at line 2752 of file CPView.j.

◆ viewWillMoveToSuperview:()

- (void) viewWillMoveToSuperview: (CPView aView
implementation

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

Parameters
aViewthe view to which the receiver will be moved

Reimplemented in CPTableView, and CPTextView.

Definition at line 875 of file CPView.j.

◆ viewWillMoveToWindow:()

- (void) viewWillMoveToWindow: (CPWindow aWindow
implementation

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

Parameters
aWindowthe window to which the receiver will be moved.

Reimplemented in CPTableView, and CPButton.

Definition at line 889 of file CPView.j.

◆ viewWillStartLiveResize()

- (void) viewWillStartLiveResize
implementation

Not implemented.

A view will be sent this message before a window begins a resize operation. The receiver might choose to simplify its drawing operations during a live resize for speed.

Subclasses should call super.

Definition at line 2975 of file CPView.j.

◆ viewWithTag:()

- (CPView) viewWithTag: (CPInteger)  aTag
implementation

Definition at line 961 of file CPView.j.

◆ visibleRect()

- (CGRect) visibleRect
implementation

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

Definition at line 2781 of file CPView.j.

◆ wantsLayer()

- (BOOL) wantsLayer
implementation

Returns YES if the receiver uses a CALayer

Returns
YES if the receiver uses a CALayer

Provided by category CPView(CoreAnimationAdditions).

Definition at line 3168 of file CPView.j.

◆ willRemoveSubview:()

- (void) willRemoveSubview: (CPView aView
implementation

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

Parameters
aViewthe view that will be removed

Reimplemented in CPSplitView.

Definition at line 897 of file CPView.j.

◆ window()

- (CPWindow) window
implementation

Returns the window containing this receiver

Definition at line 503 of file CPView.j.


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