frame property

CGRect get frame

The geometric frame of this item, represented in the coordinateSpace of the UIFocusItemContainer in which it is contained.

Implementation

objc.CGRect get frame {
  objc.checkOsVersionInternal('UIView.frame', iOS: (false, (12, 0, 0)));
  final $ptr = pkg_ffi.calloc<objc.CGRect>();
  objc.useMsgSendVariants
      ? _objc_msgSend_bu1hbwStret($ptr, object$.ref.pointer, _sel_frame)
      : $ptr.ref = _objc_msgSend_bu1hbw(object$.ref.pointer, _sel_frame);
  final $finalizable = $ptr.cast<ffi.Uint8>().asTypedList(
    ffi.sizeOf<objc.CGRect>(),
    finalizer: pkg_ffi.calloc.nativeFree,
  );
  return ffi.Struct.create<objc.CGRect>($finalizable);
}