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

The CollectionView data source protocol. More...

#include <CollectionView.h>

Data Fields

size_t(* numberOfItems )(const CollectionView *collectionView)
 
ident(* objectForItemAtIndexPath )(const CollectionView *collectionView, const IndexPath *indexPath)
 Called by the CollectionView for the associated object of an item. More...
 
ident self
 The data source self-reference. More...
 

Detailed Description

The CollectionView data source protocol.

Definition at line 63 of file CollectionView.h.

Field Documentation

◆ numberOfItems

size_t(* CollectionViewDataSource::numberOfItems) (const CollectionView *collectionView)
Parameters
collectionViewThe CollectionView.
Returns
The number of items in the CollectionView.

Definition at line 74 of file CollectionView.h.

◆ objectForItemAtIndexPath

ident(* CollectionViewDataSource::objectForItemAtIndexPath) (const CollectionView *collectionView, const IndexPath *indexPath)

Called by the CollectionView for the associated object of an item.

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

Definition at line 82 of file CollectionView.h.

◆ self

ident CollectionViewDataSource::self

The data source self-reference.

Definition at line 68 of file CollectionView.h.


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