|
resonance 1.0.1
|
Mix-in for an object that supplies the rows of a scrolling list to the screen that draws it. More...
#include <listdataprovider.h>

Public Member Functions | |
| virtual | ~ListDataProvider () |
| virtual int | ProvideText (int nItem, int nColumn, Rnd::Text *pText, int nContext)=0 |
| Fill one Text cell of a visible row. | |
| virtual int | ProvideMesh (int nItem, int nColumn, Rnd::Mesh *pMesh, int nContext)=0 |
| Fill one Mesh cell of a visible row. | |
Mix-in for an object that supplies the rows of a scrolling list to the screen that draws it.
Its RTTI descriptor is at 0x0086f760. It is a leaf class with no base. The class declares no data member. The subobject is therefore the four-byte compiler-generated vptr at offset 0. MetMCFreqDelScreen proves the width directly, listing MemcardUser at +140, ListDataProvider at +144, and MetMemCardPickerUser at +148.
Five classes derive from the class. MetFreqMakerDirectionsScreen, MetJukeboxBaseScreen, and MetRemixLoadScreen place the subobject at +140, MetMCFreqDelScreen at +144, and MetRemixDelScreen at +232.
The four-entry vtable at 0x007ec830 runs GetTypeInfo, the destructor, then two entries that both store the __pure_virtual handler at 0x005381a8, which is why ProvideText() and ProvideMesh() are pure. ScrollingList is the one caller of both. It walks the cells of each visible row and passes a Text cell to ProvideText() and a Mesh cell to ProvideMesh(), and discards the result of both. The two method names are inferred from that use.
The destructor at 0x002247f0 restores the vptr and releases the object through the scalar release path at 0x004a9230 when its __in_chrg argument is odd, which is the whole of its body.
|
virtual |
|
pure virtual |
Fill one Text cell of a visible row.
Slot 2.
| nItem | The index of the item the row shows. |
| nColumn | The index of the cell within its row. |
| pText | The cell. |
| nContext | The value the ScrollingList was constructed with. |
Implemented in MetFreqMakerDirectionsScreen, MetJukeboxBaseScreen, MetJukeboxEditPlaylistScreen, MetMCFreqDelScreen, MetRemixDelScreen, and MetRemixLoadScreen.
|
pure virtual |
Fill one Mesh cell of a visible row.
Slot 3.
Every override in the image is empty and returns either 0 or 1.
| nItem | The index of the item the row shows. |
| nColumn | The index of the cell within its row. |
| pMesh | The cell. |
| nContext | The value the ScrollingList was constructed with. |
Implemented in MetFreqMakerDirectionsScreen, MetJukeboxBaseScreen, MetMCFreqDelScreen, MetRemixDelScreen, and MetRemixLoadScreen.