Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/X11
File: Xproto.h
/* Definitions for the X window system used by server and c bindings */
[0] Fix | Delete
[1] Fix | Delete
/*
[2] Fix | Delete
* This packet-construction scheme makes the following assumptions:
[3] Fix | Delete
*
[4] Fix | Delete
* 1. The compiler is able
[5] Fix | Delete
* to generate code which addresses one- and two-byte quantities.
[6] Fix | Delete
* In the worst case, this would be done with bit-fields. If bit-fields
[7] Fix | Delete
* are used it may be necessary to reorder the request fields in this file,
[8] Fix | Delete
* depending on the order in which the machine assigns bit fields to
[9] Fix | Delete
* machine words. There may also be a problem with sign extension,
[10] Fix | Delete
* as K+R specify that bitfields are always unsigned.
[11] Fix | Delete
*
[12] Fix | Delete
* 2. 2- and 4-byte fields in packet structures must be ordered by hand
[13] Fix | Delete
* such that they are naturally-aligned, so that no compiler will ever
[14] Fix | Delete
* insert padding bytes.
[15] Fix | Delete
*
[16] Fix | Delete
* 3. All packets are hand-padded to a multiple of 4 bytes, for
[17] Fix | Delete
* the same reason.
[18] Fix | Delete
*/
[19] Fix | Delete
[20] Fix | Delete
#ifndef XPROTO_H
[21] Fix | Delete
#define XPROTO_H
[22] Fix | Delete
[23] Fix | Delete
/***********************************************************
[24] Fix | Delete
[25] Fix | Delete
Copyright 1987, 1998 The Open Group
[26] Fix | Delete
[27] Fix | Delete
Permission to use, copy, modify, distribute, and sell this software and its
[28] Fix | Delete
documentation for any purpose is hereby granted without fee, provided that
[29] Fix | Delete
the above copyright notice appear in all copies and that both that
[30] Fix | Delete
copyright notice and this permission notice appear in supporting
[31] Fix | Delete
documentation.
[32] Fix | Delete
[33] Fix | Delete
The above copyright notice and this permission notice shall be included in
[34] Fix | Delete
all copies or substantial portions of the Software.
[35] Fix | Delete
[36] Fix | Delete
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
[37] Fix | Delete
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
[38] Fix | Delete
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
[39] Fix | Delete
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
[40] Fix | Delete
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
[41] Fix | Delete
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
[42] Fix | Delete
[43] Fix | Delete
Except as contained in this notice, the name of The Open Group shall not be
[44] Fix | Delete
used in advertising or otherwise to promote the sale, use or other dealings
[45] Fix | Delete
in this Software without prior written authorization from The Open Group.
[46] Fix | Delete
[47] Fix | Delete
[48] Fix | Delete
Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
[49] Fix | Delete
[50] Fix | Delete
All Rights Reserved
[51] Fix | Delete
[52] Fix | Delete
Permission to use, copy, modify, and distribute this software and its
[53] Fix | Delete
documentation for any purpose and without fee is hereby granted,
[54] Fix | Delete
provided that the above copyright notice appear in all copies and that
[55] Fix | Delete
both that copyright notice and this permission notice appear in
[56] Fix | Delete
supporting documentation, and that the name of Digital not be
[57] Fix | Delete
used in advertising or publicity pertaining to distribution of the
[58] Fix | Delete
software without specific, written prior permission.
[59] Fix | Delete
[60] Fix | Delete
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
[61] Fix | Delete
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
[62] Fix | Delete
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
[63] Fix | Delete
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
[64] Fix | Delete
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
[65] Fix | Delete
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
[66] Fix | Delete
SOFTWARE.
[67] Fix | Delete
[68] Fix | Delete
******************************************************************/
[69] Fix | Delete
[70] Fix | Delete
#include <X11/Xmd.h>
[71] Fix | Delete
#include <X11/Xprotostr.h>
[72] Fix | Delete
[73] Fix | Delete
/*
[74] Fix | Delete
* Define constants for the sizes of the network packets. The sz_ prefix is
[75] Fix | Delete
* used instead of something more descriptive so that the symbols are no more
[76] Fix | Delete
* than 32 characters in length (which causes problems for some compilers).
[77] Fix | Delete
*/
[78] Fix | Delete
#define sz_xSegment 8
[79] Fix | Delete
#define sz_xPoint 4
[80] Fix | Delete
#define sz_xRectangle 8
[81] Fix | Delete
#define sz_xArc 12
[82] Fix | Delete
#define sz_xConnClientPrefix 12
[83] Fix | Delete
#define sz_xConnSetupPrefix 8
[84] Fix | Delete
#define sz_xConnSetup 32
[85] Fix | Delete
#define sz_xPixmapFormat 8
[86] Fix | Delete
#define sz_xDepth 8
[87] Fix | Delete
#define sz_xVisualType 24
[88] Fix | Delete
#define sz_xWindowRoot 40
[89] Fix | Delete
#define sz_xTimecoord 8
[90] Fix | Delete
#define sz_xHostEntry 4
[91] Fix | Delete
#define sz_xCharInfo 12
[92] Fix | Delete
#define sz_xFontProp 8
[93] Fix | Delete
#define sz_xTextElt 2
[94] Fix | Delete
#define sz_xColorItem 12
[95] Fix | Delete
#define sz_xrgb 8
[96] Fix | Delete
#define sz_xGenericReply 32
[97] Fix | Delete
#define sz_xGetWindowAttributesReply 44
[98] Fix | Delete
#define sz_xGetGeometryReply 32
[99] Fix | Delete
#define sz_xQueryTreeReply 32
[100] Fix | Delete
#define sz_xInternAtomReply 32
[101] Fix | Delete
#define sz_xGetAtomNameReply 32
[102] Fix | Delete
#define sz_xGetPropertyReply 32
[103] Fix | Delete
#define sz_xListPropertiesReply 32
[104] Fix | Delete
#define sz_xGetSelectionOwnerReply 32
[105] Fix | Delete
#define sz_xGrabPointerReply 32
[106] Fix | Delete
#define sz_xQueryPointerReply 32
[107] Fix | Delete
#define sz_xGetMotionEventsReply 32
[108] Fix | Delete
#define sz_xTranslateCoordsReply 32
[109] Fix | Delete
#define sz_xGetInputFocusReply 32
[110] Fix | Delete
#define sz_xQueryKeymapReply 40
[111] Fix | Delete
#define sz_xQueryFontReply 60
[112] Fix | Delete
#define sz_xQueryTextExtentsReply 32
[113] Fix | Delete
#define sz_xListFontsReply 32
[114] Fix | Delete
#define sz_xGetFontPathReply 32
[115] Fix | Delete
#define sz_xGetImageReply 32
[116] Fix | Delete
#define sz_xListInstalledColormapsReply 32
[117] Fix | Delete
#define sz_xAllocColorReply 32
[118] Fix | Delete
#define sz_xAllocNamedColorReply 32
[119] Fix | Delete
#define sz_xAllocColorCellsReply 32
[120] Fix | Delete
#define sz_xAllocColorPlanesReply 32
[121] Fix | Delete
#define sz_xQueryColorsReply 32
[122] Fix | Delete
#define sz_xLookupColorReply 32
[123] Fix | Delete
#define sz_xQueryBestSizeReply 32
[124] Fix | Delete
#define sz_xQueryExtensionReply 32
[125] Fix | Delete
#define sz_xListExtensionsReply 32
[126] Fix | Delete
#define sz_xSetMappingReply 32
[127] Fix | Delete
#define sz_xGetKeyboardControlReply 52
[128] Fix | Delete
#define sz_xGetPointerControlReply 32
[129] Fix | Delete
#define sz_xGetScreenSaverReply 32
[130] Fix | Delete
#define sz_xListHostsReply 32
[131] Fix | Delete
#define sz_xSetModifierMappingReply 32
[132] Fix | Delete
#define sz_xError 32
[133] Fix | Delete
#define sz_xEvent 32
[134] Fix | Delete
#define sz_xKeymapEvent 32
[135] Fix | Delete
#define sz_xReq 4
[136] Fix | Delete
#define sz_xResourceReq 8
[137] Fix | Delete
#define sz_xCreateWindowReq 32
[138] Fix | Delete
#define sz_xChangeWindowAttributesReq 12
[139] Fix | Delete
#define sz_xChangeSaveSetReq 8
[140] Fix | Delete
#define sz_xReparentWindowReq 16
[141] Fix | Delete
#define sz_xConfigureWindowReq 12
[142] Fix | Delete
#define sz_xCirculateWindowReq 8
[143] Fix | Delete
#define sz_xInternAtomReq 8
[144] Fix | Delete
#define sz_xChangePropertyReq 24
[145] Fix | Delete
#define sz_xDeletePropertyReq 12
[146] Fix | Delete
#define sz_xGetPropertyReq 24
[147] Fix | Delete
#define sz_xSetSelectionOwnerReq 16
[148] Fix | Delete
#define sz_xConvertSelectionReq 24
[149] Fix | Delete
#define sz_xSendEventReq 44
[150] Fix | Delete
#define sz_xGrabPointerReq 24
[151] Fix | Delete
#define sz_xGrabButtonReq 24
[152] Fix | Delete
#define sz_xUngrabButtonReq 12
[153] Fix | Delete
#define sz_xChangeActivePointerGrabReq 16
[154] Fix | Delete
#define sz_xGrabKeyboardReq 16
[155] Fix | Delete
#define sz_xGrabKeyReq 16
[156] Fix | Delete
#define sz_xUngrabKeyReq 12
[157] Fix | Delete
#define sz_xAllowEventsReq 8
[158] Fix | Delete
#define sz_xGetMotionEventsReq 16
[159] Fix | Delete
#define sz_xTranslateCoordsReq 16
[160] Fix | Delete
#define sz_xWarpPointerReq 24
[161] Fix | Delete
#define sz_xSetInputFocusReq 12
[162] Fix | Delete
#define sz_xOpenFontReq 12
[163] Fix | Delete
#define sz_xQueryTextExtentsReq 8
[164] Fix | Delete
#define sz_xListFontsReq 8
[165] Fix | Delete
#define sz_xSetFontPathReq 8
[166] Fix | Delete
#define sz_xCreatePixmapReq 16
[167] Fix | Delete
#define sz_xCreateGCReq 16
[168] Fix | Delete
#define sz_xChangeGCReq 12
[169] Fix | Delete
#define sz_xCopyGCReq 16
[170] Fix | Delete
#define sz_xSetDashesReq 12
[171] Fix | Delete
#define sz_xSetClipRectanglesReq 12
[172] Fix | Delete
#define sz_xCopyAreaReq 28
[173] Fix | Delete
#define sz_xCopyPlaneReq 32
[174] Fix | Delete
#define sz_xPolyPointReq 12
[175] Fix | Delete
#define sz_xPolySegmentReq 12
[176] Fix | Delete
#define sz_xFillPolyReq 16
[177] Fix | Delete
#define sz_xPutImageReq 24
[178] Fix | Delete
#define sz_xGetImageReq 20
[179] Fix | Delete
#define sz_xPolyTextReq 16
[180] Fix | Delete
#define sz_xImageTextReq 16
[181] Fix | Delete
#define sz_xCreateColormapReq 16
[182] Fix | Delete
#define sz_xCopyColormapAndFreeReq 12
[183] Fix | Delete
#define sz_xAllocColorReq 16
[184] Fix | Delete
#define sz_xAllocNamedColorReq 12
[185] Fix | Delete
#define sz_xAllocColorCellsReq 12
[186] Fix | Delete
#define sz_xAllocColorPlanesReq 16
[187] Fix | Delete
#define sz_xFreeColorsReq 12
[188] Fix | Delete
#define sz_xStoreColorsReq 8
[189] Fix | Delete
#define sz_xStoreNamedColorReq 16
[190] Fix | Delete
#define sz_xQueryColorsReq 8
[191] Fix | Delete
#define sz_xLookupColorReq 12
[192] Fix | Delete
#define sz_xCreateCursorReq 32
[193] Fix | Delete
#define sz_xCreateGlyphCursorReq 32
[194] Fix | Delete
#define sz_xRecolorCursorReq 20
[195] Fix | Delete
#define sz_xQueryBestSizeReq 12
[196] Fix | Delete
#define sz_xQueryExtensionReq 8
[197] Fix | Delete
#define sz_xChangeKeyboardControlReq 8
[198] Fix | Delete
#define sz_xBellReq 4
[199] Fix | Delete
#define sz_xChangePointerControlReq 12
[200] Fix | Delete
#define sz_xSetScreenSaverReq 12
[201] Fix | Delete
#define sz_xChangeHostsReq 8
[202] Fix | Delete
#define sz_xListHostsReq 4
[203] Fix | Delete
#define sz_xChangeModeReq 4
[204] Fix | Delete
#define sz_xRotatePropertiesReq 12
[205] Fix | Delete
#define sz_xReply 32
[206] Fix | Delete
#define sz_xGrabKeyboardReply 32
[207] Fix | Delete
#define sz_xListFontsWithInfoReply 60
[208] Fix | Delete
#define sz_xSetPointerMappingReply 32
[209] Fix | Delete
#define sz_xGetKeyboardMappingReply 32
[210] Fix | Delete
#define sz_xGetPointerMappingReply 32
[211] Fix | Delete
#define sz_xGetModifierMappingReply 32
[212] Fix | Delete
#define sz_xListFontsWithInfoReq 8
[213] Fix | Delete
#define sz_xPolyLineReq 12
[214] Fix | Delete
#define sz_xPolyArcReq 12
[215] Fix | Delete
#define sz_xPolyRectangleReq 12
[216] Fix | Delete
#define sz_xPolyFillRectangleReq 12
[217] Fix | Delete
#define sz_xPolyFillArcReq 12
[218] Fix | Delete
#define sz_xPolyText8Req 16
[219] Fix | Delete
#define sz_xPolyText16Req 16
[220] Fix | Delete
#define sz_xImageText8Req 16
[221] Fix | Delete
#define sz_xImageText16Req 16
[222] Fix | Delete
#define sz_xSetPointerMappingReq 4
[223] Fix | Delete
#define sz_xForceScreenSaverReq 4
[224] Fix | Delete
#define sz_xSetCloseDownModeReq 4
[225] Fix | Delete
#define sz_xClearAreaReq 16
[226] Fix | Delete
#define sz_xSetAccessControlReq 4
[227] Fix | Delete
#define sz_xGetKeyboardMappingReq 8
[228] Fix | Delete
#define sz_xSetModifierMappingReq 4
[229] Fix | Delete
#define sz_xPropIconSize 24
[230] Fix | Delete
#define sz_xChangeKeyboardMappingReq 8
[231] Fix | Delete
[232] Fix | Delete
[233] Fix | Delete
/* For the purpose of the structure definitions in this file,
[234] Fix | Delete
we must redefine the following types in terms of Xmd.h's types, which may
[235] Fix | Delete
include bit fields. All of these are #undef'd at the end of this file,
[236] Fix | Delete
restoring the definitions in X.h. */
[237] Fix | Delete
[238] Fix | Delete
#define Window CARD32
[239] Fix | Delete
#define Drawable CARD32
[240] Fix | Delete
#define Font CARD32
[241] Fix | Delete
#define Pixmap CARD32
[242] Fix | Delete
#define Cursor CARD32
[243] Fix | Delete
#define Colormap CARD32
[244] Fix | Delete
#define GContext CARD32
[245] Fix | Delete
#define Atom CARD32
[246] Fix | Delete
#define VisualID CARD32
[247] Fix | Delete
#define Time CARD32
[248] Fix | Delete
#define KeyCode CARD8
[249] Fix | Delete
#define KeySym CARD32
[250] Fix | Delete
[251] Fix | Delete
#define X_TCP_PORT 6000 /* add display number */
[252] Fix | Delete
[253] Fix | Delete
#define xTrue 1
[254] Fix | Delete
#define xFalse 0
[255] Fix | Delete
[256] Fix | Delete
[257] Fix | Delete
typedef CARD16 KeyButMask;
[258] Fix | Delete
[259] Fix | Delete
/*****************
[260] Fix | Delete
Connection setup structures. See Chapter 8: Connection Setup
[261] Fix | Delete
of the X Window System Protocol specification for details.
[262] Fix | Delete
*****************/
[263] Fix | Delete
[264] Fix | Delete
/* Client initiates handshake with this data, followed by the strings
[265] Fix | Delete
* for the auth protocol & data.
[266] Fix | Delete
*/
[267] Fix | Delete
typedef struct {
[268] Fix | Delete
CARD8 byteOrder;
[269] Fix | Delete
BYTE pad;
[270] Fix | Delete
CARD16 majorVersion, minorVersion;
[271] Fix | Delete
CARD16 nbytesAuthProto; /* Authorization protocol */
[272] Fix | Delete
CARD16 nbytesAuthString; /* Authorization string */
[273] Fix | Delete
CARD16 pad2;
[274] Fix | Delete
} xConnClientPrefix;
[275] Fix | Delete
[276] Fix | Delete
/* Server response to xConnClientPrefix.
[277] Fix | Delete
*
[278] Fix | Delete
* If success == Success, this is followed by xConnSetup and
[279] Fix | Delete
* numRoots xWindowRoot structs.
[280] Fix | Delete
*
[281] Fix | Delete
* If success == Failure, this is followed by a reason string.
[282] Fix | Delete
*
[283] Fix | Delete
* The protocol also defines a case of success == Authenticate, but
[284] Fix | Delete
* that doesn't seem to have ever been implemented by the X Consortium.
[285] Fix | Delete
*/
[286] Fix | Delete
typedef struct {
[287] Fix | Delete
CARD8 success;
[288] Fix | Delete
BYTE lengthReason; /*num bytes in string following if failure */
[289] Fix | Delete
CARD16 majorVersion,
[290] Fix | Delete
minorVersion;
[291] Fix | Delete
CARD16 length; /* 1/4 additional bytes in setup info */
[292] Fix | Delete
} xConnSetupPrefix;
[293] Fix | Delete
[294] Fix | Delete
[295] Fix | Delete
typedef struct {
[296] Fix | Delete
CARD32 release;
[297] Fix | Delete
CARD32 ridBase,
[298] Fix | Delete
ridMask;
[299] Fix | Delete
CARD32 motionBufferSize;
[300] Fix | Delete
CARD16 nbytesVendor; /* number of bytes in vendor string */
[301] Fix | Delete
CARD16 maxRequestSize;
[302] Fix | Delete
CARD8 numRoots; /* number of roots structs to follow */
[303] Fix | Delete
CARD8 numFormats; /* number of pixmap formats */
[304] Fix | Delete
CARD8 imageByteOrder; /* LSBFirst, MSBFirst */
[305] Fix | Delete
CARD8 bitmapBitOrder; /* LeastSignificant, MostSign...*/
[306] Fix | Delete
CARD8 bitmapScanlineUnit, /* 8, 16, 32 */
[307] Fix | Delete
bitmapScanlinePad; /* 8, 16, 32 */
[308] Fix | Delete
KeyCode minKeyCode, maxKeyCode;
[309] Fix | Delete
CARD32 pad2;
[310] Fix | Delete
} xConnSetup;
[311] Fix | Delete
[312] Fix | Delete
typedef struct {
[313] Fix | Delete
CARD8 depth;
[314] Fix | Delete
CARD8 bitsPerPixel;
[315] Fix | Delete
CARD8 scanLinePad;
[316] Fix | Delete
CARD8 pad1;
[317] Fix | Delete
CARD32 pad2;
[318] Fix | Delete
} xPixmapFormat;
[319] Fix | Delete
[320] Fix | Delete
/* window root */
[321] Fix | Delete
[322] Fix | Delete
typedef struct {
[323] Fix | Delete
CARD8 depth;
[324] Fix | Delete
CARD8 pad1;
[325] Fix | Delete
CARD16 nVisuals; /* number of xVisualType structures following */
[326] Fix | Delete
CARD32 pad2;
[327] Fix | Delete
} xDepth;
[328] Fix | Delete
[329] Fix | Delete
typedef struct {
[330] Fix | Delete
VisualID visualID;
[331] Fix | Delete
#if defined(__cplusplus) || defined(c_plusplus)
[332] Fix | Delete
CARD8 c_class;
[333] Fix | Delete
#else
[334] Fix | Delete
CARD8 class;
[335] Fix | Delete
#endif
[336] Fix | Delete
CARD8 bitsPerRGB;
[337] Fix | Delete
CARD16 colormapEntries;
[338] Fix | Delete
CARD32 redMask, greenMask, blueMask;
[339] Fix | Delete
CARD32 pad;
[340] Fix | Delete
} xVisualType;
[341] Fix | Delete
[342] Fix | Delete
typedef struct {
[343] Fix | Delete
Window windowId;
[344] Fix | Delete
Colormap defaultColormap;
[345] Fix | Delete
CARD32 whitePixel, blackPixel;
[346] Fix | Delete
CARD32 currentInputMask;
[347] Fix | Delete
CARD16 pixWidth, pixHeight;
[348] Fix | Delete
CARD16 mmWidth, mmHeight;
[349] Fix | Delete
CARD16 minInstalledMaps, maxInstalledMaps;
[350] Fix | Delete
VisualID rootVisualID;
[351] Fix | Delete
CARD8 backingStore;
[352] Fix | Delete
BOOL saveUnders;
[353] Fix | Delete
CARD8 rootDepth;
[354] Fix | Delete
CARD8 nDepths; /* number of xDepth structures following */
[355] Fix | Delete
} xWindowRoot;
[356] Fix | Delete
[357] Fix | Delete
[358] Fix | Delete
/*****************************************************************
[359] Fix | Delete
* Structure Defns
[360] Fix | Delete
* Structures needed for replies
[361] Fix | Delete
*****************************************************************/
[362] Fix | Delete
[363] Fix | Delete
/* Used in GetMotionEvents */
[364] Fix | Delete
[365] Fix | Delete
typedef struct {
[366] Fix | Delete
CARD32 time;
[367] Fix | Delete
INT16 x, y;
[368] Fix | Delete
} xTimecoord;
[369] Fix | Delete
[370] Fix | Delete
typedef struct {
[371] Fix | Delete
CARD8 family;
[372] Fix | Delete
BYTE pad;
[373] Fix | Delete
CARD16 length;
[374] Fix | Delete
} xHostEntry;
[375] Fix | Delete
[376] Fix | Delete
typedef struct {
[377] Fix | Delete
INT16 leftSideBearing,
[378] Fix | Delete
rightSideBearing,
[379] Fix | Delete
characterWidth,
[380] Fix | Delete
ascent,
[381] Fix | Delete
descent;
[382] Fix | Delete
CARD16 attributes;
[383] Fix | Delete
} xCharInfo;
[384] Fix | Delete
[385] Fix | Delete
typedef struct {
[386] Fix | Delete
Atom name;
[387] Fix | Delete
CARD32 value;
[388] Fix | Delete
} xFontProp;
[389] Fix | Delete
[390] Fix | Delete
/*
[391] Fix | Delete
* non-aligned big-endian font ID follows this struct
[392] Fix | Delete
*/
[393] Fix | Delete
typedef struct { /* followed by string */
[394] Fix | Delete
CARD8 len; /* number of *characters* in string, or FontChange (255)
[395] Fix | Delete
for font change, or 0 if just delta given */
[396] Fix | Delete
INT8 delta;
[397] Fix | Delete
} xTextElt;
[398] Fix | Delete
[399] Fix | Delete
[400] Fix | Delete
typedef struct {
[401] Fix | Delete
CARD32 pixel;
[402] Fix | Delete
CARD16 red, green, blue;
[403] Fix | Delete
CARD8 flags; /* DoRed, DoGreen, DoBlue booleans */
[404] Fix | Delete
CARD8 pad;
[405] Fix | Delete
} xColorItem;
[406] Fix | Delete
[407] Fix | Delete
[408] Fix | Delete
typedef struct {
[409] Fix | Delete
CARD16 red, green, blue, pad;
[410] Fix | Delete
} xrgb;
[411] Fix | Delete
[412] Fix | Delete
typedef CARD8 KEYCODE;
[413] Fix | Delete
[414] Fix | Delete
[415] Fix | Delete
/*****************
[416] Fix | Delete
* XRep:
[417] Fix | Delete
* meant to be 32 byte quantity
[418] Fix | Delete
*****************/
[419] Fix | Delete
[420] Fix | Delete
/* GenericReply is the common format of all replies. The "data" items
[421] Fix | Delete
are specific to each individual reply type. */
[422] Fix | Delete
[423] Fix | Delete
typedef struct {
[424] Fix | Delete
BYTE type; /* X_Reply */
[425] Fix | Delete
BYTE data1; /* depends on reply type */
[426] Fix | Delete
CARD16 sequenceNumber; /* of last request received by server */
[427] Fix | Delete
CARD32 length; /* 4 byte quantities beyond size of GenericReply */
[428] Fix | Delete
CARD32 data00;
[429] Fix | Delete
CARD32 data01;
[430] Fix | Delete
CARD32 data02;
[431] Fix | Delete
CARD32 data03;
[432] Fix | Delete
CARD32 data04;
[433] Fix | Delete
CARD32 data05;
[434] Fix | Delete
} xGenericReply;
[435] Fix | Delete
[436] Fix | Delete
/* Individual reply formats. */
[437] Fix | Delete
[438] Fix | Delete
typedef struct {
[439] Fix | Delete
BYTE type; /* X_Reply */
[440] Fix | Delete
CARD8 backingStore;
[441] Fix | Delete
CARD16 sequenceNumber;
[442] Fix | Delete
CARD32 length; /* NOT 0; this is an extra-large reply */
[443] Fix | Delete
VisualID visualID;
[444] Fix | Delete
#if defined(__cplusplus) || defined(c_plusplus)
[445] Fix | Delete
CARD16 c_class;
[446] Fix | Delete
#else
[447] Fix | Delete
CARD16 class;
[448] Fix | Delete
#endif
[449] Fix | Delete
CARD8 bitGravity;
[450] Fix | Delete
CARD8 winGravity;
[451] Fix | Delete
CARD32 backingBitPlanes;
[452] Fix | Delete
CARD32 backingPixel;
[453] Fix | Delete
BOOL saveUnder;
[454] Fix | Delete
BOOL mapInstalled;
[455] Fix | Delete
CARD8 mapState;
[456] Fix | Delete
BOOL override;
[457] Fix | Delete
Colormap colormap;
[458] Fix | Delete
CARD32 allEventMasks;
[459] Fix | Delete
CARD32 yourEventMask;
[460] Fix | Delete
CARD16 doNotPropagateMask;
[461] Fix | Delete
CARD16 pad;
[462] Fix | Delete
} xGetWindowAttributesReply;
[463] Fix | Delete
[464] Fix | Delete
typedef struct {
[465] Fix | Delete
BYTE type; /* X_Reply */
[466] Fix | Delete
CARD8 depth;
[467] Fix | Delete
CARD16 sequenceNumber;
[468] Fix | Delete
CARD32 length; /* 0 */
[469] Fix | Delete
Window root;
[470] Fix | Delete
INT16 x, y;
[471] Fix | Delete
CARD16 width, height;
[472] Fix | Delete
CARD16 borderWidth;
[473] Fix | Delete
CARD16 pad1;
[474] Fix | Delete
CARD32 pad2;
[475] Fix | Delete
CARD32 pad3;
[476] Fix | Delete
} xGetGeometryReply;
[477] Fix | Delete
[478] Fix | Delete
typedef struct {
[479] Fix | Delete
BYTE type; /* X_Reply */
[480] Fix | Delete
BYTE pad1;
[481] Fix | Delete
CARD16 sequenceNumber;
[482] Fix | Delete
CARD32 length;
[483] Fix | Delete
Window root, parent;
[484] Fix | Delete
CARD16 nChildren;
[485] Fix | Delete
CARD16 pad2;
[486] Fix | Delete
CARD32 pad3;
[487] Fix | Delete
CARD32 pad4;
[488] Fix | Delete
CARD32 pad5;
[489] Fix | Delete
} xQueryTreeReply;
[490] Fix | Delete
[491] Fix | Delete
typedef struct {
[492] Fix | Delete
BYTE type; /* X_Reply */
[493] Fix | Delete
BYTE pad1;
[494] Fix | Delete
CARD16 sequenceNumber;
[495] Fix | Delete
CARD32 length; /* 0 */
[496] Fix | Delete
Atom atom;
[497] Fix | Delete
CARD32 pad2;
[498] Fix | Delete
CARD32 pad3;
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function