frame property

CGRect get frame

frame

Implementation

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