addToBuilder static method
void
addToBuilder(
- ObjCProtocolBuilder builder, {
- required void insertGlyphs_length_forStartingGlyphAtIndex_characterIndex_(),
- required void setIntAttribute_value_forGlyphAtIndex_(),
- required NSAttributedString attributedString(),
- required int layoutOptions(),
- bool $keepIsolateAlive = true,
Adds the implementation of the NSGlyphStorage 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 void Function(
ffi.Pointer<NSGlyph>,
DartNSUInteger,
DartNSUInteger,
DartNSUInteger,
)
insertGlyphs_length_forStartingGlyphAtIndex_characterIndex_,
required void Function(DartNSInteger, DartNSInteger, DartNSUInteger)
setIntAttribute_value_forGlyphAtIndex_,
required NSAttributedString Function() attributedString,
required DartNSUInteger Function() layoutOptions,
bool $keepIsolateAlive = true,
}) {
NSGlyphStorage.insertGlyphs_length_forStartingGlyphAtIndex_characterIndex_
.implement(
builder,
insertGlyphs_length_forStartingGlyphAtIndex_characterIndex_,
);
NSGlyphStorage.setIntAttribute_value_forGlyphAtIndex_.implement(
builder,
setIntAttribute_value_forGlyphAtIndex_,
);
NSGlyphStorage.attributedString.implement(builder, attributedString);
NSGlyphStorage.layoutOptions.implement(builder, layoutOptions);
builder.addProtocol($protocol);
}