contentLayoutRect property

CGRect get contentLayoutRect

contentLayoutRect

Implementation

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