mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-28 00:55:39 +00:00
28 lines
460 B
C
28 lines
460 B
C
|
#ifndef _GUILIST_H_
|
||
|
#define _GUILIST_H_
|
||
|
|
||
|
#include "../Renderer.h"
|
||
|
#include "../GuiComponent.h"
|
||
|
#include <vector>
|
||
|
#include <string>
|
||
|
|
||
|
class GuiList : public GuiComponent
|
||
|
{
|
||
|
public:
|
||
|
GuiList();
|
||
|
|
||
|
void onRender();
|
||
|
|
||
|
void addObject(std::string name, void* obj);
|
||
|
void clearObjects();
|
||
|
|
||
|
std::string getSelectedName();
|
||
|
void* getSelectedObject();
|
||
|
private:
|
||
|
std::vector<std::string> mNameVector;
|
||
|
std::vector<void*> mPointerVector;
|
||
|
unsigned int mSelection;
|
||
|
};
|
||
|
|
||
|
#endif
|