Instance Method
transform(_:checkForSelection:doComponent:) transform:checkForSelection:doComponent: transform_checkForSelection_doComponent_
Applies an affine transform to editable layer content and conditionally transforms components.
Declaration
func transform(_ transform: AffineTransform, checkForSelection: Bool, doComponent componentCallback: ((GSComponent?) -> Bool)? = nil)Declaration
- (void) transform:(NSAffineTransform *) transform checkForSelection:(BOOL) checkForSelection doComponent:(BOOL (^)(GSComponent *component)) componentCallback;Declaration
transform_checkForSelection_doComponent_(transform: NSAffineTransform, checkForSelection: bool, component: GSComponent, componentCallback)Parameters
checkForSelectionWhether to restrict the operation to selected elements when the selection is not empty.
componentCallbackA block that returns whether a component or component hint should be transformed.
See Also
General Transformations
Applies an affine transform to the selected elements.
Applies an affine transform to editable layer content.
Applies an affine transform to editable layer content.
Applies an affine transform to the complete layer without normal edit bookkeeping.
Applies an affine transform to the complete layer and conditionally transforms components without normal edit bookkeeping.