addToBuilder static method
void
addToBuilder(
- ObjCProtocolBuilder builder, {
- required void willShow(),
- required bool shouldHide(),
- required bool saveValuesAndReturnError_(),
- required bool restoreValuesAndReturnError_(),
- NSArray? supportedPPDOptionKeys()?,
- required void PPDOptionKeyValueDidChange_ppdChoice_(
- NSString,
- NSString
- required NSView? panelView(),
- required DartCADynamicRange panelName(),
- required DartCADynamicRange panelKind(),
- required NSDictionary? summaryInfo(),
- bool shouldShowHelp()?,
- bool shouldPrint()?,
- void printWindowWillClose_()?,
- bool $keepIsolateAlive = true,
Adds the implementation of the PDEPanel 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() willShow,
required bool Function() shouldHide,
required bool Function(ffi.Pointer<ffi.Pointer<objc.ObjCObject>>)
saveValuesAndReturnError_,
required bool Function(ffi.Pointer<ffi.Pointer<objc.ObjCObject>>)
restoreValuesAndReturnError_,
objc.NSArray? Function()? supportedPPDOptionKeys,
required void Function(objc.NSString, objc.NSString)
PPDOptionKeyValueDidChange_ppdChoice_,
required NSView? Function() panelView,
required objc.NSString Function() panelName,
required objc.NSString Function() panelKind,
required objc.NSDictionary? Function() summaryInfo,
bool Function()? shouldShowHelp,
bool Function()? shouldPrint,
void Function(bool)? printWindowWillClose_,
bool $keepIsolateAlive = true,
}) {
PDEPanel.willShow.implement(builder, willShow);
PDEPanel.shouldHide.implement(builder, shouldHide);
PDEPanel.saveValuesAndReturnError_.implement(
builder,
saveValuesAndReturnError_,
);
PDEPanel.restoreValuesAndReturnError_.implement(
builder,
restoreValuesAndReturnError_,
);
PDEPanel.supportedPPDOptionKeys.implement(builder, supportedPPDOptionKeys);
PDEPanel.PPDOptionKeyValueDidChange_ppdChoice_.implement(
builder,
PPDOptionKeyValueDidChange_ppdChoice_,
);
PDEPanel.panelView.implement(builder, panelView);
PDEPanel.panelName.implement(builder, panelName);
PDEPanel.panelKind.implement(builder, panelKind);
PDEPanel.summaryInfo.implement(builder, summaryInfo);
PDEPanel.shouldShowHelp.implement(builder, shouldShowHelp);
PDEPanel.shouldPrint.implement(builder, shouldPrint);
PDEPanel.printWindowWillClose_.implement(builder, printWindowWillClose_);
builder.addProtocol($protocol);
}