initial commit

This commit is contained in:
jettis
2024-12-05 20:49:37 +02:00
commit 688def7e01
235 changed files with 3334 additions and 0 deletions

26
NewDialogs/Listbox.h Normal file
View 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