qc.Node.setAnchor

Prototype

Parameters

Parameter Type Description
min qc.Point Set up minAnchor. if undefined, minAnchor is no change.
max qc.Point Set up maxAnchor. if undefined, maxAnchor is no change.
keepRect bool Default true. Keep the current position and size unchanged.

Description

Set the distance of this rectangle relative to a specified edge of the parent rectangle, while also setting its size.