containerFrame property

CGRect get containerFrame

containerFrame

Implementation

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