x_defs.h 550 Bytes
Newer Older
1 2 3 4
#ifndef _X_DEFS_H_
#define _X_DEFS_H_

#include <X11/Xlib.h>
Cedric Roux's avatar
Cedric Roux committed
5
#include <Xft.h>
6 7 8 9

struct x_connection {
  Display *d;
  GC *colors;
Cedric Roux's avatar
Cedric Roux committed
10
  XftColor *xft_colors;
11
  int ncolors;
12 13 14
  XPoint *pts;
  int pts_size;
  int pts_maxsize;
Cedric Roux's avatar
Cedric Roux committed
15 16
  XftFont **fonts;
  int nfonts;
17 18 19 20 21 22 23
};

struct x_window {
  Window w;
  Pixmap p;
  int width;
  int height;
Cedric Roux's avatar
Cedric Roux committed
24
  XftDraw *xft;
25 26 27 28 29 30
  /* below: internal data used for X events handling */
  int redraw;
  int repaint;
  int resize, new_width, new_height;
};

Cedric Roux's avatar
Cedric Roux committed
31 32 33 34 35 36
struct x_image {
  Pixmap p;
  int width;
  int height;
};

37
#endif /* _X_DEFS_H_ */