2021-11-22 17:29:33 +01:00
|
|
|
#ifndef _GRAPH_SUP_H
|
|
|
|
#define _GRAPH_SUP_H
|
|
|
|
|
2021-11-24 10:24:18 +01:00
|
|
|
struct Button {
|
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
int w;
|
|
|
|
int h;
|
|
|
|
char* id;
|
|
|
|
struct Button* next;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct Button button;
|
|
|
|
|
|
|
|
extern button* Buttons;
|
|
|
|
extern int BT_Count;
|
|
|
|
|
|
|
|
void clearButtons();
|
|
|
|
char* GetButton(int x, int y);
|
|
|
|
void AddButton(int x, int y, int w, int h, char* id);
|
|
|
|
|
2021-11-22 17:29:33 +01:00
|
|
|
int RegisterInputs(char * screen);
|
|
|
|
|
|
|
|
int DrawNextFrame(void);
|
|
|
|
|
|
|
|
#endif
|