addToBuilder static method
void
addToBuilder(
- ObjCProtocolBuilder builder, {
- required NSImage? imageForBounds_attributes_location_textContainer_(
- CGRect,
- NSDictionary,
- NSTextLocation,
- NSTextContainer?,
- required CGRect attachmentBoundsForAttributes_location_textContainer_proposedLineFragment_position_(
- NSDictionary,
- NSTextLocation,
- NSTextContainer?,
- CGRect,
- CGPoint,
- required NSTextAttachmentViewProvider? viewProviderForParentView_location_textContainer_(),
- bool $keepIsolateAlive = true,
Adds the implementation of the NSTextAttachmentLayout protocol to an existing
objc.ObjCProtocolBuilder.
Note: You cannot call this method after you have called builder.build.
Implementation
static void addToBuilder(
objc.ObjCProtocolBuilder builder, {
required NSImage? Function(
objc.CGRect,
objc.NSDictionary,
NSTextLocation,
NSTextContainer?,
)
imageForBounds_attributes_location_textContainer_,
required objc.CGRect Function(
objc.NSDictionary,
NSTextLocation,
NSTextContainer?,
objc.CGRect,
objc.CGPoint,
)
attachmentBoundsForAttributes_location_textContainer_proposedLineFragment_position_,
required NSTextAttachmentViewProvider? Function(
NSView?,
NSTextLocation,
NSTextContainer?,
)
viewProviderForParentView_location_textContainer_,
bool $keepIsolateAlive = true,
}) {
NSTextAttachmentLayout.imageForBounds_attributes_location_textContainer_
.implement(builder, imageForBounds_attributes_location_textContainer_);
NSTextAttachmentLayout
.attachmentBoundsForAttributes_location_textContainer_proposedLineFragment_position_
.implement(
builder,
attachmentBoundsForAttributes_location_textContainer_proposedLineFragment_position_,
);
NSTextAttachmentLayout.viewProviderForParentView_location_textContainer_
.implement(builder, viewProviderForParentView_location_textContainer_);
builder.addProtocol($protocol);
}