boundingRectWithSize method
NSRect
boundingRectWithSize(
- NSSize size, {
- required NSStringDrawingOptions options,
- NSDictionary? attributes,
boundingRectWithSize:options:attributes:
Implementation
NSRect boundingRectWithSize(
NSSize size, {
required NSStringDrawingOptions options,
objc.NSDictionary? attributes,
}) {
final _ptr = pkg_ffi.calloc<NSRect>();
objc.useMsgSendVariants
? _objc_msgSend_1y1y0icStret(
_ptr,
this.ref.pointer,
_sel_boundingRectWithSize_options_attributes_,
size,
options.value,
attributes?.ref.pointer ?? ffi.nullptr,
)
: _ptr.ref = _objc_msgSend_1y1y0ic(
this.ref.pointer,
_sel_boundingRectWithSize_options_attributes_,
size,
options.value,
attributes?.ref.pointer ?? ffi.nullptr,
);
final _finalizable = _ptr.cast<ffi.Uint8>().asTypedList(
ffi.sizeOf<NSRect>(),
finalizer: pkg_ffi.calloc.nativeFree,
);
return ffi.Struct.create<NSRect>(_finalizable);
}