[View] [Edit] [Lock] [References] [Attachments] [History] [Home] [Changes] [Search] [Help]
api[apple,QuartzCore] methods
See also
! CALayer class methodsFor: #instantiation !
layer
" Returns an instance of the receiver (or nil). "
^self @ self nativeClass layer! !
CALayer buildTypedGetters: #(
#(presentationLayer #CALayer)
#(modelLayer #CALayer)
)!
CALayer buildTypedAccessors: #(
#(delegate #NSObject)
#(contents #NSObject)
#(contentsRect #CGRect)
#(contentsCenter #CGRect)
#(mask #CALayer)
#(borderColor #CGColorRef)
#(backgroundColor #CGColorRef)
#(shadowOffset #CGSize)
#(shadowColor #CGColorRef)
#(shadowPath #CGPathRef)
#(compositingFilter #CIFilter)
#(frame #CGRect)
#(bounds #CGRect)
#(position #CGPoint)
#(anchorPoint #CGPoint)
#(transform #CATransform3D)
#(sublayerTransform #CATransform3D)
#(affineTransform #CGAffineTransform)
#(superlayer #CALayer)
#(preferredFrameSize #CGSize)
#(visibleRect #CGRect)
)!
CALayer buildFunctions: #(
#display
#(#drawInContext: #(#(ctx handle)))
#(#renderInContext: #(#(ctx handle)))
#(#addSublayer: #(#(aCALayer handle)))
removeFromSuperlayer
#(#insertSublayer:atIndex: #(#(aCALayer handle) index))
#(#insertSublayer:below: #(#(aCALayer handle) #(sublayer handle)))
#(#insertSublayer:above: #(#(aCALayer handle) #(sublayer handle)))
#(#replaceSublayer:with: #(#(oldLayer handle) #(newLayer handle)))
setNeedsDisplay
#(#setNeedsDisplayInRect: #(#(aCGRect handle)))
displayIfNeeded
#(#needsDisplayForKey: #(key) #Boolean)
#(#addAnimation:forKey: #(#(aCAAnimation handle) key))
#(#animationForKey: #(key) #CAAnimation)
removeAllAnimations
#(#removeAnimationForKey: #(key))
animationKeys
setNeedsLayout layoutSublayers
layoutIfNeeded
#(#actionForKey: #(key) #NSObject)
#(#convertPoint:fromLayer: #(#(aPoint handle) #(aLayer handle)) #CGPoint)
#(#convertPoint:toLayer: #(#(aPoint handle) #(aLayer handle)) #CGPoint)
#(#convertRect:fromLayer: #(#(aRect handle) #(aLayer handle)) #CGRect)
#(#convertRect:toLayer: #(#(aRect handle) #(aLayer handle)) #CGRect)
#(#convertTime:fromLayer: #(time #(aLayer handle)))
#(#convertTime:toLayer: #(time #(aLayer handle)))
#(#hitTest: #(#(aCGPoint handle)) #CALayer)
#(#containsPoint: #(#(aCGPoint handle)) #Boolean)
#(#scrollPoint: #(#(aCGPoint handle)))
#(#scrollRectToVisible: #(#(aCGRect handle)))
#(#shouldArchiveValueForKey: #(key) #Boolean)
)!
CALayer buildAccessors: #(
contentsGravity
style
minificationFilter
magnificationFilter
actions
name
)!
CALayer buildNumberAccessors: #(
opacity
cornerRadius
borderWidth
shadowOpacity shadowRadius
minificationFilterBias
edgeAntialiasingMask
rasterizationScale
zPosition anchorPointZ
contentsScale
)!
CALayer buildIsBooleanAccessors: #(
hidden
masksToBounds
doubleSided
)!
CALayer buildBooleanAccessors: #(
allowsEdgeAntialiasing
allowsGroupOpacity
opaque
contentsAreFlipped
geometryFlipped
drawsAsynchronously
shouldRasterize
needsDisplayOnBoundsChange
needsDisplay
)!
CALayer buildBooleanGetters: #(
needsLayout
)!
! CALayer methodsFor: #accessing !
filters
" Returns an array of Core Image filters to apply to the contents of the layer and its sublayers. "
^(NSArray @ self handle filters) asArray collect: [:each| CIFilter @ each ]! !
! CALayer methodsFor: #accessing !
filters: array
" Set an array of Core Image filters to apply to the contents of the layer and its sublayers. "
handle#filters := array handles! !
! CALayer methodsFor: #accessing !
backgroundFilters
" Returns an array of Core Image filters to apply to the content immediately behind the layer. "
^(NSArray @ self handle backgroundFilters) asArray collect: [:each| CIFilter @ each ]! !
! CALayer methodsFor: #accessing !
backgroundFilters: array
" Set an array of Core Image filters to apply to the content immediately behind the layer. "
handle#backgroundFilters := array handles! !
! CALayer methodsFor: #accessing !
boundingBox
" Return the boundingBox (aRectangle) of the receiver. "
^self bounds asRectangle! !
! CALayer methodsFor: #accessing !
boundingBox: aRectangle
" Set the boundingBox (aRectangle) of the receiver. "
self bounds: CGRect @ aRectangle! !
! CALayer methodsFor: #accessing !
sublayers
^(NSArray @ self handle sublayers) asArray collect: [:each| CALayer @ each ]! !
! CALayer methodsFor: #accessing !
sublayers: array
handle#sublayers := array handles! !