addToBuilder static method
void
addToBuilder(
- ObjCProtocolBuilder builder, {
- NSTextLayoutFragment textLayoutManager_textLayoutFragmentForLocation_inTextElement_()?,
- bool textLayoutManager_shouldBreakLineBeforeLocation_hyphenating_()?,
- NSDictionary? textLayoutManager_renderingAttributesForLink_atLocation_defaultAttributes_(
- NSTextLayoutManager,
- ObjCObjectBase,
- NSTextLocation,
- NSDictionary,
- bool $keepIsolateAlive = true,
Adds the implementation of the NSTextLayoutManagerDelegate 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, {
NSTextLayoutFragment Function(
NSTextLayoutManager,
NSTextLocation,
NSTextElement,
)?
textLayoutManager_textLayoutFragmentForLocation_inTextElement_,
bool Function(NSTextLayoutManager, NSTextLocation, bool)?
textLayoutManager_shouldBreakLineBeforeLocation_hyphenating_,
objc.NSDictionary? Function(
NSTextLayoutManager,
objc.ObjCObjectBase,
NSTextLocation,
objc.NSDictionary,
)?
textLayoutManager_renderingAttributesForLink_atLocation_defaultAttributes_,
bool $keepIsolateAlive = true,
}) {
NSTextLayoutManagerDelegate
.textLayoutManager_textLayoutFragmentForLocation_inTextElement_
.implement(
builder,
textLayoutManager_textLayoutFragmentForLocation_inTextElement_,
);
NSTextLayoutManagerDelegate
.textLayoutManager_shouldBreakLineBeforeLocation_hyphenating_
.implement(
builder,
textLayoutManager_shouldBreakLineBeforeLocation_hyphenating_,
);
NSTextLayoutManagerDelegate
.textLayoutManager_renderingAttributesForLink_atLocation_defaultAttributes_
.implement(
builder,
textLayoutManager_renderingAttributesForLink_atLocation_defaultAttributes_,
);
builder.addProtocol($protocol);
}