This file is indexed.

/usr/share/z88dk/include/x11/Xz88dk.h is in z88dk-data 1.8.ds1-10.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/* $Id: Xz88dk.h,v 1.1 2007/12/21 08:04:23 stefano Exp $ */

#ifndef _XZ88DK_H_
#define _XZ88DK_H_

#include <X11/Xlib.h>
//#include <graphics.h>
//#include <games.h>


//#include <stdio.h>


#ifdef _BUILDING_X

  extern int _x_proportional;
  extern int _y_proportional;
  extern char *_xchar_proportional;
  extern int _X_int1;
  extern int _X_int2;
  extern int _X_int3;

  extern int _x_must_expose;

#else

  int _x_proportional;
  int _y_proportional;
  char *_xchar_proportional;
  int _X_int1;
  int _X_int2;
  int _X_int3;

  int _x_must_expose=1;

#endif


/* Base X objects */

extern struct _XDisplay __LIB__ *XOpenDisplay(char *display_name);
extern void __LIB__ XCloseDisplay(struct _XDisplay *display);

extern int __LIB__ DefaultScreen(struct _XDisplay *display);

extern int __LIB__ RootWindow(struct _XDisplay *display,int screen);

extern Window __LIB__ XCreateSimpleWindow(struct _XDisplay *display, Window rootwindow, int x, int y, int width, int height, int border_width, int forecolor, int backcolor);
extern int __LIB__ XDestroyWindow(struct _XDisplay *display, Window win);

extern struct GC __LIB__ *XCreateGC(struct _XDisplay *display, Window win, int valuemask, int values);
extern void __LIB__ XFreeGC(struct _XDisplay *display, struct _XGC gc);

/* Base X objects properties */
extern char __LIB__ *XDisplayName(char *display_name);
extern int __LIB__ DisplayWidth(struct _XDisplay *display,int screen);
extern int __LIB__ DisplayHeight(struct _XDisplay *display,int screen);
extern int __LIB__ DefaultDepth(struct _XDisplay *display,int screen);
extern int __LIB__ BlackPixel(struct _XDisplay *display, int screen);
extern int __LIB__ WhitePixel(struct _XDisplay *display, int screen);

extern void __LIB__ XMapWindow(struct _XDisplay *display, Window win);

extern void __LIB__ XSetForeground(struct _XDisplay *display, struct _XGC gc, int color);
extern void __LIB__ XSetLineAttributes(struct _XDisplay *display, struct _XGC gc, int line_width, int line_style, int cap_style, int join_style);
extern void __LIB__ XSetDashes(struct _XDisplay *display, struct _XGC gc, int dash_offset, int dash_list, int list_length);
extern void __LIB__ XSetStandardProperties(struct _XDisplay *display, Window win, char *window_name, char *icon_name, char *icon_pixmap, char *argv, int argc, int size_hints);


/* Events */

extern void __LIB__ XSelectInput(struct _XDisplay *display, Window win, int event_mask);
extern void __LIB__ XNextEvent(struct _XDisplay *display, int *event);
extern Bool __LIB__ XCheckWindowEvent(struct _XDisplay *display, Window win, int event_mask, int event);
extern int __LIB__ XCheckTypedEvent(struct _XDisplay *display, int type, int event);
extern int __LIB__ XFlush(struct _XDisplay *display);


/* Text handling */

extern int __LIB__ XTextWidth(struct _XFontStruct *font_struct, char *string, int count);
extern struct _XFontStruct __LIB__ XLoadQueryFont(struct _XDisplay *display, char *fontname);
extern void __LIB__ XDrawString(struct _XDisplay *display, Window win, struct _XGC gc, int x, int y, char *text, int textlen);

extern void  __LIB__ XUnloadFont(struct _XDisplay *display, Font font);
extern void  __LIB__ XSetFont(struct _XDisplay *display, struct _XGC gc, Font font);


/* Pictures handling */

extern Pixmap __LIB__ XCreateBitmapFromData(struct _XDisplay *display, Window win, char *bits, int width, int height);


/* Graphics drawing functions */

// It could even work, but the window positioning offset !
//#define XDrawRectangle drawb
extern void __LIB__ XDrawRectangle(struct _XDisplay *display, Window win, struct _XGC gc, int x, int y, int width, int height);
extern void __LIB__ XDrawPoint(struct _XDisplay *display, Window win, struct _XGC gc, int x, int y);
extern void __LIB__ XDrawLine(struct _XDisplay *display, Window win, struct _XGC gc, int x1, int y1, int x2, int y2);
extern void __LIB__ XClearWindow(struct _XDisplay *display, Window win, struct _XGC gc, int x, int y, int width, int height, Bool Exposures);


/*  Internal declarations  */

extern char __LIB__ *_xfindchar(char c, char *font);
extern void __LIB__ _xfputc (char c, char *font, Bool bold);



/*  Internal structures  */

struct _XWIN {
	int	x;
	int	y;
	int	width;		// Drawable area width
	int	height;		// Drawable area height
	int	a_x;		// area x pos
	int	a_y;		// area y pos
	int	full_width;
	int	full_height;
	char	*title;
        char    *icon;
        char    *background;
};




#endif /* _XZ88DK_H_ */