bounds property

CGRect get bounds

bounds

Implementation

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