addToBuilder static method
void
addToBuilder(})
Adds the implementation of the CALayerDelegate 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(CALayer)? displayLayer_,
void Function(CALayer, CGContextRef)? drawLayer_inContext_,
void Function(CALayer)? layerWillDraw_,
void Function(CALayer)? layoutSublayersOfLayer_,
CAAction? Function(CALayer, objc.NSString)? actionForLayer_forKey_,
bool $keepIsolateAlive = true,
}) {
CALayerDelegate.displayLayer_.implement(builder, displayLayer_);
CALayerDelegate.drawLayer_inContext_.implement(
builder,
drawLayer_inContext_,
);
CALayerDelegate.layerWillDraw_.implement(builder, layerWillDraw_);
CALayerDelegate.layoutSublayersOfLayer_.implement(
builder,
layoutSublayersOfLayer_,
);
CALayerDelegate.actionForLayer_forKey_.implement(
builder,
actionForLayer_forKey_,
);
builder.addProtocol($protocol);
}