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, this.ref.pointer, _sel_contentOffset)
      : _ptr.ref = _objc_msgSend_1uwdhlk(this.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(this.ref.pointer, _sel_setContentOffset_, value);
}