1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef _X_DEFS_H_
#define _X_DEFS_H_
#include <X11/Xlib.h>
#include <Xft.h>
struct x_connection {
Display *d;
GC *colors;
XftColor *xft_colors;
int ncolors;
XPoint *pts;
int pts_size;
int pts_maxsize;
XftFont **fonts;
int nfonts;
};
struct x_window {
Window w;
Pixmap p;
int width;
int height;
XftDraw *xft;
/* below: internal data used for X events handling */
int redraw;
int repaint;
int resize, new_width, new_height;
};
struct x_image {
Pixmap p;
int width;
int height;
};
#endif /* _X_DEFS_H_ */