getRect method
Implementation
Rect getRect() {
final value = calloc<NativeRect>();
try {
final hr = ptr.ref.vtable
.elementAt(25)
.cast<
Pointer<
NativeFunction<
HRESULT Function(
VTablePointer lpVtbl, Pointer<NativeRect> value)>>>()
.value
.asFunction<
int Function(VTablePointer lpVtbl,
Pointer<NativeRect> value)>()(ptr.ref.lpVtbl, value);
if (FAILED(hr)) throwWindowsException(hr);
return value.toDart();
} finally {
free(value);
}
}