-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgluefe.h
54 lines (44 loc) · 1.21 KB
/
gluefe.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef PUZZLES_GLUEFE_H
#define PUZZLES_GLUEFE_H
struct frontend {
struct preset_menu *preset_menu;
int printw, printh;
drawing *printdr;
int next_blitter_id;
float scale;
config_item *configs;
config_item *prefs;
void *canvas;
void *statusbar;
void *timer;
};
struct frontend_adapter {
void(*get_random_seed)(void **randseed, int *randseedsize);
char*(*getenv)(const char *key);
void(*frontend_default_colour)(frontend *fe, float *output);
void(*fatal)(const char *msg);
#ifdef DEBUGGING
void(*debugout)(const char *msg);
#endif
void(*deactivate_timer)(frontend *fe);
void(*activate_timer)(frontend *fe);
void(*check_abort)(void);
};
struct blitter {
int handle;
/* The size of the blitter bitmap */
int w, h;
/* The actual size of the last saved bitmap */
int rw, rh;
/* The position of the last saved bitmap in the window */
int x, y;
};
void get_random_seed(void **randseed, int *randseedsize);
char *getenv(const char *key);
void frontend_default_colour(frontend *fe, float *output);
void fatal(const char *fmt, ...);
void deactivate_timer(frontend *fe);
void activate_timer(frontend *fe);
void check_abort(void);
void set_frontend_adapter(struct frontend_adapter *fea);
#endif /* PUZZLES_GLUEFE_H */