setPosition method

GDisplayObject setPosition(
  1. double x,
  2. double y
)

Sets the x and y transformation of the DisplayObject and returns it.

Implementation

GDisplayObject setPosition(double x, double y) {
  _x = x;
  _y = y;
  $setTransformationChanged();
  return this;
}