cocos2d-x  2.2.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCTableViewDataSource Class Referenceabstract

#include <CCTableView.h>

Public Member Functions

virtual ~CCTableViewDataSource ()
virtual CCSize tableCellSizeForIndex (CCTableView *table, unsigned int idx)
 cell size for a given index More...
 
virtual CCSize cellSizeForTable (CCTableView *table)
 cell height for a given table. More...
 
virtual CCTableViewCelltableCellAtIndex (CCTableView *table, unsigned int idx)=0
 a cell instance at a given index More...
 
virtual unsigned int numberOfCellsInTableView (CCTableView *table)=0
 Returns number of cells in a given table view. More...
 

Constructor & Destructor Documentation

virtual ~CCTableViewDataSource ( )
inlinevirtual

Member Function Documentation

virtual CCSize cellSizeForTable ( CCTableView table)
inlinevirtual

cell height for a given table.

Parameters
tabletable to hold the instances of Class
Returns
cell size
virtual unsigned int
numberOfCellsInTableView
( CCTableView table)
pure virtual

Returns number of cells in a given table view.

Returns
number of cells
virtual CCTableViewCell*
tableCellAtIndex
( CCTableView table,
unsigned int  idx 
)
pure virtual

a cell instance at a given index

Parameters
idxindex to search for a cell
Returns
cell found at idx
virtual CCSize
tableCellSizeForIndex
( CCTableView table,
unsigned int  idx 
)
inlinevirtual

cell size for a given index

Parameters
idxthe index of a cell to get a size
Returns
size of a cell at given index

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