Instance Method
setPosition(_:forLayerWidth:) setPosition:forLayerWidth: setPosition_forLayerWidth_
Sets the position in layer coordinates for a layer width.
Declaration
func setPosition(_ position: NSPoint, forLayerWidth width: CGFloat)Declaration
- (void) setPosition:(NSPoint) position forLayerWidth:(CGFloat) width;Declaration
setPosition_forLayerWidth_(position: NSPoint, width: float)Parameters
widthThe layer width used for orientation adjustment.
Discussion
When the element belongs to a layer, setting the position registers undo, aligns it to the layer grid, and notifies its parent.
See Also
Position
The position in layer coordinates.
The position in layer coordinates for a layer width.
The position without orientation adjustment.
Sets the position without registering undo or notifying the parent.
Sets the unrounded position and rounds the position to a grid without registering undo or notifying the parent.
The unrounded position in layer coordinates.
The unrounded position in layer coordinates for a layer width.
The unrounded position without orientation adjustment.
Rounds the position to a grid.
Rounds the position to a grid without registering undo or notifying the parent.
The orientation of the element position.