contentOffset property
CGPoint
get
contentOffset
The current content offset of this scrollable container. If the scrollable container has a bounds property, bounds.origin must be equal to contentOffset.
Implementation
objc.CGPoint get contentOffset {
objc.checkOsVersionInternal('UIScrollView.contentOffset', iOS: (false, (12, 0, 0)));
final $ptr = pkg_ffi.calloc<objc.CGPoint>();
objc.useMsgSendVariants
? _objc_msgSend_1uwdhlkStret($ptr, object$.ref.pointer, _sel_contentOffset)
: $ptr.ref = _objc_msgSend_1uwdhlk(object$.ref.pointer, _sel_contentOffset);
final $finalizable = $ptr.cast<ffi.Uint8>().asTypedList(
ffi.sizeOf<objc.CGPoint>(),
finalizer: pkg_ffi.calloc.nativeFree,
);
return ffi.Struct.create<objc.CGPoint>($finalizable);
}
set
contentOffset
(CGPoint value)
The current content offset of this scrollable container. If the scrollable container has a bounds property, bounds.origin must be equal to contentOffset.
Implementation
set contentOffset(objc.CGPoint value) {
objc.checkOsVersionInternal('UIScrollView.setContentOffset:', iOS: (false, (12, 0, 0)));
_objc_msgSend_iy8iz6(object$.ref.pointer, _sel_setContentOffset_, value);
}