Cocos2d-x  v3.10
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups
TableViewDataSource Class Referenceabstract

Data source that governs table backend data. More...

Public Member Functions

virtual Size tableCellSizeForIndex (TableView *table, ssize_t idx)
 cell size for a given index More...
 
local tableCellSizeForIndex ( local table, local idx)
 cell size for a given index More...
 
virtual Size cellSizeForTable (TableView *table)
 cell height for a given table. More...
 
virtual TableViewCelltableCellAtIndex (TableView *table, ssize_t idx)=0
 A cell instance at a given index. More...
 
local tableCellAtIndex ( local table, local idx)
 A cell instance at a given index. More...
 
virtual ssize_t numberOfCellsInTableView (TableView *table)=0
 Returns number of cells in a given table view. More...
 

Detailed Description

Data source that governs table backend data.

Member Function Documentation

virtual Size tableCellSizeForIndex ( TableView table,
ssize_t  idx 
)
inlinevirtual

cell size for a given index

Parameters
tableThe table view
idxthe index of a cell to get a size
Returns
size of a cell at given index
var tableCellSizeForIndex ( var  table,
var  idx 
)
inlinevirtual

cell size for a given index

Parameters
tableThe table view
idxthe index of a cell to get a size
Returns
size of a cell at given index
local tableCellSizeForIndex ( local  table,
local  idx 
)
inlinevirtual

cell size for a given index

Parameters
tableThe table view
idxthe index of a cell to get a size
Returns
size of a cell at given index
virtual Size cellSizeForTable ( TableView table)
inlinevirtual

cell height for a given table.

Parameters
tabletable to hold the instances of Class
Returns
cell size
var cellSizeForTable ( var  table)
inlinevirtual

cell height for a given table.

Parameters
tabletable to hold the instances of Class
Returns
cell size
local cellSizeForTable ( local  table)
inlinevirtual

cell height for a given table.

Parameters
tabletable to hold the instances of Class
Returns
cell size
virtual TableViewCell*
tableCellAtIndex
( TableView table,
ssize_t  idx 
)
pure virtual

A cell instance at a given index.

Parameters
tableThe table view
idxindex to search for a cell
Returns
cell found at idx
var tableCellAtIndex ( var  table,
var  idx 
)
pure virtual

A cell instance at a given index.

Parameters
tableThe table view
idxindex to search for a cell
Returns
cell found at idx
local tableCellAtIndex ( local  table,
local  idx 
)
pure virtual

A cell instance at a given index.

Parameters
tableThe table view
idxindex to search for a cell
Returns
cell found at idx
virtual ssize_t
numberOfCellsInTableView
( TableView table)
pure virtual

Returns number of cells in a given table view.

Returns
number of cells
var numberOfCellsInTableView ( var  table)
pure virtual

Returns number of cells in a given table view.

Returns
number of cells
local numberOfCellsInTableView ( local  table)
pure virtual

Returns number of cells in a given table view.

Returns
number of cells

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