APL/APL1.1/SAE11_2021/graph_sup.h

32 lines
581 B
C
Raw Normal View History

2021-11-22 17:29:33 +01:00
#ifndef _GRAPH_SUP_H
#define _GRAPH_SUP_H
2021-12-04 00:08:27 +01:00
#define WIDTH 1200
#define HEIGHT 700
2021-11-24 10:24:18 +01:00
struct Button {
int x;
int y;
int w;
int h;
2021-11-26 12:14:37 +01:00
int id;
2021-11-24 10:24:18 +01:00
};
typedef struct Button button;
extern button* Buttons;
extern int BT_Count;
2021-11-29 00:31:21 +01:00
void ClearButtons();
2021-11-26 12:14:37 +01:00
int GetButton(int x, int y);
void AddButton(int x, int y, int w, int h, int id);
2021-11-22 17:29:33 +01:00
int DrawNextFrame(void);
2021-11-26 12:14:37 +01:00
couleur GetColorN(char* name);
couleur GetColor(unsigned char r, unsigned char g, unsigned char b);
2021-11-29 00:31:21 +01:00
void SetColor(unsigned char r, unsigned char g, unsigned char b);
void SetColorC(couleur Color);
void SetColorN(char* name);
2021-11-26 12:14:37 +01:00
2021-11-22 17:29:33 +01:00
#endif