78
|
1 #ifndef __X_SUPP_H_
|
|
2 #define __X_SUPP_H_
|
|
3
|
|
4 #include <X11/Xlib.h>
|
83
|
5 #include "mb_types.h"
|
78
|
6 #include "mb_timer.h"
|
|
7 #include "redraw_man.h"
|
|
8
|
|
9 typedef struct _X_MB_runtime X_MB_runtime_t;
|
|
10 struct _X_MB_runtime {
|
|
11 Display *display;
|
|
12 Window win;
|
|
13 Visual *visual;
|
|
14 cairo_surface_t *surface, *backend_surface;
|
|
15 cairo_t *cr, *backend_cr;
|
|
16 redraw_man_t *rdman;
|
|
17 mb_tman_t *tman;
|
|
18 int w, h;
|
83
|
19
|
|
20 /* States */
|
|
21 shape_t *last;
|
78
|
22 };
|
|
23
|
83
|
24 extern void X_MB_handle_connection(X_MB_runtime_t *rt);
|
78
|
25 extern int X_MB_init(const char *display_name,
|
|
26 int w, int h, X_MB_runtime_t *xmb_rt);
|
|
27 extern void X_MB_destroy(X_MB_runtime_t *xmb_rt);
|
|
28
|
|
29
|
|
30 #endif
|