Declaration

func setPosition(_ position: NSPoint, forLayerWidth width: CGFloat)

Declaration

- (void) setPosition:(NSPoint) position forLayerWidth:(CGFloat) width;

Declaration

setPosition_forLayerWidth_(position: NSPoint, width: float)

Parameters

width

The 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