Xchars header file


////////////////// Xchars header file ///////////////////////
enum { NOTFOUND=0,CONTINUE,EXIT,QUIT,SUCCESS,ERROR};
typedef int EntryType(int*,void**);

typedef struct XCHARS {
int x,y,width,height;
int font_dx;
int font_dy;
char * str;
xcb_gcontext_t gc;
struct XCHARS * xchars;
} XCHARS;
// Everything needed to draw text
// every conncdtion as one and they link
typedef struct XCB {
xcb_connection_t *conn;
xcb_screen_t *screen;
xcb_window_t  win;
xcb_gcontext_t gc;
xcb_void_cookie_t cookie;
uint32_t values[4];
uint32_t mask;
XCHARS * xchars;
char * fontname;
struct XCB * xcb;
} XCB;
typedef int XcbType(XCB *);
typedef struct{
XcbType * Connect;
XcbType * Window;
XcbType * GC;
XcbType * SetGC;
XcbType * Font;
XcbType * RGB;
XcbType * Text;
} XcbTypes ;
typedef union {
unsigned long l;
unsigned int i[2];
char * s;
void * vp;
EntryType * entry;
char txt[8];
xcb_font_t font;
xcb_screen_t *screen;
xcb_connection_t *conn;
XCHARS *xchars;
struct  Sym * sym;
xcb_window_t win;
xcb_gcontext_t gc;
XCB * xcb;
} Val;


No comments: