initial commit
This commit is contained in:
26
NewDialogs/Listbox.h
Normal file
26
NewDialogs/Listbox.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef LISTBOX
|
||||
#define LISTBOX
|
||||
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
|
||||
#include "Item.h"
|
||||
|
||||
class Listbox : public Item {
|
||||
private:
|
||||
vector<string> list;
|
||||
int selected;
|
||||
int item_size;
|
||||
void (*value_changed_func)(void *p);
|
||||
void *p;
|
||||
public:
|
||||
Listbox(vector<string> list, int item_size, SDL_Rect pos);
|
||||
~Listbox();
|
||||
void drawListbox();
|
||||
bool onMousePress(int x, int y);
|
||||
void setValueChangedFunc(void (*value_changed_func)(void *p), void *p);
|
||||
int getSelected();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user