drawText method

void drawText(
  1. int hdc,
  2. String text,
  3. int x,
  4. int y,
)

Paint operation: draws text at coordinates x, y.

Implementation

void drawText(int hdc, String text, int x, int y) {
  final s = text.toNativeUtf16();
  TextOut(hdc, x, y, s, text.length);
  free(s);
}