contentRectForFrameRect$1 method

CGRect contentRectForFrameRect$1(
  1. NSRect frameRect
)

contentRectForFrameRect:

Implementation

NSRect contentRectForFrameRect$1(NSRect frameRect) {
  objc.checkOsVersionInternal(
    'NSWindow.contentRectForFrameRect:',
    iOS: (true, null),
  );
  final _ptr = pkg_ffi.calloc<NSRect>();
  objc.useMsgSendVariants
      ? _objc_msgSend_1gn1s3dStret(
          _ptr,
          this.ref.pointer,
          _sel_contentRectForFrameRect_,
          frameRect,
        )
      : _ptr.ref = _objc_msgSend_1gn1s3d(
          this.ref.pointer,
          _sel_contentRectForFrameRect_,
          frameRect,
        );
  final _finalizable = _ptr.cast<ffi.Uint8>().asTypedList(
    ffi.sizeOf<NSRect>(),
    finalizer: pkg_ffi.calloc.nativeFree,
  );
  return ffi.Struct.create<NSRect>(_finalizable);
}