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