comparison src/X_supp.h @ 78:3645e29e4986

Add runtime for Xlib.
author Thinker K.F. Li <thinker@branda.to>
date Wed, 20 Aug 2008 23:33:04 +0800
parents
children ea758bb3bbe2
comparison
equal deleted inserted replaced
77:a6763f080da5 78:3645e29e4986
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