/usr/include/xalleg.h is in liballegro4-dev 2:4.4.2-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 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | /* ______ ___ ___
* /\ _ \ /\_ \ /\_ \
* \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
* \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
* \/_/\/_/\/____/\/____/\/____/\/___L\ \/_/ \/___/
* /\____/
* \_/__/
*
* X header file for the Allegro library.
*
* This prototypes some things which might be useful to
* the calling application, but you don't need it.
*/
#ifndef X_ALLEGRO_H
#define X_ALLEGRO_H
#ifndef ALLEGRO_H
#error Please include allegro.h before xalleg.h!
#endif
#include "allegro/internal/aintern.h"
#include "allegro/platform/aintunix.h"
#include <string.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/cursorfont.h>
#include <X11/keysym.h>
#ifdef ALLEGRO_XWINDOWS_WITH_SHM
#include <sys/ipc.h>
#include <sys/shm.h>
#include <X11/extensions/XShm.h>
#endif
#ifdef ALLEGRO_XWINDOWS_WITH_XF86VIDMODE
#include <X11/extensions/xf86vmode.h>
#endif
#ifdef ALLEGRO_XWINDOWS_WITH_XCURSOR
#include <X11/Xcursor/Xcursor.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
/* X-Windows resources used by the library. */
extern struct _xwin_type
{
Display *display;
volatile int lock_count;
int screen;
Window window;
GC gc;
Visual *visual;
Colormap colormap;
XImage *ximage;
#ifdef ALLEGRO_XWINDOWS_WITH_XCURSOR
XcursorImage *xcursor_image;
XcursorBool support_argb_cursor;
#endif
Cursor cursor;
int cursor_shape;
int hw_cursor_ok;
void (*screen_to_buffer)(int sx, int sy, int sw, int sh);
void (*set_colors)(AL_CONST PALETTE p, int from, int to);
unsigned char *screen_data;
unsigned char **screen_line;
unsigned char **buffer_line;
int scroll_x;
int scroll_y;
int window_width;
int window_height;
int window_depth;
int screen_width;
int screen_height;
int screen_depth;
int virtual_width;
int virtual_height;
int mouse_warped;
int keycode_to_scancode[256];
int matching_formats;
int fast_visual_depth;
int visual_is_truecolor;
int rsize;
int gsize;
int bsize;
int rshift;
int gshift;
int bshift;
unsigned long cmap[0x1000];
unsigned long rmap[0x100];
unsigned long gmap[0x100];
unsigned long bmap[0x100];
#ifdef ALLEGRO_XWINDOWS_WITH_SHM
XShmSegmentInfo shminfo;
#endif
int use_shm;
int in_dga_mode; /* 0=no, 2=DGA2 */
int keyboard_grabbed;
int mouse_grabbed;
#ifdef ALLEGRO_XWINDOWS_WITH_XF86VIDMODE
XF86VidModeModeInfo **modesinfo;
int num_modes;
int mode_switched; /* only kept around and set for ABI compat */
int override_redirected; /* no longer used, kept for ABI compat */
#endif
char window_title[1024];
char application_name[1024];
char application_class[1024];
int drawing_mode_ok;
#ifdef ALLEGRO_MULTITHREADED
void *mutex;
#endif
void (*close_button_callback)(void);
/* These are at the end of the struct to maintain ABI compatibility with
* allegro-4.2.0 (if and only if compiled with the same configuration).
* Notice that IMHO apps really should not be using _xwin, but we export it,
* so its fair game.
*/
#ifdef ALLEGRO_XWINDOWS_WITH_XF86VIDMODE
XF86VidModeModeInfo *orig_modeinfo;
#endif
/* Separate fullscreen and managed window id's, see
* _xwin_private_create_windo* in src/x/xwin.c for more details.
*/
Window fs_window;
Window wm_window;
} _xwin;
AL_FUNCPTR (int, _xwin_window_creator, (void));
AL_FUNCPTR (void, _xwin_window_defaultor, (void));
AL_FUNCPTR (void, _xwin_window_redrawer, (int, int, int, int));
AL_FUNCPTR (void, _xwin_input_handler, (void));
AL_FUNCPTR (void, _xwin_keyboard_callback, (int, int));
AL_FUNC(void, xwin_set_window_name, (AL_CONST char *name, AL_CONST char *group));
#ifdef __cplusplus
}
#endif
#endif
|