addToBuilder static method
void
addToBuilder(})
Adds the implementation of the NSImageDelegate 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, {
NSImage? Function(NSImage, NSRect)? imageDidNotDraw_inRect_,
void Function(NSImage, NSImageRep)? image_willLoadRepresentation_,
void Function(NSImage, NSImageRep)? image_didLoadRepresentationHeader_,
void Function(NSImage, NSImageRep, DartNSInteger)?
image_didLoadPartOfRepresentation_withValidRows_,
void Function(NSImage, NSImageRep, NSImageLoadStatus)?
image_didLoadRepresentation_withStatus_,
bool $keepIsolateAlive = true,
}) {
NSImageDelegate.imageDidNotDraw_inRect_.implement(
builder,
imageDidNotDraw_inRect_,
);
NSImageDelegate.image_willLoadRepresentation_.implement(
builder,
image_willLoadRepresentation_,
);
NSImageDelegate.image_didLoadRepresentationHeader_.implement(
builder,
image_didLoadRepresentationHeader_,
);
NSImageDelegate.image_didLoadPartOfRepresentation_withValidRows_.implement(
builder,
image_didLoadPartOfRepresentation_withValidRows_,
);
NSImageDelegate.image_didLoadRepresentation_withStatus_.implement(
builder,
image_didLoadRepresentation_withStatus_,
);
builder.addProtocol($protocol);
}