DwmRenderGesture function dwmapi

void DwmRenderGesture(
  1. GESTURE_TYPE gt,
  2. int cContacts,
  3. Pointer<Uint32> pdwPointerID,
  4. Pointer<POINT> pPoints,
)

Notifies Desktop Window Manager (DWM) that a touch contact has been recognized as a gesture, and that DWM should draw feedback for that gesture.

Throws a WindowsException on failure.

To learn more, see learn.microsoft.com/windows/win32/api/dwmapi/nf-dwmapi-dwmrendergesture.

Implementation

@pragma('vm:prefer-inline')
void DwmRenderGesture(
  GESTURE_TYPE gt,
  int cContacts,
  Pointer<Uint32> pdwPointerID,
  Pointer<POINT> pPoints,
) {
  final hr$ = HRESULT(_DwmRenderGesture(gt, cContacts, pdwPointerID, pPoints));
  if (hr$.isError) throw WindowsException(hr$);
}