Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/X11
File: Xlib.h
/*
[0] Fix | Delete
[1] Fix | Delete
Copyright 1985, 1986, 1987, 1991, 1998 The Open Group
[2] Fix | Delete
[3] Fix | Delete
Permission to use, copy, modify, distribute, and sell this software and its
[4] Fix | Delete
documentation for any purpose is hereby granted without fee, provided that
[5] Fix | Delete
the above copyright notice appear in all copies and that both that
[6] Fix | Delete
copyright notice and this permission notice appear in supporting
[7] Fix | Delete
documentation.
[8] Fix | Delete
[9] Fix | Delete
The above copyright notice and this permission notice shall be included in
[10] Fix | Delete
all copies or substantial portions of the Software.
[11] Fix | Delete
[12] Fix | Delete
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
[13] Fix | Delete
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
[14] Fix | Delete
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
[15] Fix | Delete
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
[16] Fix | Delete
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
[17] Fix | Delete
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
[18] Fix | Delete
[19] Fix | Delete
Except as contained in this notice, the name of The Open Group shall not be
[20] Fix | Delete
used in advertising or otherwise to promote the sale, use or other dealings
[21] Fix | Delete
in this Software without prior written authorization from The Open Group.
[22] Fix | Delete
[23] Fix | Delete
*/
[24] Fix | Delete
[25] Fix | Delete
[26] Fix | Delete
/*
[27] Fix | Delete
* Xlib.h - Header definition and support file for the C subroutine
[28] Fix | Delete
* interface library (Xlib) to the X Window System Protocol (V11).
[29] Fix | Delete
* Structures and symbols starting with "_" are private to the library.
[30] Fix | Delete
*/
[31] Fix | Delete
#ifndef _X11_XLIB_H_
[32] Fix | Delete
#define _X11_XLIB_H_
[33] Fix | Delete
[34] Fix | Delete
#define XlibSpecificationRelease 6
[35] Fix | Delete
[36] Fix | Delete
#include <sys/types.h>
[37] Fix | Delete
[38] Fix | Delete
#if defined(__SCO__) || defined(__UNIXWARE__)
[39] Fix | Delete
#include <stdint.h>
[40] Fix | Delete
#endif
[41] Fix | Delete
[42] Fix | Delete
#include <X11/X.h>
[43] Fix | Delete
[44] Fix | Delete
/* applications should not depend on these two headers being included! */
[45] Fix | Delete
#include <X11/Xfuncproto.h>
[46] Fix | Delete
#include <X11/Xosdefs.h>
[47] Fix | Delete
[48] Fix | Delete
#ifndef X_WCHAR
[49] Fix | Delete
#include <stddef.h>
[50] Fix | Delete
#else
[51] Fix | Delete
#ifdef __UNIXOS2__
[52] Fix | Delete
#include <stdlib.h>
[53] Fix | Delete
#else
[54] Fix | Delete
/* replace this with #include or typedef appropriate for your system */
[55] Fix | Delete
typedef unsigned long wchar_t;
[56] Fix | Delete
#endif
[57] Fix | Delete
#endif
[58] Fix | Delete
[59] Fix | Delete
[60] Fix | Delete
extern int
[61] Fix | Delete
_Xmblen(
[62] Fix | Delete
char *str,
[63] Fix | Delete
int len
[64] Fix | Delete
);
[65] Fix | Delete
[66] Fix | Delete
/* API mentioning "UTF8" or "utf8" is an XFree86 extension, introduced in
[67] Fix | Delete
November 2000. Its presence is indicated through the following macro. */
[68] Fix | Delete
#define X_HAVE_UTF8_STRING 1
[69] Fix | Delete
[70] Fix | Delete
/* The Xlib structs are full of implicit padding to properly align members.
[71] Fix | Delete
We can't clean that up without breaking ABI, so tell clang not to bother
[72] Fix | Delete
complaining about it. */
[73] Fix | Delete
#ifdef __clang__
[74] Fix | Delete
#pragma clang diagnostic push
[75] Fix | Delete
#pragma clang diagnostic ignored "-Wpadded"
[76] Fix | Delete
#endif
[77] Fix | Delete
[78] Fix | Delete
typedef char *XPointer;
[79] Fix | Delete
[80] Fix | Delete
#define Bool int
[81] Fix | Delete
#define Status int
[82] Fix | Delete
#define True 1
[83] Fix | Delete
#define False 0
[84] Fix | Delete
[85] Fix | Delete
#define QueuedAlready 0
[86] Fix | Delete
#define QueuedAfterReading 1
[87] Fix | Delete
#define QueuedAfterFlush 2
[88] Fix | Delete
[89] Fix | Delete
#define ConnectionNumber(dpy) (((_XPrivDisplay)(dpy))->fd)
[90] Fix | Delete
#define RootWindow(dpy, scr) (ScreenOfDisplay(dpy,scr)->root)
[91] Fix | Delete
#define DefaultScreen(dpy) (((_XPrivDisplay)(dpy))->default_screen)
[92] Fix | Delete
#define DefaultRootWindow(dpy) (ScreenOfDisplay(dpy,DefaultScreen(dpy))->root)
[93] Fix | Delete
#define DefaultVisual(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_visual)
[94] Fix | Delete
#define DefaultGC(dpy, scr) (ScreenOfDisplay(dpy,scr)->default_gc)
[95] Fix | Delete
#define BlackPixel(dpy, scr) (ScreenOfDisplay(dpy,scr)->black_pixel)
[96] Fix | Delete
#define WhitePixel(dpy, scr) (ScreenOfDisplay(dpy,scr)->white_pixel)
[97] Fix | Delete
#define AllPlanes ((unsigned long)~0L)
[98] Fix | Delete
#define QLength(dpy) (((_XPrivDisplay)(dpy))->qlen)
[99] Fix | Delete
#define DisplayWidth(dpy, scr) (ScreenOfDisplay(dpy,scr)->width)
[100] Fix | Delete
#define DisplayHeight(dpy, scr) (ScreenOfDisplay(dpy,scr)->height)
[101] Fix | Delete
#define DisplayWidthMM(dpy, scr)(ScreenOfDisplay(dpy,scr)->mwidth)
[102] Fix | Delete
#define DisplayHeightMM(dpy, scr)(ScreenOfDisplay(dpy,scr)->mheight)
[103] Fix | Delete
#define DisplayPlanes(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_depth)
[104] Fix | Delete
#define DisplayCells(dpy, scr) (DefaultVisual(dpy,scr)->map_entries)
[105] Fix | Delete
#define ScreenCount(dpy) (((_XPrivDisplay)(dpy))->nscreens)
[106] Fix | Delete
#define ServerVendor(dpy) (((_XPrivDisplay)(dpy))->vendor)
[107] Fix | Delete
#define ProtocolVersion(dpy) (((_XPrivDisplay)(dpy))->proto_major_version)
[108] Fix | Delete
#define ProtocolRevision(dpy) (((_XPrivDisplay)(dpy))->proto_minor_version)
[109] Fix | Delete
#define VendorRelease(dpy) (((_XPrivDisplay)(dpy))->release)
[110] Fix | Delete
#define DisplayString(dpy) (((_XPrivDisplay)(dpy))->display_name)
[111] Fix | Delete
#define DefaultDepth(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_depth)
[112] Fix | Delete
#define DefaultColormap(dpy, scr)(ScreenOfDisplay(dpy,scr)->cmap)
[113] Fix | Delete
#define BitmapUnit(dpy) (((_XPrivDisplay)(dpy))->bitmap_unit)
[114] Fix | Delete
#define BitmapBitOrder(dpy) (((_XPrivDisplay)(dpy))->bitmap_bit_order)
[115] Fix | Delete
#define BitmapPad(dpy) (((_XPrivDisplay)(dpy))->bitmap_pad)
[116] Fix | Delete
#define ImageByteOrder(dpy) (((_XPrivDisplay)(dpy))->byte_order)
[117] Fix | Delete
#define NextRequest(dpy) (((_XPrivDisplay)(dpy))->request + 1)
[118] Fix | Delete
#define LastKnownRequestProcessed(dpy) (((_XPrivDisplay)(dpy))->last_request_read)
[119] Fix | Delete
[120] Fix | Delete
/* macros for screen oriented applications (toolkit) */
[121] Fix | Delete
#define ScreenOfDisplay(dpy, scr)(&((_XPrivDisplay)(dpy))->screens[scr])
[122] Fix | Delete
#define DefaultScreenOfDisplay(dpy) ScreenOfDisplay(dpy,DefaultScreen(dpy))
[123] Fix | Delete
#define DisplayOfScreen(s) ((s)->display)
[124] Fix | Delete
#define RootWindowOfScreen(s) ((s)->root)
[125] Fix | Delete
#define BlackPixelOfScreen(s) ((s)->black_pixel)
[126] Fix | Delete
#define WhitePixelOfScreen(s) ((s)->white_pixel)
[127] Fix | Delete
#define DefaultColormapOfScreen(s)((s)->cmap)
[128] Fix | Delete
#define DefaultDepthOfScreen(s) ((s)->root_depth)
[129] Fix | Delete
#define DefaultGCOfScreen(s) ((s)->default_gc)
[130] Fix | Delete
#define DefaultVisualOfScreen(s)((s)->root_visual)
[131] Fix | Delete
#define WidthOfScreen(s) ((s)->width)
[132] Fix | Delete
#define HeightOfScreen(s) ((s)->height)
[133] Fix | Delete
#define WidthMMOfScreen(s) ((s)->mwidth)
[134] Fix | Delete
#define HeightMMOfScreen(s) ((s)->mheight)
[135] Fix | Delete
#define PlanesOfScreen(s) ((s)->root_depth)
[136] Fix | Delete
#define CellsOfScreen(s) (DefaultVisualOfScreen((s))->map_entries)
[137] Fix | Delete
#define MinCmapsOfScreen(s) ((s)->min_maps)
[138] Fix | Delete
#define MaxCmapsOfScreen(s) ((s)->max_maps)
[139] Fix | Delete
#define DoesSaveUnders(s) ((s)->save_unders)
[140] Fix | Delete
#define DoesBackingStore(s) ((s)->backing_store)
[141] Fix | Delete
#define EventMaskOfScreen(s) ((s)->root_input_mask)
[142] Fix | Delete
[143] Fix | Delete
/*
[144] Fix | Delete
* Extensions need a way to hang private data on some structures.
[145] Fix | Delete
*/
[146] Fix | Delete
typedef struct _XExtData {
[147] Fix | Delete
int number; /* number returned by XRegisterExtension */
[148] Fix | Delete
struct _XExtData *next; /* next item on list of data for structure */
[149] Fix | Delete
int (*free_private)( /* called to free private storage */
[150] Fix | Delete
struct _XExtData *extension
[151] Fix | Delete
);
[152] Fix | Delete
XPointer private_data; /* data private to this extension. */
[153] Fix | Delete
} XExtData;
[154] Fix | Delete
[155] Fix | Delete
/*
[156] Fix | Delete
* This file contains structures used by the extension mechanism.
[157] Fix | Delete
*/
[158] Fix | Delete
typedef struct { /* public to extension, cannot be changed */
[159] Fix | Delete
int extension; /* extension number */
[160] Fix | Delete
int major_opcode; /* major op-code assigned by server */
[161] Fix | Delete
int first_event; /* first event number for the extension */
[162] Fix | Delete
int first_error; /* first error number for the extension */
[163] Fix | Delete
} XExtCodes;
[164] Fix | Delete
[165] Fix | Delete
/*
[166] Fix | Delete
* Data structure for retrieving info about pixmap formats.
[167] Fix | Delete
*/
[168] Fix | Delete
[169] Fix | Delete
typedef struct {
[170] Fix | Delete
int depth;
[171] Fix | Delete
int bits_per_pixel;
[172] Fix | Delete
int scanline_pad;
[173] Fix | Delete
} XPixmapFormatValues;
[174] Fix | Delete
[175] Fix | Delete
[176] Fix | Delete
/*
[177] Fix | Delete
* Data structure for setting graphics context.
[178] Fix | Delete
*/
[179] Fix | Delete
typedef struct {
[180] Fix | Delete
int function; /* logical operation */
[181] Fix | Delete
unsigned long plane_mask;/* plane mask */
[182] Fix | Delete
unsigned long foreground;/* foreground pixel */
[183] Fix | Delete
unsigned long background;/* background pixel */
[184] Fix | Delete
int line_width; /* line width */
[185] Fix | Delete
int line_style; /* LineSolid, LineOnOffDash, LineDoubleDash */
[186] Fix | Delete
int cap_style; /* CapNotLast, CapButt,
[187] Fix | Delete
CapRound, CapProjecting */
[188] Fix | Delete
int join_style; /* JoinMiter, JoinRound, JoinBevel */
[189] Fix | Delete
int fill_style; /* FillSolid, FillTiled,
[190] Fix | Delete
FillStippled, FillOpaeueStippled */
[191] Fix | Delete
int fill_rule; /* EvenOddRule, WindingRule */
[192] Fix | Delete
int arc_mode; /* ArcChord, ArcPieSlice */
[193] Fix | Delete
Pixmap tile; /* tile pixmap for tiling operations */
[194] Fix | Delete
Pixmap stipple; /* stipple 1 plane pixmap for stipping */
[195] Fix | Delete
int ts_x_origin; /* offset for tile or stipple operations */
[196] Fix | Delete
int ts_y_origin;
[197] Fix | Delete
Font font; /* default text font for text operations */
[198] Fix | Delete
int subwindow_mode; /* ClipByChildren, IncludeInferiors */
[199] Fix | Delete
Bool graphics_exposures;/* boolean, should exposures be generated */
[200] Fix | Delete
int clip_x_origin; /* origin for clipping */
[201] Fix | Delete
int clip_y_origin;
[202] Fix | Delete
Pixmap clip_mask; /* bitmap clipping; other calls for rects */
[203] Fix | Delete
int dash_offset; /* patterned/dashed line information */
[204] Fix | Delete
char dashes;
[205] Fix | Delete
} XGCValues;
[206] Fix | Delete
[207] Fix | Delete
/*
[208] Fix | Delete
* Graphics context. The contents of this structure are implementation
[209] Fix | Delete
* dependent. A GC should be treated as opaque by application code.
[210] Fix | Delete
*/
[211] Fix | Delete
[212] Fix | Delete
typedef struct _XGC
[213] Fix | Delete
#ifdef XLIB_ILLEGAL_ACCESS
[214] Fix | Delete
{
[215] Fix | Delete
XExtData *ext_data; /* hook for extension to hang data */
[216] Fix | Delete
GContext gid; /* protocol ID for graphics context */
[217] Fix | Delete
/* there is more to this structure, but it is private to Xlib */
[218] Fix | Delete
}
[219] Fix | Delete
#endif
[220] Fix | Delete
*GC;
[221] Fix | Delete
[222] Fix | Delete
/*
[223] Fix | Delete
* Visual structure; contains information about colormapping possible.
[224] Fix | Delete
*/
[225] Fix | Delete
typedef struct {
[226] Fix | Delete
XExtData *ext_data; /* hook for extension to hang data */
[227] Fix | Delete
VisualID visualid; /* visual id of this visual */
[228] Fix | Delete
#if defined(__cplusplus) || defined(c_plusplus)
[229] Fix | Delete
int c_class; /* C++ class of screen (monochrome, etc.) */
[230] Fix | Delete
#else
[231] Fix | Delete
int class; /* class of screen (monochrome, etc.) */
[232] Fix | Delete
#endif
[233] Fix | Delete
unsigned long red_mask, green_mask, blue_mask; /* mask values */
[234] Fix | Delete
int bits_per_rgb; /* log base 2 of distinct color values */
[235] Fix | Delete
int map_entries; /* color map entries */
[236] Fix | Delete
} Visual;
[237] Fix | Delete
[238] Fix | Delete
/*
[239] Fix | Delete
* Depth structure; contains information for each possible depth.
[240] Fix | Delete
*/
[241] Fix | Delete
typedef struct {
[242] Fix | Delete
int depth; /* this depth (Z) of the depth */
[243] Fix | Delete
int nvisuals; /* number of Visual types at this depth */
[244] Fix | Delete
Visual *visuals; /* list of visuals possible at this depth */
[245] Fix | Delete
} Depth;
[246] Fix | Delete
[247] Fix | Delete
/*
[248] Fix | Delete
* Information about the screen. The contents of this structure are
[249] Fix | Delete
* implementation dependent. A Screen should be treated as opaque
[250] Fix | Delete
* by application code.
[251] Fix | Delete
*/
[252] Fix | Delete
[253] Fix | Delete
struct _XDisplay; /* Forward declare before use for C++ */
[254] Fix | Delete
[255] Fix | Delete
typedef struct {
[256] Fix | Delete
XExtData *ext_data; /* hook for extension to hang data */
[257] Fix | Delete
struct _XDisplay *display;/* back pointer to display structure */
[258] Fix | Delete
Window root; /* Root window id. */
[259] Fix | Delete
int width, height; /* width and height of screen */
[260] Fix | Delete
int mwidth, mheight; /* width and height of in millimeters */
[261] Fix | Delete
int ndepths; /* number of depths possible */
[262] Fix | Delete
Depth *depths; /* list of allowable depths on the screen */
[263] Fix | Delete
int root_depth; /* bits per pixel */
[264] Fix | Delete
Visual *root_visual; /* root visual */
[265] Fix | Delete
GC default_gc; /* GC for the root root visual */
[266] Fix | Delete
Colormap cmap; /* default color map */
[267] Fix | Delete
unsigned long white_pixel;
[268] Fix | Delete
unsigned long black_pixel; /* White and Black pixel values */
[269] Fix | Delete
int max_maps, min_maps; /* max and min color maps */
[270] Fix | Delete
int backing_store; /* Never, WhenMapped, Always */
[271] Fix | Delete
Bool save_unders;
[272] Fix | Delete
long root_input_mask; /* initial root input mask */
[273] Fix | Delete
} Screen;
[274] Fix | Delete
[275] Fix | Delete
/*
[276] Fix | Delete
* Format structure; describes ZFormat data the screen will understand.
[277] Fix | Delete
*/
[278] Fix | Delete
typedef struct {
[279] Fix | Delete
XExtData *ext_data; /* hook for extension to hang data */
[280] Fix | Delete
int depth; /* depth of this image format */
[281] Fix | Delete
int bits_per_pixel; /* bits/pixel at this depth */
[282] Fix | Delete
int scanline_pad; /* scanline must padded to this multiple */
[283] Fix | Delete
} ScreenFormat;
[284] Fix | Delete
[285] Fix | Delete
/*
[286] Fix | Delete
* Data structure for setting window attributes.
[287] Fix | Delete
*/
[288] Fix | Delete
typedef struct {
[289] Fix | Delete
Pixmap background_pixmap; /* background or None or ParentRelative */
[290] Fix | Delete
unsigned long background_pixel; /* background pixel */
[291] Fix | Delete
Pixmap border_pixmap; /* border of the window */
[292] Fix | Delete
unsigned long border_pixel; /* border pixel value */
[293] Fix | Delete
int bit_gravity; /* one of bit gravity values */
[294] Fix | Delete
int win_gravity; /* one of the window gravity values */
[295] Fix | Delete
int backing_store; /* NotUseful, WhenMapped, Always */
[296] Fix | Delete
unsigned long backing_planes;/* planes to be preseved if possible */
[297] Fix | Delete
unsigned long backing_pixel;/* value to use in restoring planes */
[298] Fix | Delete
Bool save_under; /* should bits under be saved? (popups) */
[299] Fix | Delete
long event_mask; /* set of events that should be saved */
[300] Fix | Delete
long do_not_propagate_mask; /* set of events that should not propagate */
[301] Fix | Delete
Bool override_redirect; /* boolean value for override-redirect */
[302] Fix | Delete
Colormap colormap; /* color map to be associated with window */
[303] Fix | Delete
Cursor cursor; /* cursor to be displayed (or None) */
[304] Fix | Delete
} XSetWindowAttributes;
[305] Fix | Delete
[306] Fix | Delete
typedef struct {
[307] Fix | Delete
int x, y; /* location of window */
[308] Fix | Delete
int width, height; /* width and height of window */
[309] Fix | Delete
int border_width; /* border width of window */
[310] Fix | Delete
int depth; /* depth of window */
[311] Fix | Delete
Visual *visual; /* the associated visual structure */
[312] Fix | Delete
Window root; /* root of screen containing window */
[313] Fix | Delete
#if defined(__cplusplus) || defined(c_plusplus)
[314] Fix | Delete
int c_class; /* C++ InputOutput, InputOnly*/
[315] Fix | Delete
#else
[316] Fix | Delete
int class; /* InputOutput, InputOnly*/
[317] Fix | Delete
#endif
[318] Fix | Delete
int bit_gravity; /* one of bit gravity values */
[319] Fix | Delete
int win_gravity; /* one of the window gravity values */
[320] Fix | Delete
int backing_store; /* NotUseful, WhenMapped, Always */
[321] Fix | Delete
unsigned long backing_planes;/* planes to be preserved if possible */
[322] Fix | Delete
unsigned long backing_pixel;/* value to be used when restoring planes */
[323] Fix | Delete
Bool save_under; /* boolean, should bits under be saved? */
[324] Fix | Delete
Colormap colormap; /* color map to be associated with window */
[325] Fix | Delete
Bool map_installed; /* boolean, is color map currently installed*/
[326] Fix | Delete
int map_state; /* IsUnmapped, IsUnviewable, IsViewable */
[327] Fix | Delete
long all_event_masks; /* set of events all people have interest in*/
[328] Fix | Delete
long your_event_mask; /* my event mask */
[329] Fix | Delete
long do_not_propagate_mask; /* set of events that should not propagate */
[330] Fix | Delete
Bool override_redirect; /* boolean value for override-redirect */
[331] Fix | Delete
Screen *screen; /* back pointer to correct screen */
[332] Fix | Delete
} XWindowAttributes;
[333] Fix | Delete
[334] Fix | Delete
/*
[335] Fix | Delete
* Data structure for host setting; getting routines.
[336] Fix | Delete
*
[337] Fix | Delete
*/
[338] Fix | Delete
[339] Fix | Delete
typedef struct {
[340] Fix | Delete
int family; /* for example FamilyInternet */
[341] Fix | Delete
int length; /* length of address, in bytes */
[342] Fix | Delete
char *address; /* pointer to where to find the bytes */
[343] Fix | Delete
} XHostAddress;
[344] Fix | Delete
[345] Fix | Delete
/*
[346] Fix | Delete
* Data structure for ServerFamilyInterpreted addresses in host routines
[347] Fix | Delete
*/
[348] Fix | Delete
typedef struct {
[349] Fix | Delete
int typelength; /* length of type string, in bytes */
[350] Fix | Delete
int valuelength; /* length of value string, in bytes */
[351] Fix | Delete
char *type; /* pointer to where to find the type string */
[352] Fix | Delete
char *value; /* pointer to where to find the address */
[353] Fix | Delete
} XServerInterpretedAddress;
[354] Fix | Delete
[355] Fix | Delete
/*
[356] Fix | Delete
* Data structure for "image" data, used by image manipulation routines.
[357] Fix | Delete
*/
[358] Fix | Delete
typedef struct _XImage {
[359] Fix | Delete
int width, height; /* size of image */
[360] Fix | Delete
int xoffset; /* number of pixels offset in X direction */
[361] Fix | Delete
int format; /* XYBitmap, XYPixmap, ZPixmap */
[362] Fix | Delete
char *data; /* pointer to image data */
[363] Fix | Delete
int byte_order; /* data byte order, LSBFirst, MSBFirst */
[364] Fix | Delete
int bitmap_unit; /* quant. of scanline 8, 16, 32 */
[365] Fix | Delete
int bitmap_bit_order; /* LSBFirst, MSBFirst */
[366] Fix | Delete
int bitmap_pad; /* 8, 16, 32 either XY or ZPixmap */
[367] Fix | Delete
int depth; /* depth of image */
[368] Fix | Delete
int bytes_per_line; /* accelarator to next line */
[369] Fix | Delete
int bits_per_pixel; /* bits per pixel (ZPixmap) */
[370] Fix | Delete
unsigned long red_mask; /* bits in z arrangment */
[371] Fix | Delete
unsigned long green_mask;
[372] Fix | Delete
unsigned long blue_mask;
[373] Fix | Delete
XPointer obdata; /* hook for the object routines to hang on */
[374] Fix | Delete
struct funcs { /* image manipulation routines */
[375] Fix | Delete
struct _XImage *(*create_image)(
[376] Fix | Delete
struct _XDisplay* /* display */,
[377] Fix | Delete
Visual* /* visual */,
[378] Fix | Delete
unsigned int /* depth */,
[379] Fix | Delete
int /* format */,
[380] Fix | Delete
int /* offset */,
[381] Fix | Delete
char* /* data */,
[382] Fix | Delete
unsigned int /* width */,
[383] Fix | Delete
unsigned int /* height */,
[384] Fix | Delete
int /* bitmap_pad */,
[385] Fix | Delete
int /* bytes_per_line */);
[386] Fix | Delete
int (*destroy_image) (struct _XImage *);
[387] Fix | Delete
unsigned long (*get_pixel) (struct _XImage *, int, int);
[388] Fix | Delete
int (*put_pixel) (struct _XImage *, int, int, unsigned long);
[389] Fix | Delete
struct _XImage *(*sub_image)(struct _XImage *, int, int, unsigned int, unsigned int);
[390] Fix | Delete
int (*add_pixel) (struct _XImage *, long);
[391] Fix | Delete
} f;
[392] Fix | Delete
} XImage;
[393] Fix | Delete
[394] Fix | Delete
/*
[395] Fix | Delete
* Data structure for XReconfigureWindow
[396] Fix | Delete
*/
[397] Fix | Delete
typedef struct {
[398] Fix | Delete
int x, y;
[399] Fix | Delete
int width, height;
[400] Fix | Delete
int border_width;
[401] Fix | Delete
Window sibling;
[402] Fix | Delete
int stack_mode;
[403] Fix | Delete
} XWindowChanges;
[404] Fix | Delete
[405] Fix | Delete
/*
[406] Fix | Delete
* Data structure used by color operations
[407] Fix | Delete
*/
[408] Fix | Delete
typedef struct {
[409] Fix | Delete
unsigned long pixel;
[410] Fix | Delete
unsigned short red, green, blue;
[411] Fix | Delete
char flags; /* do_red, do_green, do_blue */
[412] Fix | Delete
char pad;
[413] Fix | Delete
} XColor;
[414] Fix | Delete
[415] Fix | Delete
/*
[416] Fix | Delete
* Data structures for graphics operations. On most machines, these are
[417] Fix | Delete
* congruent with the wire protocol structures, so reformatting the data
[418] Fix | Delete
* can be avoided on these architectures.
[419] Fix | Delete
*/
[420] Fix | Delete
typedef struct {
[421] Fix | Delete
short x1, y1, x2, y2;
[422] Fix | Delete
} XSegment;
[423] Fix | Delete
[424] Fix | Delete
typedef struct {
[425] Fix | Delete
short x, y;
[426] Fix | Delete
} XPoint;
[427] Fix | Delete
[428] Fix | Delete
typedef struct {
[429] Fix | Delete
short x, y;
[430] Fix | Delete
unsigned short width, height;
[431] Fix | Delete
} XRectangle;
[432] Fix | Delete
[433] Fix | Delete
typedef struct {
[434] Fix | Delete
short x, y;
[435] Fix | Delete
unsigned short width, height;
[436] Fix | Delete
short angle1, angle2;
[437] Fix | Delete
} XArc;
[438] Fix | Delete
[439] Fix | Delete
[440] Fix | Delete
/* Data structure for XChangeKeyboardControl */
[441] Fix | Delete
[442] Fix | Delete
typedef struct {
[443] Fix | Delete
int key_click_percent;
[444] Fix | Delete
int bell_percent;
[445] Fix | Delete
int bell_pitch;
[446] Fix | Delete
int bell_duration;
[447] Fix | Delete
int led;
[448] Fix | Delete
int led_mode;
[449] Fix | Delete
int key;
[450] Fix | Delete
int auto_repeat_mode; /* On, Off, Default */
[451] Fix | Delete
} XKeyboardControl;
[452] Fix | Delete
[453] Fix | Delete
/* Data structure for XGetKeyboardControl */
[454] Fix | Delete
[455] Fix | Delete
typedef struct {
[456] Fix | Delete
int key_click_percent;
[457] Fix | Delete
int bell_percent;
[458] Fix | Delete
unsigned int bell_pitch, bell_duration;
[459] Fix | Delete
unsigned long led_mask;
[460] Fix | Delete
int global_auto_repeat;
[461] Fix | Delete
char auto_repeats[32];
[462] Fix | Delete
} XKeyboardState;
[463] Fix | Delete
[464] Fix | Delete
/* Data structure for XGetMotionEvents. */
[465] Fix | Delete
[466] Fix | Delete
typedef struct {
[467] Fix | Delete
Time time;
[468] Fix | Delete
short x, y;
[469] Fix | Delete
} XTimeCoord;
[470] Fix | Delete
[471] Fix | Delete
/* Data structure for X{Set,Get}ModifierMapping */
[472] Fix | Delete
[473] Fix | Delete
typedef struct {
[474] Fix | Delete
int max_keypermod; /* The server's max # of keys per modifier */
[475] Fix | Delete
KeyCode *modifiermap; /* An 8 by max_keypermod array of modifiers */
[476] Fix | Delete
} XModifierKeymap;
[477] Fix | Delete
[478] Fix | Delete
[479] Fix | Delete
/*
[480] Fix | Delete
* Display datatype maintaining display specific data.
[481] Fix | Delete
* The contents of this structure are implementation dependent.
[482] Fix | Delete
* A Display should be treated as opaque by application code.
[483] Fix | Delete
*/
[484] Fix | Delete
#ifndef XLIB_ILLEGAL_ACCESS
[485] Fix | Delete
typedef struct _XDisplay Display;
[486] Fix | Delete
#endif
[487] Fix | Delete
[488] Fix | Delete
struct _XPrivate; /* Forward declare before use for C++ */
[489] Fix | Delete
struct _XrmHashBucketRec;
[490] Fix | Delete
[491] Fix | Delete
typedef struct
[492] Fix | Delete
#ifdef XLIB_ILLEGAL_ACCESS
[493] Fix | Delete
_XDisplay
[494] Fix | Delete
#endif
[495] Fix | Delete
{
[496] Fix | Delete
XExtData *ext_data; /* hook for extension to hang data */
[497] Fix | Delete
struct _XPrivate *private1;
[498] Fix | Delete
int fd; /* Network socket. */
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function