imageForBounds method
NSImage?
imageForBounds(
- CGRect imageBounds, {
- NSTextContainer? textContainer,
- required DartNSUInteger characterIndex,
imageForBounds:textContainer:characterIndex:
Implementation
NSImage? imageForBounds(
objc.CGRect imageBounds, {
NSTextContainer? textContainer,
required DartNSUInteger characterIndex,
}) {
objc.checkOsVersionInternal(
'NSTextAttachment.imageForBounds:textContainer:characterIndex:',
iOS: (false, (7, 0, 0)),
macOS: (false, (10, 11, 0)),
);
final _ret = _objc_msgSend_ymevk1(
this.ref.pointer,
_sel_imageForBounds_textContainer_characterIndex_,
imageBounds,
textContainer?.ref.pointer ?? ffi.nullptr,
characterIndex,
);
return _ret.address == 0
? null
: NSImage.castFromPointer(_ret, retain: true, release: true);
}