addToBuilderAsBlocking static method
void
addToBuilderAsBlocking(
- ObjCProtocolBuilder builder, {
- bool collectionView_canDragItemsAtIndexPaths_withEvent_(
- NSCollectionView,
- NSSet,
- NSEvent
- bool collectionView_canDragItemsAtIndexes_withEvent_(
- NSCollectionView,
- NSIndexSet,
- NSEvent
- bool collectionView_writeItemsAtIndexPaths_toPasteboard_(
- NSCollectionView,
- NSSet,
- NSPasteboard
- bool collectionView_writeItemsAtIndexes_toPasteboard_(
- NSCollectionView,
- NSIndexSet,
- NSPasteboard
- NSArray collectionView_namesOfPromisedFilesDroppedAtDestination_forDraggedItemsAtIndexPaths_(
- NSCollectionView,
- NSURL,
- NSSet
- NSArray collectionView_namesOfPromisedFilesDroppedAtDestination_forDraggedItemsAtIndexes_(
- NSCollectionView,
- NSURL,
- NSIndexSet
- NSImage collectionView_draggingImageForItemsAtIndexPaths_withEvent_offset_(
- NSCollectionView,
- NSSet,
- NSEvent,
- NSPointPointer,
- NSImage collectionView_draggingImageForItemsAtIndexes_withEvent_offset_(
- NSCollectionView,
- NSIndexSet,
- NSEvent,
- NSPointPointer,
- NSDragOperation collectionView_validateDrop_proposedIndexPath_dropOperation_(
- NSCollectionView,
- NSDraggingInfo,
- Pointer<
Pointer< ,ObjCObject> > - Pointer<
NSInteger> ,
- NSDragOperation collectionView_validateDrop_proposedIndex_dropOperation_()?,
- bool collectionView_acceptDrop_indexPath_dropOperation_()?,
- bool collectionView_acceptDrop_index_dropOperation_()?,
- NSPasteboardWriting? collectionView_pasteboardWriterForItemAtIndexPath_()?,
- NSPasteboardWriting? collectionView_pasteboardWriterForItemAtIndex_()?,
- void collectionView_draggingSession_willBeginAtPoint_forItemsAtIndexPaths_(
- NSCollectionView,
- NSDraggingSession,
- NSPoint,
- NSSet,
- void collectionView_draggingSession_willBeginAtPoint_forItemsAtIndexes_(
- NSCollectionView,
- NSDraggingSession,
- NSPoint,
- NSIndexSet,
- void collectionView_draggingSession_endedAtPoint_dragOperation_()?,
- void collectionView_updateDraggingItemsForDrag_()?,
- NSSet collectionView_shouldChangeItemsAtIndexPaths_toHighlightState_()?,
- void collectionView_didChangeItemsAtIndexPaths_toHighlightState_()?,
- NSSet collectionView_shouldSelectItemsAtIndexPaths_(
- NSCollectionView,
- NSSet
- NSSet collectionView_shouldDeselectItemsAtIndexPaths_(
- NSCollectionView,
- NSSet
- void collectionView_didSelectItemsAtIndexPaths_(
- NSCollectionView,
- NSSet
- void collectionView_didDeselectItemsAtIndexPaths_(
- NSCollectionView,
- NSSet
- void collectionView_willDisplayItem_forRepresentedObjectAtIndexPath_()?,
- void collectionView_willDisplaySupplementaryView_forElementKind_atIndexPath_()?,
- void collectionView_didEndDisplayingItem_forRepresentedObjectAtIndexPath_()?,
- void collectionView_didEndDisplayingSupplementaryView_forElementOfKind_atIndexPath_()?,
- NSCollectionViewTransitionLayout collectionView_transitionLayoutForOldLayout_newLayout_()?,
- bool $keepIsolateAlive = true,
Adds the implementation of the NSCollectionViewDelegate protocol to an existing
objc.ObjCProtocolBuilder. All methods that can be implemented as blocking
listeners will be.
Note: You cannot call this method after you have called builder.build.
Implementation
static void addToBuilderAsBlocking(
objc.ObjCProtocolBuilder builder, {
bool Function(NSCollectionView, objc.NSSet, NSEvent)?
collectionView_canDragItemsAtIndexPaths_withEvent_,
bool Function(NSCollectionView, objc.NSIndexSet, NSEvent)?
collectionView_canDragItemsAtIndexes_withEvent_,
bool Function(NSCollectionView, objc.NSSet, NSPasteboard)?
collectionView_writeItemsAtIndexPaths_toPasteboard_,
bool Function(NSCollectionView, objc.NSIndexSet, NSPasteboard)?
collectionView_writeItemsAtIndexes_toPasteboard_,
objc.NSArray Function(NSCollectionView, objc.NSURL, objc.NSSet)?
collectionView_namesOfPromisedFilesDroppedAtDestination_forDraggedItemsAtIndexPaths_,
objc.NSArray Function(NSCollectionView, objc.NSURL, objc.NSIndexSet)?
collectionView_namesOfPromisedFilesDroppedAtDestination_forDraggedItemsAtIndexes_,
NSImage Function(NSCollectionView, objc.NSSet, NSEvent, NSPointPointer)?
collectionView_draggingImageForItemsAtIndexPaths_withEvent_offset_,
NSImage Function(
NSCollectionView,
objc.NSIndexSet,
NSEvent,
NSPointPointer,
)?
collectionView_draggingImageForItemsAtIndexes_withEvent_offset_,
NSDragOperation Function(
NSCollectionView,
NSDraggingInfo,
ffi.Pointer<ffi.Pointer<objc.ObjCObject>>,
ffi.Pointer<NSInteger>,
)?
collectionView_validateDrop_proposedIndexPath_dropOperation_,
NSDragOperation Function(
NSCollectionView,
NSDraggingInfo,
ffi.Pointer<NSInteger>,
ffi.Pointer<NSInteger>,
)?
collectionView_validateDrop_proposedIndex_dropOperation_,
bool Function(
NSCollectionView,
NSDraggingInfo,
NSIndexPath,
NSCollectionViewDropOperation,
)?
collectionView_acceptDrop_indexPath_dropOperation_,
bool Function(
NSCollectionView,
NSDraggingInfo,
DartNSInteger,
NSCollectionViewDropOperation,
)?
collectionView_acceptDrop_index_dropOperation_,
NSPasteboardWriting? Function(NSCollectionView, NSIndexPath)?
collectionView_pasteboardWriterForItemAtIndexPath_,
NSPasteboardWriting? Function(NSCollectionView, DartNSUInteger)?
collectionView_pasteboardWriterForItemAtIndex_,
void Function(NSCollectionView, NSDraggingSession, NSPoint, objc.NSSet)?
collectionView_draggingSession_willBeginAtPoint_forItemsAtIndexPaths_,
void Function(
NSCollectionView,
NSDraggingSession,
NSPoint,
objc.NSIndexSet,
)?
collectionView_draggingSession_willBeginAtPoint_forItemsAtIndexes_,
void Function(
NSCollectionView,
NSDraggingSession,
NSPoint,
NSDragOperation,
)?
collectionView_draggingSession_endedAtPoint_dragOperation_,
void Function(NSCollectionView, NSDraggingInfo)?
collectionView_updateDraggingItemsForDrag_,
objc.NSSet Function(
NSCollectionView,
objc.NSSet,
NSCollectionViewItemHighlightState,
)?
collectionView_shouldChangeItemsAtIndexPaths_toHighlightState_,
void Function(
NSCollectionView,
objc.NSSet,
NSCollectionViewItemHighlightState,
)?
collectionView_didChangeItemsAtIndexPaths_toHighlightState_,
objc.NSSet Function(NSCollectionView, objc.NSSet)?
collectionView_shouldSelectItemsAtIndexPaths_,
objc.NSSet Function(NSCollectionView, objc.NSSet)?
collectionView_shouldDeselectItemsAtIndexPaths_,
void Function(NSCollectionView, objc.NSSet)?
collectionView_didSelectItemsAtIndexPaths_,
void Function(NSCollectionView, objc.NSSet)?
collectionView_didDeselectItemsAtIndexPaths_,
void Function(NSCollectionView, NSCollectionViewItem, NSIndexPath)?
collectionView_willDisplayItem_forRepresentedObjectAtIndexPath_,
void Function(
NSCollectionView,
NSView,
DartNSCollectionViewSupplementaryElementKind,
NSIndexPath,
)?
collectionView_willDisplaySupplementaryView_forElementKind_atIndexPath_,
void Function(NSCollectionView, NSCollectionViewItem, NSIndexPath)?
collectionView_didEndDisplayingItem_forRepresentedObjectAtIndexPath_,
void Function(
NSCollectionView,
NSView,
DartNSCollectionViewSupplementaryElementKind,
NSIndexPath,
)?
collectionView_didEndDisplayingSupplementaryView_forElementOfKind_atIndexPath_,
NSCollectionViewTransitionLayout Function(
NSCollectionView,
NSCollectionViewLayout,
NSCollectionViewLayout,
)?
collectionView_transitionLayoutForOldLayout_newLayout_,
bool $keepIsolateAlive = true,
}) {
NSCollectionViewDelegate.collectionView_canDragItemsAtIndexPaths_withEvent_
.implement(builder, collectionView_canDragItemsAtIndexPaths_withEvent_);
NSCollectionViewDelegate.collectionView_canDragItemsAtIndexes_withEvent_
.implement(builder, collectionView_canDragItemsAtIndexes_withEvent_);
NSCollectionViewDelegate.collectionView_writeItemsAtIndexPaths_toPasteboard_
.implement(
builder,
collectionView_writeItemsAtIndexPaths_toPasteboard_,
);
NSCollectionViewDelegate.collectionView_writeItemsAtIndexes_toPasteboard_
.implement(builder, collectionView_writeItemsAtIndexes_toPasteboard_);
NSCollectionViewDelegate
.collectionView_namesOfPromisedFilesDroppedAtDestination_forDraggedItemsAtIndexPaths_
.implement(
builder,
collectionView_namesOfPromisedFilesDroppedAtDestination_forDraggedItemsAtIndexPaths_,
);
NSCollectionViewDelegate
.collectionView_namesOfPromisedFilesDroppedAtDestination_forDraggedItemsAtIndexes_
.implement(
builder,
collectionView_namesOfPromisedFilesDroppedAtDestination_forDraggedItemsAtIndexes_,
);
NSCollectionViewDelegate
.collectionView_draggingImageForItemsAtIndexPaths_withEvent_offset_
.implement(
builder,
collectionView_draggingImageForItemsAtIndexPaths_withEvent_offset_,
);
NSCollectionViewDelegate
.collectionView_draggingImageForItemsAtIndexes_withEvent_offset_
.implement(
builder,
collectionView_draggingImageForItemsAtIndexes_withEvent_offset_,
);
NSCollectionViewDelegate
.collectionView_validateDrop_proposedIndexPath_dropOperation_
.implement(
builder,
collectionView_validateDrop_proposedIndexPath_dropOperation_,
);
NSCollectionViewDelegate
.collectionView_validateDrop_proposedIndex_dropOperation_
.implement(
builder,
collectionView_validateDrop_proposedIndex_dropOperation_,
);
NSCollectionViewDelegate.collectionView_acceptDrop_indexPath_dropOperation_
.implement(builder, collectionView_acceptDrop_indexPath_dropOperation_);
NSCollectionViewDelegate.collectionView_acceptDrop_index_dropOperation_
.implement(builder, collectionView_acceptDrop_index_dropOperation_);
NSCollectionViewDelegate.collectionView_pasteboardWriterForItemAtIndexPath_
.implement(builder, collectionView_pasteboardWriterForItemAtIndexPath_);
NSCollectionViewDelegate.collectionView_pasteboardWriterForItemAtIndex_
.implement(builder, collectionView_pasteboardWriterForItemAtIndex_);
NSCollectionViewDelegate
.collectionView_draggingSession_willBeginAtPoint_forItemsAtIndexPaths_
.implementAsBlocking(
builder,
collectionView_draggingSession_willBeginAtPoint_forItemsAtIndexPaths_,
);
NSCollectionViewDelegate
.collectionView_draggingSession_willBeginAtPoint_forItemsAtIndexes_
.implementAsBlocking(
builder,
collectionView_draggingSession_willBeginAtPoint_forItemsAtIndexes_,
);
NSCollectionViewDelegate
.collectionView_draggingSession_endedAtPoint_dragOperation_
.implementAsBlocking(
builder,
collectionView_draggingSession_endedAtPoint_dragOperation_,
);
NSCollectionViewDelegate.collectionView_updateDraggingItemsForDrag_
.implementAsBlocking(
builder,
collectionView_updateDraggingItemsForDrag_,
);
NSCollectionViewDelegate
.collectionView_shouldChangeItemsAtIndexPaths_toHighlightState_
.implement(
builder,
collectionView_shouldChangeItemsAtIndexPaths_toHighlightState_,
);
NSCollectionViewDelegate
.collectionView_didChangeItemsAtIndexPaths_toHighlightState_
.implementAsBlocking(
builder,
collectionView_didChangeItemsAtIndexPaths_toHighlightState_,
);
NSCollectionViewDelegate.collectionView_shouldSelectItemsAtIndexPaths_
.implement(builder, collectionView_shouldSelectItemsAtIndexPaths_);
NSCollectionViewDelegate.collectionView_shouldDeselectItemsAtIndexPaths_
.implement(builder, collectionView_shouldDeselectItemsAtIndexPaths_);
NSCollectionViewDelegate.collectionView_didSelectItemsAtIndexPaths_
.implementAsBlocking(
builder,
collectionView_didSelectItemsAtIndexPaths_,
);
NSCollectionViewDelegate.collectionView_didDeselectItemsAtIndexPaths_
.implementAsBlocking(
builder,
collectionView_didDeselectItemsAtIndexPaths_,
);
NSCollectionViewDelegate
.collectionView_willDisplayItem_forRepresentedObjectAtIndexPath_
.implementAsBlocking(
builder,
collectionView_willDisplayItem_forRepresentedObjectAtIndexPath_,
);
NSCollectionViewDelegate
.collectionView_willDisplaySupplementaryView_forElementKind_atIndexPath_
.implementAsBlocking(
builder,
collectionView_willDisplaySupplementaryView_forElementKind_atIndexPath_,
);
NSCollectionViewDelegate
.collectionView_didEndDisplayingItem_forRepresentedObjectAtIndexPath_
.implementAsBlocking(
builder,
collectionView_didEndDisplayingItem_forRepresentedObjectAtIndexPath_,
);
NSCollectionViewDelegate
.collectionView_didEndDisplayingSupplementaryView_forElementOfKind_atIndexPath_
.implementAsBlocking(
builder,
collectionView_didEndDisplayingSupplementaryView_forElementOfKind_atIndexPath_,
);
NSCollectionViewDelegate
.collectionView_transitionLayoutForOldLayout_newLayout_
.implement(
builder,
collectionView_transitionLayoutForOldLayout_newLayout_,
);
builder.addProtocol($protocol);
}