ObjectivelyMVC 0.1.0
Object oriented MVC framework for OpenGL, SDL2 and GNU C
Data Fields
CollectionViewDelegate Struct Reference

The CollectionView delegate protocol. More...

#include <CollectionView.h>

Data Fields

void(* didModifySelection )(CollectionView *collectionView, const Array *selectionIndexPaths)
 Called by the CollectionView when items are selected or deselected. More...
 
CollectionItemView *(* itemForObjectAtIndexPath )(const CollectionView *collectionView, const IndexPath *indexPath)
 Called by the CollectionView to instantiate items. More...
 
ident self
 The delegate self-reference. More...
 

Detailed Description

The CollectionView delegate protocol.

Definition at line 89 of file CollectionView.h.

Field Documentation

◆ didModifySelection

void(* CollectionViewDelegate::didModifySelection) (CollectionView *collectionView, const Array *selectionIndexPaths)

Called by the CollectionView when items are selected or deselected.

Parameters
collectionViewThe CollectionView.
selectionIndexPathsThe index paths of the current selection.
Remarks
This function is optional.

Definition at line 102 of file CollectionView.h.

◆ itemForObjectAtIndexPath

CollectionItemView *(* CollectionViewDelegate::itemForObjectAtIndexPath) (const CollectionView *collectionView, const IndexPath *indexPath)

Called by the CollectionView to instantiate items.

Parameters
collectionViewThe CollectionView.
indexPathThe index path.
Returns
The item for the index path.

Definition at line 110 of file CollectionView.h.

◆ self

ident CollectionViewDelegate::self

The delegate self-reference.

Definition at line 94 of file CollectionView.h.


The documentation for this struct was generated from the following file: