sourceFrame property

CGRect get sourceFrame

sourceFrame

Implementation

NSRect get sourceFrame {
  objc.checkOsVersionInternal(
    'NSItemProvider.sourceFrame',
    iOS: (true, null),
    macOS: (false, (10, 10, 0)),
  );
  final _ptr = pkg_ffi.calloc<NSRect>();
  objc.useMsgSendVariants
      ? _objc_msgSend_bu1hbwStret(_ptr, this.ref.pointer, _sel_sourceFrame)
      : _ptr.ref = _objc_msgSend_bu1hbw(this.ref.pointer, _sel_sourceFrame);
  final _finalizable = _ptr.cast<ffi.Uint8>().asTypedList(
    ffi.sizeOf<NSRect>(),
    finalizer: pkg_ffi.calloc.nativeFree,
  );
  return ffi.Struct.create<NSRect>(_finalizable);
}