alignmentRectForFrame method
CGRect
alignmentRectForFrame(
- CGRect frame
alignmentRectForFrame:
Implementation
objc.CGRect alignmentRectForFrame(objc.CGRect frame) {
objc.checkOsVersionInternal('UIView.alignmentRectForFrame:', iOS: (false, (6, 0, 0)));
final _ptr = pkg_ffi.calloc<objc.CGRect>();
objc.useMsgSendVariants
? _objc_msgSend_1gn1s3dStret(_ptr, this.ref.pointer, _sel_alignmentRectForFrame_, frame)
: _ptr.ref = _objc_msgSend_1gn1s3d(this.ref.pointer, _sel_alignmentRectForFrame_, frame);
final _finalizable = _ptr.cast<ffi.Uint8>().asTypedList(
ffi.sizeOf<objc.CGRect>(),
finalizer: pkg_ffi.calloc.nativeFree,
);
return ffi.Struct.create<objc.CGRect>(_finalizable);
}