- Add CMakeLists.txt to build all T tracer user tools - Previous Makefiles are retained in common/utils/T: you can do $ cd common/utils/T/tracer $ make # all executables are there or also $ mkdir build && cd build $ cmake .. -GNinja $ ninja T_tools # all executables are in build/common/utils/T/tracer
38 lines
558 B
C
38 lines
558 B
C
#ifndef _X_DEFS_H_
|
|
#define _X_DEFS_H_
|
|
|
|
#include <X11/Xlib.h>
|
|
#include <X11/Xft/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_ */
|