mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-28 09:05:38 +00:00
34 lines
454 B
C++
34 lines
454 B
C++
|
#include "GuiList.h"
|
||
|
|
||
|
GuiList::GuiList()
|
||
|
{
|
||
|
mSelection = 0;
|
||
|
}
|
||
|
|
||
|
void GuiList::onRender()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
void GuiList::addObject(std::string name, void* obj)
|
||
|
{
|
||
|
mNameVector.push_back(name);
|
||
|
mPointerVector.push_back(obj);
|
||
|
}
|
||
|
|
||
|
void GuiList::clearObjects()
|
||
|
{
|
||
|
mNameVector.clear();
|
||
|
mPointerVector.clear();
|
||
|
}
|
||
|
|
||
|
std::string GuiList::getSelectedName()
|
||
|
{
|
||
|
return mNameVector.at(mSelection);
|
||
|
}
|
||
|
|
||
|
void* GuiList::getSelectedObject()
|
||
|
{
|
||
|
return mPointerVector.at(mSelection);
|
||
|
}
|