center property

Vector2 center

The position of the center of the component's bounding rectangle in the parent's coordinates.

Implementation

Vector2 get center => positionOfAnchor(Anchor.center);
void center=(Vector2 point)

Implementation

set center(Vector2 point) {
  position += point - center;
}