resonance 1.0.1
Loading...
Searching...
No Matches
ListDataProvider Class Referenceabstract

Mix-in for an object that supplies the rows of a scrolling list to the screen that draws it. More...

#include <listdataprovider.h>

Inheritance diagram for ListDataProvider:

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~ListDataProvider()

virtual ListDataProvider::~ListDataProvider ( )
virtual
Ghidra address:
NTSC-U/C: 0x002247f0
Ghidra address:
PAL: 0x00237758

Member Function Documentation

◆ ProvideText()

virtual int ListDataProvider::ProvideText ( int nItem,
int nColumn,
Rnd::Text * pText,
int nContext )
pure virtual

Fill one Text cell of a visible row.

Slot 2.

Parameters
nItemThe index of the item the row shows.
nColumnThe index of the cell within its row.
pTextThe cell.
nContextThe value the ScrollingList was constructed with.
Returns
A status, which ScrollingList discards. Every override returns 1.

Implemented in MetFreqMakerDirectionsScreen, MetJukeboxBaseScreen, MetJukeboxEditPlaylistScreen, MetMCFreqDelScreen, MetRemixDelScreen, and MetRemixLoadScreen.

◆ ProvideMesh()

virtual int ListDataProvider::ProvideMesh ( int nItem,
int nColumn,
Rnd::Mesh * pMesh,
int nContext )
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.

Parameters
nItemThe index of the item the row shows.
nColumnThe index of the cell within its row.
pMeshThe cell.
nContextThe value the ScrollingList was constructed with.
Returns
A status, which ScrollingList discards.

Implemented in MetFreqMakerDirectionsScreen, MetJukeboxBaseScreen, MetMCFreqDelScreen, MetRemixDelScreen, and MetRemixLoadScreen.


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