setTextInputPosition method

void setTextInputPosition(
  1. Point<double> pos
)

Implementation

void setTextInputPosition(Point<double> pos) {
  var rectPointer = calloc<SdlRect>()
    ..ref.x = pos.x.toInt()
    ..ref.y = pos.y.toInt();
  sdlSetTextInputRect(rectPointer);
  rectPointer.callocFree();
}