Standard CellProvider API

The LibQTip :CreateCellProvider allows to easy creation of new CellProviders.

The created CellProvider implements an internal heap to recycle the cells and allows additional methods to be present in the Cell prototype.

Additional provider methods

:IterateCells()

Return an iterator on currently acquired cells.

Return value

cellIterator
iterator - an iterator to be used in a "for in" loop.

Cell optional methods

:InitializeCell()

This method is called once on newly created Cells. It should be called to do one-time initialization.

By example, the default LabelProvider uses this method to create the cell FontString object.

:ReleaseCell()

This method is called each time a Cell is about to be put in the provider heap. This method should be used to do some cleanup.


Comments

Posts Quoted:
Reply
Clear All Quotes