Mercurial > MadButterfly
view src/X_supp.h @ 90:bd29780bf266
Reduce redundant code
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sat, 23 Aug 2008 22:23:44 +0800 |
parents | ea758bb3bbe2 |
children | 17e97e92b76e |
line wrap: on
line source
#ifndef __X_SUPP_H_ #define __X_SUPP_H_ #include <X11/Xlib.h> #include "mb_types.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; /* States */ shape_t *last; }; extern void X_MB_handle_connection(X_MB_runtime_t *rt); 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