addToBuilder static method
void
addToBuilder(
- ObjCProtocolBuilder builder, {
- bool drawerShouldOpen_()?,
- bool drawerShouldClose_()?,
- NSSize drawerWillResizeContents_toSize_()?,
- void drawerWillOpen_(
- NSNotification
- void drawerDidOpen_(
- NSNotification
- void drawerWillClose_(
- NSNotification
- void drawerDidClose_(
- NSNotification
- bool $keepIsolateAlive = true,
Adds the implementation of the NSDrawerDelegate 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, {
bool Function(NSDrawer)? drawerShouldOpen_,
bool Function(NSDrawer)? drawerShouldClose_,
NSSize Function(NSDrawer, NSSize)? drawerWillResizeContents_toSize_,
void Function(objc.NSNotification)? drawerWillOpen_,
void Function(objc.NSNotification)? drawerDidOpen_,
void Function(objc.NSNotification)? drawerWillClose_,
void Function(objc.NSNotification)? drawerDidClose_,
bool $keepIsolateAlive = true,
}) {
NSDrawerDelegate.drawerShouldOpen_.implement(builder, drawerShouldOpen_);
NSDrawerDelegate.drawerShouldClose_.implement(builder, drawerShouldClose_);
NSDrawerDelegate.drawerWillResizeContents_toSize_.implement(
builder,
drawerWillResizeContents_toSize_,
);
NSDrawerDelegate.drawerWillOpen_.implement(builder, drawerWillOpen_);
NSDrawerDelegate.drawerDidOpen_.implement(builder, drawerDidOpen_);
NSDrawerDelegate.drawerWillClose_.implement(builder, drawerWillClose_);
NSDrawerDelegate.drawerDidClose_.implement(builder, drawerDidClose_);
builder.addProtocol($protocol);
}