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

Method setCell

src/components/ComponentListComponent.cpp:126–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void ComponentListComponent::setCell(unsigned int x, unsigned int y, ComponentEntry* entry)
127{
128 if(x >= (unsigned int)mGridSize.x() || y >= (unsigned int)mGridSize.y())
129 {
130 LOG(LogError) << "Invalid setCell - position " << x << ", " << y << " out of bounds!";
131 return;
132 }
133
134 mGrid[y * mGridSize.x() + x] = entry;
135}
136
137ComponentListComponent::ComponentEntry* ComponentListComponent::getCell(unsigned int x, unsigned int y)
138{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected