Instance Method
replaceShape(at:with:) replaceShapeAtIndex:withShape: replaceShapeAtIndex_withShape_
Replaces the shape at the given linear shape index.
Declaration
func replaceShape(
at idx: UInt,
with shape: GSShape
)Declaration
- (void) replaceShapeAtIndex:(NSUInteger) idx
withShape:(GSShape *) shape;Declaration
replaceShapeAtIndex_withShape_(
idx: int,
shape: GSShape
)Discussion
The new shape receives this layer as its parent and the old shape is detached.
See Also
Removing and Replacing Shapes
Removes a shape from the layer.
Removes shapes from the layer.
Removes the shapes at the given linear shape indexes.
Removes the shape at the given linear shape index.