Mercurial > MadButterfly
view 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 |
line wrap: on
line source
#ifndef __X_SUPP_H_ #define __X_SUPP_H_ #include <X11/Xlib.h> #include "mb_timer.h" #include "redraw_man.h" typedef struct _X_MB_runtime X_MB_runtime_t; struct _X_MB_runtime { Display *display; Window win; Visual *visual; cairo_surface_t *surface, *backend_surface; cairo_t *cr, *backend_cr; redraw_man_t *rdman; mb_tman_t *tman; int w, h; }; extern void X_MB_handle_connection(Display *display, redraw_man_t *rdman, mb_tman_t *tman); extern int X_MB_init(const char *display_name, int w, int h, X_MB_runtime_t *xmb_rt); extern void X_MB_destroy(X_MB_runtime_t *xmb_rt); #endif