Go to the source code of this file.
|
void | addSublayer: (CALayer aLayer) |
|
CGAffineTransform | affineTransform () |
|
CGPoint | anchorPoint () |
|
CPColor | backgroundColor () |
|
CGRect | backingStoreFrame () |
|
CGRect | bounds () |
|
id | CALayer: (id CPObject) |
|
void | composite () |
|
BOOL | containsPoint: (CGPoint aPoint) |
|
CGImage | contents () |
|
CGPoint | convertPoint:fromLayer: (CGPoint aPoint,[fromLayer] CALayer aLayer) |
|
CGPoint | convertPoint:toLayer: (CGPoint aPoint,[toLayer] CALayer aLayer) |
|
CGRect | convertRect:fromLayer: (CGRect aRect,[fromLayer] CALayer aLayer) |
|
CGRect | convertRect:toLayer: (CGRect aRect,[toLayer] CALayer aLayer) |
|
id | delegate () |
|
void | display () |
|
void | drawInContext: (CGContext aContext) |
|
id | drawInContext:displayLayer: (void delegate,[displayLayer] CALayer layer) |
|
void | drawLayer:inContext: (CALayer layer,[inContext] CGContextRef ctx) |
|
CGRect | frame () |
|
BOOL | hidden () |
|
CALayer | hitTest: (CGPoint aPoint) |
|
id | init () |
|
void | insertSublayer:above: (CALayer aLayer,[above] CALayer aSublayer) |
|
void | insertSublayer:atIndex: (CALayer aLayer,[atIndex] CPUInteger anIndex) |
|
void | insertSublayer:below: (CALayer aLayer,[below] CALayer aSublayer) |
|
BOOL | isHidden () |
|
CALayer | layer () |
|
BOOL | needsDisplayOnBoundsChange () |
|
float | opacity () |
|
CGPoint | position () |
|
void | registerRunLoopUpdateWithMask: (unsigned anUpdateMask) |
|
void | removeFromSuperlayer () |
|
void | replaceSublayer:with: (CALayer aSublayer,[with] CALayer aLayer) |
|
void | runLoopUpdateLayers () |
|
void | setAffineTransform: (CGAffineTransform anAffineTransform) |
|
void | setAnchorPoint: (CGPoint anAnchorPoint) |
|
void | setBackgroundColor: (CPColor aColor) |
|
void | setBackingStoreFrame: (CGRect aFrame) |
|
void | setBounds: (CGRect aBounds) |
|
void | setContents: (CGImage contents) |
|
void | setDelegate: (id aDelegate) |
|
void | setFrame: (CGRect aFrame) |
|
void | setHidden: (BOOL isHidden) |
|
void | setMasksToBounds: (BOOL masksToBounds) |
|
void | setNeedsComposite () |
|
void | setNeedsDisplay () |
|
void | setNeedsDisplayInRect: (CGRect aRect) |
|
void | setNeedsDisplayOnBoundsChange: (BOOL needsDisplayOnBoundsChange) |
|
void | setOpacity: (float anOpacity) |
|
void | setPosition: (CGPoint aPosition) |
|
void | setSublayerTransform: (CGAffineTransform anAffineTransform) |
|
void | setZPosition: (int aZPosition) |
|
CPArray | sublayers () |
|
CGAffineTransform | sublayerTransform () |
|
CALayer | superlayer () |
|
CGAffineTransform | transformToLayer () |
|
#define ADJUST_CONTENTS_ZINDEX |
( |
|
aLayer) | |
|
Value:if (_DOMContentsElement && aLayer._zPosition > _DOMContentsElement.style.zIndex)\
_DOMContentsElement.style.zIndex -= 100.0;\
Definition at line 652 of file CALayer.j.
#define DOM |
( |
|
aLayer) | |
aLayer._DOMElement |
void addSublayer: |
( |
CALayer |
aLayer) | |
|
|
virtual |
Adds the specified layer as a sublayer of the receiver.
Definition at line 659 of file CALayer.j.
CGAffineTransform affineTransform |
( |
) | |
|
|
virtual |
Returns the layer's affine transform.
Definition at line 294 of file CALayer.j.
Returns the layer's anchor point.
Definition at line 272 of file CALayer.j.
Returns the layer's background color.
Definition at line 630 of file CALayer.j.
CGRect backingStoreFrame |
( |
) | |
|
|
virtual |
The Backing Store Frame specifies the frame of the actual backing store used to contain this layer. Naturally, by default it is the same as the frame, however, users can specify their own custom Backing Store Frame in order to speed up certain operations, such as live transformation.
- Returns
- the backing store frame
Definition at line 375 of file CALayer.j.
Returns the layer's bound.
Definition at line 204 of file CALayer.j.
id CALayer: |
( |
id |
CPObject) | |
|
|
virtual |
BOOL containsPoint: |
( |
CGPoint |
aPoint) | |
|
|
virtual |
Returns YES
if the layer contains the point.
- Parameters
-
Definition at line 914 of file CALayer.j.
Returns the CGImage contents of this layer. The default contents are nil
.
Definition at line 420 of file CALayer.j.
CGPoint convertPoint:fromLayer: |
( |
CGPoint |
aPoint, |
|
|
[fromLayer] CALayer |
aLayer |
|
) |
| |
|
virtual |
Converts the point from the specified layer's coordinate system into the receiver's coordinate system.
- Parameters
-
aPoint | the point to convert |
aLayer | the layer coordinate system to convert from |
- Returns
- the converted point
Definition at line 871 of file CALayer.j.
CGPoint convertPoint:toLayer: |
( |
CGPoint |
aPoint, |
|
|
[toLayer] CALayer |
aLayer |
|
) |
| |
|
virtual |
Converts the point from the receiver's coordinate system to the specified layer's coordinate system.
- Parameters
-
aPoint | the point to convert |
aLayer | the layer coordinate system to convert to |
- Returns
- the converted point
Definition at line 882 of file CALayer.j.
CGRect convertRect:fromLayer: |
( |
CGRect |
aRect, |
|
|
[fromLayer] CALayer |
aLayer |
|
) |
| |
|
virtual |
Converts the rectangle from the specified layer's coordinate system to the receiver's coordinate system.
- Parameters
-
aRect | the rectangle to convert |
aLayer | the layer coordinate system to convert from |
- Returns
- the converted rectangle
Definition at line 893 of file CALayer.j.
CGRect convertRect:toLayer: |
( |
CGRect |
aRect, |
|
|
[toLayer] CALayer |
aLayer |
|
) |
| |
|
virtual |
Converts the rectangle from the receiver's coordinate system to the specified layer's coordinate system.
- Parameters
-
aRect | the rectangle to convert |
aLayer | the layer coordinate system to convert to |
- Returns
- the converted rectangle
Definition at line 904 of file CALayer.j.
Returns the layer's delegate
Definition at line 967 of file CALayer.j.
Displays the contents of this layer.
Definition at line 489 of file CALayer.j.
void drawInContext: |
( |
CGContext |
aContext) | |
|
|
virtual |
Draws this layer's contents into the specified context.
- Parameters
-
aContext | the context to draw the layer into |
Definition at line 539 of file CALayer.j.
id drawInContext:displayLayer: |
( |
void |
delegate, |
|
|
[displayLayer] CALayer |
layer |
|
) |
| |
|
virtual |
void drawLayer:inContext: |
( |
CALayer |
layer, |
|
|
[inContext] CGContextRef |
ctx |
|
) |
| |
|
virtual |
Returns the layer's frame.
The frame defines the bounding box of the layer: the smallest possible rectangle that could fit this layer after transform properties are applied in superlayer coordinates.
Definition at line 359 of file CALayer.j.
Returns YES
if the layer is hidden.
Definition at line 590 of file CALayer.j.
Returns the farthest descendant of this layer that contains the specified point.
- Parameters
-
- Returns
- the containing layer or
nil
if there was no hit.
Definition at line 924 of file CALayer.j.
Initializes the animation layer.
Definition at line 127 of file CALayer.j.
void insertSublayer:above: |
( |
CALayer |
aLayer, |
|
|
[above] CALayer |
aSublayer |
|
) |
| |
|
virtual |
Inserts a layer above another layer.
- Parameters
-
aLayer | the layer to insert |
aSublayer | the layer to insert above |
- Exceptions
-
CALayerNotFoundException | if aSublayer is not in the array of sublayers |
Definition at line 744 of file CALayer.j.
void insertSublayer:atIndex: |
( |
CALayer |
aLayer, |
|
|
[atIndex] CPUInteger |
anIndex |
|
) |
| |
|
virtual |
Inserts the specified layer as a sublayer into the specified index.
- Parameters
-
aLayer | the layer to insert |
anIndex | the index to insert the layer at |
Definition at line 686 of file CALayer.j.
void insertSublayer:below: |
( |
CALayer |
aLayer, |
|
|
[below] CALayer |
aSublayer |
|
) |
| |
|
virtual |
Inserts a layer below another layer.
- Parameters
-
aLayer | the layer to insert |
aSublayer | the layer to insert below |
- Exceptions
-
CALayerNotFoundException | if aSublayer is not in the array of sublayers |
Definition at line 731 of file CALayer.j.
Returns YES
if the layer is hidden.
Definition at line 598 of file CALayer.j.
Returns a new animation layer.
Definition at line 119 of file CALayer.j.
BOOL needsDisplayOnBoundsChange |
( |
) | |
|
|
virtual |
Returns YES
if the display should be redrawn on a bounds change.
Definition at line 849 of file CALayer.j.
Returns the opacity of the layer. The value is between 0.0
(transparent) and 1.0
(opaque).
Definition at line 557 of file CALayer.j.
Returns the layer's position
Definition at line 226 of file CALayer.j.
void registerRunLoopUpdateWithMask: |
( |
unsigned |
anUpdateMask) | |
|
|
virtual |
void removeFromSuperlayer |
( |
) | |
|
|
virtual |
Removes the receiver from its superlayer.
Definition at line 667 of file CALayer.j.
void replaceSublayer:with: |
( |
CALayer |
aSublayer, |
|
|
[with] CALayer |
aLayer |
|
) |
| |
|
virtual |
Replaces a sublayer.
- Parameters
-
aSublayer | the layer to insert |
aLayer | the layer to replace |
Definition at line 759 of file CALayer.j.
void runLoopUpdateLayers |
( |
) | |
|
|
staticvirtual |
void setAffineTransform: |
( |
CGAffineTransform |
anAffineTransform) | |
|
|
virtual |
Sets the affine transform applied to this layer.
- Parameters
-
anAffineTransform | the new affine transform |
Definition at line 281 of file CALayer.j.
void setAnchorPoint: |
( |
CGPoint |
anAnchorPoint) | |
|
|
virtual |
Sets the layer's anchor point. The default point is [0.5, 0.5].
- Parameters
-
anAnchorPoint | the layer's new anchor point |
Definition at line 249 of file CALayer.j.
void setBackgroundColor: |
( |
CPColor |
aColor) | |
|
|
virtual |
Sets the layer's background color.
- Parameters
-
aColor | the new background color |
Definition at line 620 of file CALayer.j.
void setBackingStoreFrame: |
( |
CGRect |
aFrame) | |
|
|
virtual |
Sets the frame's backing store.
- Parameters
-
aFrame | the new backing store. |
Definition at line 384 of file CALayer.j.
void setBounds: |
( |
CGRect |
aBounds) | |
|
|
virtual |
Sets the bounds (origin and size) of the rectangle.
- Parameters
-
aBounds | the new bounds for the layer |
Definition at line 176 of file CALayer.j.
void setContents: |
( |
CGImage |
contents) | |
|
|
virtual |
Sets the image contents of this layer.
- Parameters
-
contents | the image to display |
Definition at line 429 of file CALayer.j.
void setDelegate: |
( |
id |
aDelegate) | |
|
|
virtual |
Sets the delegate for this layer.
- Parameters
-
Definition at line 950 of file CALayer.j.
void setFrame: |
( |
CGRect |
aFrame) | |
|
|
virtual |
Sets the frame of the layer. The frame defines a bounding rectangle in the superlayer's coordinate system.
- Parameters
-
aFrame | the new frame rectangle |
Definition at line 347 of file CALayer.j.
void setHidden: |
( |
BOOL |
isHidden) | |
|
|
virtual |
Sets whether the layer is hidden.
- Parameters
-
isHidden | YES means the layer will be hidden. NO means the layer will be visible. |
Definition at line 581 of file CALayer.j.
void setMasksToBounds: |
( |
BOOL |
masksToBounds) | |
|
|
virtual |
Sets whether content that goes lies outside the bounds is hidden or visible.
- Parameters
-
masksToBounds | YES hides the excess content. NO makes it visible. |
Definition at line 607 of file CALayer.j.
void setNeedsComposite |
( |
) | |
|
|
virtual |
Marks the layer as needing to be redrawn.
Definition at line 832 of file CALayer.j.
void setNeedsDisplayInRect: |
( |
CGRect |
aRect) | |
|
|
virtual |
Marks the specified rectangle as needing to be redrawn.
- Parameters
-
aRect | the area that needs to be redrawn. |
Definition at line 858 of file CALayer.j.
void setNeedsDisplayOnBoundsChange: |
( |
BOOL |
needsDisplayOnBoundsChange) | |
|
|
virtual |
Sets whether the layer needs to be redrawn when its bounds are changed.
- Parameters
-
needsDisplayOnBoundsChange | YES means the display is redraw on a bounds change. |
Definition at line 841 of file CALayer.j.
void setOpacity: |
( |
float |
anOpacity) | |
|
|
virtual |
Sets the opacity for the layer.
- Parameters
-
anOpacity | the new opacity (between 0.0 (transparent) and 1.0 (opaque)). |
Definition at line 566 of file CALayer.j.
void setPosition: |
( |
CGPoint |
aPosition) | |
|
|
virtual |
Sets the layer's position.
- Parameters
-
aPosition | the layer's new position |
Definition at line 213 of file CALayer.j.
void setSublayerTransform: |
( |
CGAffineTransform |
anAffineTransform) | |
|
|
virtual |
Sets the affine transform that gets applied to all the sublayers.
- Parameters
-
anAffineTransform | the transform to apply to sublayers |
Definition at line 303 of file CALayer.j.
void setZPosition: |
( |
int |
aZPosition) | |
|
|
virtual |
Sets the layer's z-ordering.
- Parameters
-
aZPosition | the layer's new z-ordering |
Definition at line 235 of file CALayer.j.
Returns an array of the receiver's sublayers.
Definition at line 639 of file CALayer.j.
CGAffineTransform sublayerTransform |
( |
) | |
|
|
virtual |
Returns the affine transform applied to the sublayers.
Definition at line 328 of file CALayer.j.
Returns the receiver's superlayer.
Definition at line 647 of file CALayer.j.
CGAffineTransform transformToLayer |
( |
) | |
|
|
virtual |
var CALayerCompositeUpdateMask = 16 |
var CALayerDisplayUpdateMask = 8 |
var CALayerFrameOriginUpdateMask = 1 |
var CALayerFrameSizeUpdateMask = 2 |
var CALayerGeometryAffineTransformMask = 8 |
var CALayerGeometryAnchorPointMask = 4 |
var CALayerGeometryBoundsMask = 1 |
var CALayerGeometryParentSublayerTransformMask = 16 |
var CALayerGeometryPositionMask = 2 |
var CALayerRegisteredRunLoopUpdates = nil |
var CALayerZPositionUpdateMask = 4 |