This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
/
collection_view_delegate.go
479 lines (385 loc) · 28.1 KB
/
collection_view_delegate.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
// auto-generated code, do not modify
package appkit
import (
"github.com/hsiafan/cocoa/foundation"
"github.com/hsiafan/cocoa/objc"
)
type CollectionViewDelegate interface {
ImplementsCollectionView_ShouldSelectItemsAtIndexPaths() bool
// optional
CollectionView_ShouldSelectItemsAtIndexPaths(collectionView CollectionView, indexPaths foundation.Set) foundation.ISet
ImplementsCollectionView_DidSelectItemsAtIndexPaths() bool
// optional
CollectionView_DidSelectItemsAtIndexPaths(collectionView CollectionView, indexPaths foundation.Set)
ImplementsCollectionView_ShouldDeselectItemsAtIndexPaths() bool
// optional
CollectionView_ShouldDeselectItemsAtIndexPaths(collectionView CollectionView, indexPaths foundation.Set) foundation.ISet
ImplementsCollectionView_DidDeselectItemsAtIndexPaths() bool
// optional
CollectionView_DidDeselectItemsAtIndexPaths(collectionView CollectionView, indexPaths foundation.Set)
ImplementsCollectionView_ShouldChangeItemsAtIndexPaths_ToHighlightState() bool
// optional
CollectionView_ShouldChangeItemsAtIndexPaths_ToHighlightState(collectionView CollectionView, indexPaths foundation.Set, highlightState CollectionViewItemHighlightState) foundation.ISet
ImplementsCollectionView_DidChangeItemsAtIndexPaths_ToHighlightState() bool
// optional
CollectionView_DidChangeItemsAtIndexPaths_ToHighlightState(collectionView CollectionView, indexPaths foundation.Set, highlightState CollectionViewItemHighlightState)
ImplementsCollectionView_WillDisplayItem_ForRepresentedObjectAtIndexPath() bool
// optional
CollectionView_WillDisplayItem_ForRepresentedObjectAtIndexPath(collectionView CollectionView, item CollectionViewItem, indexPath foundation.IndexPath)
ImplementsCollectionView_DidEndDisplayingItem_ForRepresentedObjectAtIndexPath() bool
// optional
CollectionView_DidEndDisplayingItem_ForRepresentedObjectAtIndexPath(collectionView CollectionView, item CollectionViewItem, indexPath foundation.IndexPath)
ImplementsCollectionView_WillDisplaySupplementaryView_ForElementKind_AtIndexPath() bool
// optional
CollectionView_WillDisplaySupplementaryView_ForElementKind_AtIndexPath(collectionView CollectionView, view View, elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IndexPath)
ImplementsCollectionView_DidEndDisplayingSupplementaryView_ForElementOfKind_AtIndexPath() bool
// optional
CollectionView_DidEndDisplayingSupplementaryView_ForElementOfKind_AtIndexPath(collectionView CollectionView, view View, elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IndexPath)
ImplementsCollectionView_TransitionLayoutForOldLayout_NewLayout() bool
// optional
CollectionView_TransitionLayoutForOldLayout_NewLayout(collectionView CollectionView, fromLayout CollectionViewLayout, toLayout CollectionViewLayout) ICollectionViewTransitionLayout
ImplementsCollectionView_CanDragItemsAtIndexPaths_WithEvent() bool
// optional
CollectionView_CanDragItemsAtIndexPaths_WithEvent(collectionView CollectionView, indexPaths foundation.Set, event Event) bool
ImplementsCollectionView_PasteboardWriterForItemAtIndexPath() bool
// optional
CollectionView_PasteboardWriterForItemAtIndexPath(collectionView CollectionView, indexPath foundation.IndexPath) objc.IObject
ImplementsCollectionView_WriteItemsAtIndexPaths_ToPasteboard() bool
// optional
// deprecated
CollectionView_WriteItemsAtIndexPaths_ToPasteboard(collectionView CollectionView, indexPaths foundation.Set, pasteboard Pasteboard) bool
ImplementsCollectionView_NamesOfPromisedFilesDroppedAtDestination_ForDraggedItemsAtIndexPaths() bool
// optional
// deprecated
CollectionView_NamesOfPromisedFilesDroppedAtDestination_ForDraggedItemsAtIndexPaths(collectionView CollectionView, dropURL foundation.URL, indexPaths foundation.Set) []string
ImplementsCollectionView_DraggingImageForItemsAtIndexPaths_WithEvent_Offset() bool
// optional
CollectionView_DraggingImageForItemsAtIndexPaths_WithEvent_Offset(collectionView CollectionView, indexPaths foundation.Set, event Event, dragImageOffset *foundation.Point) IImage
ImplementsCollectionView_DraggingSession_WillBeginAtPoint_ForItemsAtIndexPaths() bool
// optional
CollectionView_DraggingSession_WillBeginAtPoint_ForItemsAtIndexPaths(collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, indexPaths foundation.Set)
ImplementsCollectionView_DraggingSession_EndedAtPoint_DragOperation() bool
// optional
CollectionView_DraggingSession_EndedAtPoint_DragOperation(collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, operation DragOperation)
ImplementsCollectionView_UpdateDraggingItemsForDrag() bool
// optional
CollectionView_UpdateDraggingItemsForDrag(collectionView CollectionView, draggingInfo objc.Object)
ImplementsCollectionView_ValidateDrop_ProposedIndexPath_DropOperation() bool
// optional
CollectionView_ValidateDrop_ProposedIndexPath_DropOperation(collectionView CollectionView, draggingInfo objc.Object, proposedDropIndexPath *foundation.IndexPath, proposedDropOperation *CollectionViewDropOperation) DragOperation
ImplementsCollectionView_AcceptDrop_IndexPath_DropOperation() bool
// optional
CollectionView_AcceptDrop_IndexPath_DropOperation(collectionView CollectionView, draggingInfo objc.Object, indexPath foundation.IndexPath, dropOperation CollectionViewDropOperation) bool
ImplementsCollectionView_CanDragItemsAtIndexes_WithEvent() bool
// optional
CollectionView_CanDragItemsAtIndexes_WithEvent(collectionView CollectionView, indexes foundation.IndexSet, event Event) bool
ImplementsCollectionView_PasteboardWriterForItemAtIndex() bool
// optional
CollectionView_PasteboardWriterForItemAtIndex(collectionView CollectionView, index uint) objc.IObject
ImplementsCollectionView_WriteItemsAtIndexes_ToPasteboard() bool
// optional
// deprecated
CollectionView_WriteItemsAtIndexes_ToPasteboard(collectionView CollectionView, indexes foundation.IndexSet, pasteboard Pasteboard) bool
ImplementsCollectionView_NamesOfPromisedFilesDroppedAtDestination_ForDraggedItemsAtIndexes() bool
// optional
// deprecated
CollectionView_NamesOfPromisedFilesDroppedAtDestination_ForDraggedItemsAtIndexes(collectionView CollectionView, dropURL foundation.URL, indexes foundation.IndexSet) []string
ImplementsCollectionView_DraggingImageForItemsAtIndexes_WithEvent_Offset() bool
// optional
CollectionView_DraggingImageForItemsAtIndexes_WithEvent_Offset(collectionView CollectionView, indexes foundation.IndexSet, event Event, dragImageOffset *foundation.Point) IImage
ImplementsCollectionView_DraggingSession_WillBeginAtPoint_ForItemsAtIndexes() bool
// optional
CollectionView_DraggingSession_WillBeginAtPoint_ForItemsAtIndexes(collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, indexes foundation.IndexSet)
ImplementsCollectionView_ValidateDrop_ProposedIndex_DropOperation() bool
// optional
CollectionView_ValidateDrop_ProposedIndex_DropOperation(collectionView CollectionView, draggingInfo objc.Object, proposedDropIndex *int, proposedDropOperation *CollectionViewDropOperation) DragOperation
ImplementsCollectionView_AcceptDrop_Index_DropOperation() bool
// optional
CollectionView_AcceptDrop_Index_DropOperation(collectionView CollectionView, draggingInfo objc.Object, index int, dropOperation CollectionViewDropOperation) bool
}
func WrapCollectionViewDelegate(v CollectionViewDelegate) objc.Object {
return objc.WrapAsProtocol("NSCollectionViewDelegate", v)
}
type CollectionViewDelegateBase struct {
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_ShouldSelectItemsAtIndexPaths() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_ShouldSelectItemsAtIndexPaths(collectionView CollectionView, indexPaths foundation.Set) foundation.ISet {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_DidSelectItemsAtIndexPaths() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_DidSelectItemsAtIndexPaths(collectionView CollectionView, indexPaths foundation.Set) {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_ShouldDeselectItemsAtIndexPaths() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_ShouldDeselectItemsAtIndexPaths(collectionView CollectionView, indexPaths foundation.Set) foundation.ISet {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_DidDeselectItemsAtIndexPaths() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_DidDeselectItemsAtIndexPaths(collectionView CollectionView, indexPaths foundation.Set) {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_ShouldChangeItemsAtIndexPaths_ToHighlightState() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_ShouldChangeItemsAtIndexPaths_ToHighlightState(collectionView CollectionView, indexPaths foundation.Set, highlightState CollectionViewItemHighlightState) foundation.ISet {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_DidChangeItemsAtIndexPaths_ToHighlightState() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_DidChangeItemsAtIndexPaths_ToHighlightState(collectionView CollectionView, indexPaths foundation.Set, highlightState CollectionViewItemHighlightState) {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_WillDisplayItem_ForRepresentedObjectAtIndexPath() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_WillDisplayItem_ForRepresentedObjectAtIndexPath(collectionView CollectionView, item CollectionViewItem, indexPath foundation.IndexPath) {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_DidEndDisplayingItem_ForRepresentedObjectAtIndexPath() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_DidEndDisplayingItem_ForRepresentedObjectAtIndexPath(collectionView CollectionView, item CollectionViewItem, indexPath foundation.IndexPath) {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_WillDisplaySupplementaryView_ForElementKind_AtIndexPath() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_WillDisplaySupplementaryView_ForElementKind_AtIndexPath(collectionView CollectionView, view View, elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IndexPath) {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_DidEndDisplayingSupplementaryView_ForElementOfKind_AtIndexPath() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_DidEndDisplayingSupplementaryView_ForElementOfKind_AtIndexPath(collectionView CollectionView, view View, elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IndexPath) {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_TransitionLayoutForOldLayout_NewLayout() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_TransitionLayoutForOldLayout_NewLayout(collectionView CollectionView, fromLayout CollectionViewLayout, toLayout CollectionViewLayout) ICollectionViewTransitionLayout {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_CanDragItemsAtIndexPaths_WithEvent() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_CanDragItemsAtIndexPaths_WithEvent(collectionView CollectionView, indexPaths foundation.Set, event Event) bool {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_PasteboardWriterForItemAtIndexPath() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_PasteboardWriterForItemAtIndexPath(collectionView CollectionView, indexPath foundation.IndexPath) objc.IObject {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_WriteItemsAtIndexPaths_ToPasteboard() bool {
return false
}
// deprecated
func (p *CollectionViewDelegateBase) CollectionView_WriteItemsAtIndexPaths_ToPasteboard(collectionView CollectionView, indexPaths foundation.Set, pasteboard Pasteboard) bool {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_NamesOfPromisedFilesDroppedAtDestination_ForDraggedItemsAtIndexPaths() bool {
return false
}
// deprecated
func (p *CollectionViewDelegateBase) CollectionView_NamesOfPromisedFilesDroppedAtDestination_ForDraggedItemsAtIndexPaths(collectionView CollectionView, dropURL foundation.URL, indexPaths foundation.Set) []string {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_DraggingImageForItemsAtIndexPaths_WithEvent_Offset() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_DraggingImageForItemsAtIndexPaths_WithEvent_Offset(collectionView CollectionView, indexPaths foundation.Set, event Event, dragImageOffset *foundation.Point) IImage {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_DraggingSession_WillBeginAtPoint_ForItemsAtIndexPaths() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_DraggingSession_WillBeginAtPoint_ForItemsAtIndexPaths(collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, indexPaths foundation.Set) {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_DraggingSession_EndedAtPoint_DragOperation() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_DraggingSession_EndedAtPoint_DragOperation(collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, operation DragOperation) {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_UpdateDraggingItemsForDrag() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_UpdateDraggingItemsForDrag(collectionView CollectionView, draggingInfo objc.Object) {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_ValidateDrop_ProposedIndexPath_DropOperation() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_ValidateDrop_ProposedIndexPath_DropOperation(collectionView CollectionView, draggingInfo objc.Object, proposedDropIndexPath *foundation.IndexPath, proposedDropOperation *CollectionViewDropOperation) DragOperation {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_AcceptDrop_IndexPath_DropOperation() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_AcceptDrop_IndexPath_DropOperation(collectionView CollectionView, draggingInfo objc.Object, indexPath foundation.IndexPath, dropOperation CollectionViewDropOperation) bool {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_CanDragItemsAtIndexes_WithEvent() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_CanDragItemsAtIndexes_WithEvent(collectionView CollectionView, indexes foundation.IndexSet, event Event) bool {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_PasteboardWriterForItemAtIndex() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_PasteboardWriterForItemAtIndex(collectionView CollectionView, index uint) objc.IObject {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_WriteItemsAtIndexes_ToPasteboard() bool {
return false
}
// deprecated
func (p *CollectionViewDelegateBase) CollectionView_WriteItemsAtIndexes_ToPasteboard(collectionView CollectionView, indexes foundation.IndexSet, pasteboard Pasteboard) bool {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_NamesOfPromisedFilesDroppedAtDestination_ForDraggedItemsAtIndexes() bool {
return false
}
// deprecated
func (p *CollectionViewDelegateBase) CollectionView_NamesOfPromisedFilesDroppedAtDestination_ForDraggedItemsAtIndexes(collectionView CollectionView, dropURL foundation.URL, indexes foundation.IndexSet) []string {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_DraggingImageForItemsAtIndexes_WithEvent_Offset() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_DraggingImageForItemsAtIndexes_WithEvent_Offset(collectionView CollectionView, indexes foundation.IndexSet, event Event, dragImageOffset *foundation.Point) IImage {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_DraggingSession_WillBeginAtPoint_ForItemsAtIndexes() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_DraggingSession_WillBeginAtPoint_ForItemsAtIndexes(collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, indexes foundation.IndexSet) {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_ValidateDrop_ProposedIndex_DropOperation() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_ValidateDrop_ProposedIndex_DropOperation(collectionView CollectionView, draggingInfo objc.Object, proposedDropIndex *int, proposedDropOperation *CollectionViewDropOperation) DragOperation {
panic("unimpemented protocol method")
}
func (p *CollectionViewDelegateBase) ImplementsCollectionView_AcceptDrop_Index_DropOperation() bool {
return false
}
func (p *CollectionViewDelegateBase) CollectionView_AcceptDrop_Index_DropOperation(collectionView CollectionView, draggingInfo objc.Object, index int, dropOperation CollectionViewDropOperation) bool {
panic("unimpemented protocol method")
}
type CollectionViewDelegateCreator struct {
className string
class objc.Class
}
func NewCollectionViewDelegateCreator(name string) *CollectionViewDelegateCreator {
class := objc.AllocateClassPair(objc.GetClass("ProtocolBase"), name, 0)
objc.RegisterClassPair(class)
return &CollectionViewDelegateCreator{className: name, class: class}
}
func (c *CollectionViewDelegateCreator) SetCollectionView_ShouldSelectItemsAtIndexPaths(handle func(o objc.ProtocolBase, collectionView CollectionView, indexPaths foundation.Set) foundation.ISet) {
objc.AddMethod(c.class, objc.SEL("collectionView:shouldSelectItemsAtIndexPaths:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_DidSelectItemsAtIndexPaths(handle func(o objc.ProtocolBase, collectionView CollectionView, indexPaths foundation.Set)) {
objc.AddMethod(c.class, objc.SEL("collectionView:didSelectItemsAtIndexPaths:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_ShouldDeselectItemsAtIndexPaths(handle func(o objc.ProtocolBase, collectionView CollectionView, indexPaths foundation.Set) foundation.ISet) {
objc.AddMethod(c.class, objc.SEL("collectionView:shouldDeselectItemsAtIndexPaths:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_DidDeselectItemsAtIndexPaths(handle func(o objc.ProtocolBase, collectionView CollectionView, indexPaths foundation.Set)) {
objc.AddMethod(c.class, objc.SEL("collectionView:didDeselectItemsAtIndexPaths:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_ShouldChangeItemsAtIndexPaths_ToHighlightState(handle func(o objc.ProtocolBase, collectionView CollectionView, indexPaths foundation.Set, highlightState CollectionViewItemHighlightState) foundation.ISet) {
objc.AddMethod(c.class, objc.SEL("collectionView:shouldChangeItemsAtIndexPaths:toHighlightState:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_DidChangeItemsAtIndexPaths_ToHighlightState(handle func(o objc.ProtocolBase, collectionView CollectionView, indexPaths foundation.Set, highlightState CollectionViewItemHighlightState)) {
objc.AddMethod(c.class, objc.SEL("collectionView:didChangeItemsAtIndexPaths:toHighlightState:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_WillDisplayItem_ForRepresentedObjectAtIndexPath(handle func(o objc.ProtocolBase, collectionView CollectionView, item CollectionViewItem, indexPath foundation.IndexPath)) {
objc.AddMethod(c.class, objc.SEL("collectionView:willDisplayItem:forRepresentedObjectAtIndexPath:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_DidEndDisplayingItem_ForRepresentedObjectAtIndexPath(handle func(o objc.ProtocolBase, collectionView CollectionView, item CollectionViewItem, indexPath foundation.IndexPath)) {
objc.AddMethod(c.class, objc.SEL("collectionView:didEndDisplayingItem:forRepresentedObjectAtIndexPath:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_WillDisplaySupplementaryView_ForElementKind_AtIndexPath(handle func(o objc.ProtocolBase, collectionView CollectionView, view View, elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IndexPath)) {
objc.AddMethod(c.class, objc.SEL("collectionView:willDisplaySupplementaryView:forElementKind:atIndexPath:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_DidEndDisplayingSupplementaryView_ForElementOfKind_AtIndexPath(handle func(o objc.ProtocolBase, collectionView CollectionView, view View, elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IndexPath)) {
objc.AddMethod(c.class, objc.SEL("collectionView:didEndDisplayingSupplementaryView:forElementOfKind:atIndexPath:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_TransitionLayoutForOldLayout_NewLayout(handle func(o objc.ProtocolBase, collectionView CollectionView, fromLayout CollectionViewLayout, toLayout CollectionViewLayout) ICollectionViewTransitionLayout) {
objc.AddMethod(c.class, objc.SEL("collectionView:transitionLayoutForOldLayout:newLayout:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_CanDragItemsAtIndexPaths_WithEvent(handle func(o objc.ProtocolBase, collectionView CollectionView, indexPaths foundation.Set, event Event) bool) {
objc.AddMethod(c.class, objc.SEL("collectionView:canDragItemsAtIndexPaths:withEvent:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_PasteboardWriterForItemAtIndexPath(handle func(o objc.ProtocolBase, collectionView CollectionView, indexPath foundation.IndexPath) objc.IObject) {
objc.AddMethod(c.class, objc.SEL("collectionView:pasteboardWriterForItemAtIndexPath:"), handle)
}
// deprecated
func (c *CollectionViewDelegateCreator) SetCollectionView_WriteItemsAtIndexPaths_ToPasteboard(handle func(o objc.ProtocolBase, collectionView CollectionView, indexPaths foundation.Set, pasteboard Pasteboard) bool) {
objc.AddMethod(c.class, objc.SEL("collectionView:writeItemsAtIndexPaths:toPasteboard:"), handle)
}
// deprecated
func (c *CollectionViewDelegateCreator) SetCollectionView_NamesOfPromisedFilesDroppedAtDestination_ForDraggedItemsAtIndexPaths(handle func(o objc.ProtocolBase, collectionView CollectionView, dropURL foundation.URL, indexPaths foundation.Set) []string) {
objc.AddMethod(c.class, objc.SEL("collectionView:namesOfPromisedFilesDroppedAtDestination:forDraggedItemsAtIndexPaths:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_DraggingImageForItemsAtIndexPaths_WithEvent_Offset(handle func(o objc.ProtocolBase, collectionView CollectionView, indexPaths foundation.Set, event Event, dragImageOffset *foundation.Point) IImage) {
objc.AddMethod(c.class, objc.SEL("collectionView:draggingImageForItemsAtIndexPaths:withEvent:offset:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_DraggingSession_WillBeginAtPoint_ForItemsAtIndexPaths(handle func(o objc.ProtocolBase, collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, indexPaths foundation.Set)) {
objc.AddMethod(c.class, objc.SEL("collectionView:draggingSession:willBeginAtPoint:forItemsAtIndexPaths:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_DraggingSession_EndedAtPoint_DragOperation(handle func(o objc.ProtocolBase, collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, operation DragOperation)) {
objc.AddMethod(c.class, objc.SEL("collectionView:draggingSession:endedAtPoint:dragOperation:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_UpdateDraggingItemsForDrag(handle func(o objc.ProtocolBase, collectionView CollectionView, draggingInfo objc.Object)) {
objc.AddMethod(c.class, objc.SEL("collectionView:updateDraggingItemsForDrag:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_ValidateDrop_ProposedIndexPath_DropOperation(handle func(o objc.ProtocolBase, collectionView CollectionView, draggingInfo objc.Object, proposedDropIndexPath *foundation.IndexPath, proposedDropOperation *CollectionViewDropOperation) DragOperation) {
objc.AddMethod(c.class, objc.SEL("collectionView:validateDrop:proposedIndexPath:dropOperation:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_AcceptDrop_IndexPath_DropOperation(handle func(o objc.ProtocolBase, collectionView CollectionView, draggingInfo objc.Object, indexPath foundation.IndexPath, dropOperation CollectionViewDropOperation) bool) {
objc.AddMethod(c.class, objc.SEL("collectionView:acceptDrop:indexPath:dropOperation:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_CanDragItemsAtIndexes_WithEvent(handle func(o objc.ProtocolBase, collectionView CollectionView, indexes foundation.IndexSet, event Event) bool) {
objc.AddMethod(c.class, objc.SEL("collectionView:canDragItemsAtIndexes:withEvent:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_PasteboardWriterForItemAtIndex(handle func(o objc.ProtocolBase, collectionView CollectionView, index uint) objc.IObject) {
objc.AddMethod(c.class, objc.SEL("collectionView:pasteboardWriterForItemAtIndex:"), handle)
}
// deprecated
func (c *CollectionViewDelegateCreator) SetCollectionView_WriteItemsAtIndexes_ToPasteboard(handle func(o objc.ProtocolBase, collectionView CollectionView, indexes foundation.IndexSet, pasteboard Pasteboard) bool) {
objc.AddMethod(c.class, objc.SEL("collectionView:writeItemsAtIndexes:toPasteboard:"), handle)
}
// deprecated
func (c *CollectionViewDelegateCreator) SetCollectionView_NamesOfPromisedFilesDroppedAtDestination_ForDraggedItemsAtIndexes(handle func(o objc.ProtocolBase, collectionView CollectionView, dropURL foundation.URL, indexes foundation.IndexSet) []string) {
objc.AddMethod(c.class, objc.SEL("collectionView:namesOfPromisedFilesDroppedAtDestination:forDraggedItemsAtIndexes:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_DraggingImageForItemsAtIndexes_WithEvent_Offset(handle func(o objc.ProtocolBase, collectionView CollectionView, indexes foundation.IndexSet, event Event, dragImageOffset *foundation.Point) IImage) {
objc.AddMethod(c.class, objc.SEL("collectionView:draggingImageForItemsAtIndexes:withEvent:offset:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_DraggingSession_WillBeginAtPoint_ForItemsAtIndexes(handle func(o objc.ProtocolBase, collectionView CollectionView, session DraggingSession, screenPoint foundation.Point, indexes foundation.IndexSet)) {
objc.AddMethod(c.class, objc.SEL("collectionView:draggingSession:willBeginAtPoint:forItemsAtIndexes:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_ValidateDrop_ProposedIndex_DropOperation(handle func(o objc.ProtocolBase, collectionView CollectionView, draggingInfo objc.Object, proposedDropIndex *int, proposedDropOperation *CollectionViewDropOperation) DragOperation) {
objc.AddMethod(c.class, objc.SEL("collectionView:validateDrop:proposedIndex:dropOperation:"), handle)
}
func (c *CollectionViewDelegateCreator) SetCollectionView_AcceptDrop_Index_DropOperation(handle func(o objc.ProtocolBase, collectionView CollectionView, draggingInfo objc.Object, index int, dropOperation CollectionViewDropOperation) bool) {
objc.AddMethod(c.class, objc.SEL("collectionView:acceptDrop:index:dropOperation:"), handle)
}
func (c *CollectionViewDelegateCreator) Create() objc.ProtocolBase {
return objc.ProtocolBase{Object: c.class.CreateInstance(0)}
}