00001 #ifndef __X_SUPP_H_ 00002 #define __X_SUPP_H_ 00003 00004 #include <X11/Xlib.h> 00005 #include "mb_types.h" 00006 #include "mb_timer.h" 00007 #include "mb_redraw_man.h" 00008 00009 /*! \ingroup xkb 00010 * @{ 00011 */ 00012 typedef struct _X_kb_info X_kb_info_t; 00013 00014 struct _X_kb_event { 00015 event_t event; 00016 int keycode; 00017 int sym; 00018 }; 00019 typedef struct _X_kb_event X_kb_event_t; 00020 00021 /* @} */ 00022 00023 typedef struct _X_MB_runtime X_MB_runtime_t; 00024 00025 extern void X_MB_handle_connection(X_MB_runtime_t *rt); 00026 extern X_MB_runtime_t *X_MB_new(const char *display_name, int w, int h); 00027 extern void X_MB_free(X_MB_runtime_t *xmb_rt); 00028 00029 extern subject_t *X_MB_kbevents(X_MB_runtime_t *xmb_rt); 00030 extern redraw_man_t *X_MB_rdman(X_MB_runtime_t *xmb_rt); 00031 extern mb_tman_t *X_MB_tman(X_MB_runtime_t *xmb_rt); 00032 extern ob_factory_t *X_MB_ob_factory(X_MB_runtime_t *xmb_rt); 00033 00034 #endif