2022-11-23 17:07:29 +01:00
|
|
|
#ifndef MAIN_H
|
|
|
|
#define MAIN_H
|
|
|
|
|
|
|
|
#include<graph.h>
|
|
|
|
|
2022-11-26 20:59:57 +01:00
|
|
|
#define WINDOW_WIDTH 1250
|
|
|
|
#define WINDOW_HEIGHT 750
|
|
|
|
|
2022-11-23 17:07:29 +01:00
|
|
|
typedef struct {
|
|
|
|
int x, y, L, H;
|
2022-11-29 14:46:14 +01:00
|
|
|
} zone;
|
2022-11-23 17:07:29 +01:00
|
|
|
|
2022-11-29 14:46:14 +01:00
|
|
|
int check_zone(zone z, int x, int y);
|
2022-11-23 17:07:29 +01:00
|
|
|
|
2022-11-29 14:46:14 +01:00
|
|
|
void dessiner_bouton(zone z, char* texte, couleur arriere_plan, couleur bordure, couleur couleur_texte, int taille_texte);
|
2022-11-23 17:07:29 +01:00
|
|
|
|
2022-11-29 14:46:14 +01:00
|
|
|
void dessiner_zone(zone z);
|
2022-11-23 17:07:29 +01:00
|
|
|
|
|
|
|
#endif
|