addToBuilder static method
void
addToBuilder(
- ObjCProtocolBuilder builder, {
- required CGSize contentSize(),
- required CGSize effectiveContentSize(),
- required NSDirectionalEdgeInsets contentInsets(),
- required NSDirectionalEdgeInsets effectiveContentInsets(),
- bool $keepIsolateAlive = true,
Adds the implementation of the NSCollectionLayoutContainer 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 NSSize Function() contentSize,
required NSSize Function() effectiveContentSize,
required NSDirectionalEdgeInsets Function() contentInsets,
required NSDirectionalEdgeInsets Function() effectiveContentInsets,
bool $keepIsolateAlive = true,
}) {
NSCollectionLayoutContainer.contentSize.implement(builder, contentSize);
NSCollectionLayoutContainer.effectiveContentSize.implement(
builder,
effectiveContentSize,
);
NSCollectionLayoutContainer.contentInsets.implement(builder, contentInsets);
NSCollectionLayoutContainer.effectiveContentInsets.implement(
builder,
effectiveContentInsets,
);
builder.addProtocol($protocol);
}