showWithPlacement method

void showWithPlacement(
  1. Rect selection,
  2. Placement placement
)

Implementation

void showWithPlacement(Rect selection, Placement placement) {
  final hr = ptr.ref.vtable
          .elementAt(16)
          .cast<
              Pointer<
                  NativeFunction<
                      HRESULT Function(
                          Pointer, Rect selection, Int32 placement)>>>()
          .value
          .asFunction<int Function(Pointer, Rect selection, int placement)>()(
      ptr.ref.lpVtbl, selection, placement.value);

  if (FAILED(hr)) throw WindowsException(hr);
}