callRepaint method

bool callRepaint({
  1. int? hdc,
})

Calls repaint resolving necessary parameters.

Implementation

bool callRepaint({int? hdc}) {
  ensureLoaded();

  final hwnd = this.hwnd;

  if (defaultRepaint) {
    return false;
  }

  if (hdc == null) {
    final ps = calloc<PAINTSTRUCT>();
    final hdc = BeginPaint(hwnd, ps);

    _callRepaintImpl(hwnd, hdc);
    EndPaint(hwnd, ps);
  } else {
    _callRepaintImpl(hwnd, hdc);
  }

  return true;
}