Mercurial > MadButterfly
comparison src/X_supp.h @ 83:ea758bb3bbe2
example
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 22 Aug 2008 00:12:04 +0800 |
parents | 3645e29e4986 |
children | 17e97e92b76e |
comparison
equal
deleted
inserted
replaced
82:4bb6451ef036 | 83:ea758bb3bbe2 |
---|---|
1 #ifndef __X_SUPP_H_ | 1 #ifndef __X_SUPP_H_ |
2 #define __X_SUPP_H_ | 2 #define __X_SUPP_H_ |
3 | 3 |
4 #include <X11/Xlib.h> | 4 #include <X11/Xlib.h> |
5 #include "mb_types.h" | |
5 #include "mb_timer.h" | 6 #include "mb_timer.h" |
6 #include "redraw_man.h" | 7 #include "redraw_man.h" |
7 | 8 |
8 typedef struct _X_MB_runtime X_MB_runtime_t; | 9 typedef struct _X_MB_runtime X_MB_runtime_t; |
9 struct _X_MB_runtime { | 10 struct _X_MB_runtime { |
13 cairo_surface_t *surface, *backend_surface; | 14 cairo_surface_t *surface, *backend_surface; |
14 cairo_t *cr, *backend_cr; | 15 cairo_t *cr, *backend_cr; |
15 redraw_man_t *rdman; | 16 redraw_man_t *rdman; |
16 mb_tman_t *tman; | 17 mb_tman_t *tman; |
17 int w, h; | 18 int w, h; |
19 | |
20 /* States */ | |
21 shape_t *last; | |
18 }; | 22 }; |
19 | 23 |
20 extern void X_MB_handle_connection(Display *display, | 24 extern void X_MB_handle_connection(X_MB_runtime_t *rt); |
21 redraw_man_t *rdman, | |
22 mb_tman_t *tman); | |
23 extern int X_MB_init(const char *display_name, | 25 extern int X_MB_init(const char *display_name, |
24 int w, int h, X_MB_runtime_t *xmb_rt); | 26 int w, int h, X_MB_runtime_t *xmb_rt); |
25 extern void X_MB_destroy(X_MB_runtime_t *xmb_rt); | 27 extern void X_MB_destroy(X_MB_runtime_t *xmb_rt); |
26 | 28 |
27 | 29 |