MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / getCell

Method getCell

src/components/ComponentListComponent.cpp:137–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137ComponentListComponent::ComponentEntry* ComponentListComponent::getCell(unsigned int x, unsigned int y)
138{
139 if(x >= (unsigned int)mGridSize.x() || y >= (unsigned int)mGridSize.y())
140 {
141 LOG(LogError) << "Invalid getCell - position " << x << ", " << y << " out of bounds!";
142 return NULL;
143 }
144
145 return mGrid[y * mGridSize.x() + x];
146}
147
148void ComponentListComponent::updateSize()
149{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected