addToBuilder static method
void
addToBuilder(
- ObjCProtocolBuilder builder, {
- void changeFont_()?,
- NSFontPanelModeMask validModesForFontPanel_()?,
- bool $keepIsolateAlive = true,
Adds the implementation of the NSFontChanging 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, {
void Function(NSFontManager?)? changeFont_,
NSFontPanelModeMask Function(NSFontPanel)? validModesForFontPanel_,
bool $keepIsolateAlive = true,
}) {
NSFontChanging.changeFont_.implement(builder, changeFont_);
NSFontChanging.validModesForFontPanel_.implement(
builder,
validModesForFontPanel_,
);
builder.addProtocol($protocol);
}