001: /*
002: * Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
003: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
004: *
005: * This code is free software; you can redistribute it and/or modify it
006: * under the terms of the GNU General Public License version 2 only, as
007: * published by the Free Software Foundation. Sun designates this
008: * particular file as subject to the "Classpath" exception as provided
009: * by Sun in the LICENSE file that accompanied this code.
010: *
011: * This code is distributed in the hope that it will be useful, but WITHOUT
012: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
013: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
014: * version 2 for more details (a copy is included in the LICENSE file that
015: * accompanied this code).
016: *
017: * You should have received a copy of the GNU General Public License version
018: * 2 along with this work; if not, write to the Free Software Foundation,
019: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
020: *
021: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
022: * CA 95054 USA or visit www.sun.com if you need additional information or
023: * have any questions.
024: */
025:
026: package sun.awt.X11;
027:
028: public interface XProtocolConstants {
029: /* Reply codes */
030: public static final int X_Reply = 1; /* Normal reply */
031: public static final int X_Error = 0; /* Error */
032:
033: /* Request codes */
034: public static final int X_CreateWindow = 1;
035: public static final int X_ChangeWindowAttributes = 2;
036: public static final int X_GetWindowAttributes = 3;
037: public static final int X_DestroyWindow = 4;
038: public static final int X_DestroySubwindows = 5;
039: public static final int X_ChangeSaveSet = 6;
040: public static final int X_ReparentWindow = 7;
041: public static final int X_MapWindow = 8;
042: public static final int X_MapSubwindows = 9;
043: public static final int X_UnmapWindow = 10;
044: public static final int X_UnmapSubwindows = 11;
045: public static final int X_ConfigureWindow = 12;
046: public static final int X_CirculateWindow = 13;
047: public static final int X_GetGeometry = 14;
048: public static final int X_QueryTree = 15;
049: public static final int X_InternAtom = 16;
050: public static final int X_GetAtomName = 17;
051: public static final int X_ChangeProperty = 18;
052: public static final int X_DeleteProperty = 19;
053: public static final int X_GetProperty = 20;
054: public static final int X_ListProperties = 21;
055: public static final int X_SetSelectionOwner = 22;
056: public static final int X_GetSelectionOwner = 23;
057: public static final int X_ConvertSelection = 24;
058: public static final int X_SendEvent = 25;
059: public static final int X_GrabPointer = 26;
060: public static final int X_UngrabPointer = 27;
061: public static final int X_GrabButton = 28;
062: public static final int X_UngrabButton = 29;
063: public static final int X_ChangeActivePointerGrab = 30;
064: public static final int X_GrabKeyboard = 31;
065: public static final int X_UngrabKeyboard = 32;
066: public static final int X_GrabKey = 33;
067: public static final int X_UngrabKey = 34;
068: public static final int X_AllowEvents = 35;
069: public static final int X_GrabServer = 36;
070: public static final int X_UngrabServer = 37;
071: public static final int X_QueryPointer = 38;
072: public static final int X_GetMotionEvents = 39;
073: public static final int X_TranslateCoords = 40;
074: public static final int X_WarpPointer = 41;
075: public static final int X_SetInputFocus = 42;
076: public static final int X_GetInputFocus = 43;
077: public static final int X_QueryKeymap = 44;
078: public static final int X_OpenFont = 45;
079: public static final int X_CloseFont = 46;
080: public static final int X_QueryFont = 47;
081: public static final int X_QueryTextExtents = 48;
082: public static final int X_ListFonts = 49;
083: public static final int X_ListFontsWithInfo = 50;
084: public static final int X_SetFontPath = 51;
085: public static final int X_GetFontPath = 52;
086: public static final int X_CreatePixmap = 53;
087: public static final int X_FreePixmap = 54;
088: public static final int X_CreateGC = 55;
089: public static final int X_ChangeGC = 56;
090: public static final int X_CopyGC = 57;
091: public static final int X_SetDashes = 58;
092: public static final int X_SetClipRectangles = 59;
093: public static final int X_FreeGC = 60;
094: public static final int X_ClearArea = 61;
095: public static final int X_CopyArea = 62;
096: public static final int X_CopyPlane = 63;
097: public static final int X_PolyPoint = 64;
098: public static final int X_PolyLine = 65;
099: public static final int X_PolySegment = 66;
100: public static final int X_PolyRectangle = 67;
101: public static final int X_PolyArc = 68;
102: public static final int X_FillPoly = 69;
103: public static final int X_PolyFillRectangle = 70;
104: public static final int X_PolyFillArc = 71;
105: public static final int X_PutImage = 72;
106: public static final int X_GetImage = 73;
107: public static final int X_PolyText8 = 74;
108: public static final int X_PolyText16 = 75;
109: public static final int X_ImageText8 = 76;
110: public static final int X_ImageText16 = 77;
111: public static final int X_CreateColormap = 78;
112: public static final int X_FreeColormap = 79;
113: public static final int X_CopyColormapAndFree = 80;
114: public static final int X_InstallColormap = 81;
115: public static final int X_UninstallColormap = 82;
116: public static final int X_ListInstalledColormaps = 83;
117: public static final int X_AllocColor = 84;
118: public static final int X_AllocNamedColor = 85;
119: public static final int X_AllocColorCells = 86;
120: public static final int X_AllocColorPlanes = 87;
121: public static final int X_FreeColors = 88;
122: public static final int X_StoreColors = 89;
123: public static final int X_StoreNamedColor = 90;
124: public static final int X_QueryColors = 91;
125: public static final int X_LookupColor = 92;
126: public static final int X_CreateCursor = 93;
127: public static final int X_CreateGlyphCursor = 94;
128: public static final int X_FreeCursor = 95;
129: public static final int X_RecolorCursor = 96;
130: public static final int X_QueryBestSize = 97;
131: public static final int X_QueryExtension = 98;
132: public static final int X_ListExtensions = 99;
133: public static final int X_ChangeKeyboardMapping = 100;
134: public static final int X_GetKeyboardMapping = 101;
135: public static final int X_ChangeKeyboardControl = 102;
136: public static final int X_GetKeyboardControl = 103;
137: public static final int X_Bell = 104;
138: public static final int X_ChangePointerControl = 105;
139: public static final int X_GetPointerControl = 106;
140: public static final int X_SetScreenSaver = 107;
141: public static final int X_GetScreenSaver = 108;
142: public static final int X_ChangeHosts = 109;
143: public static final int X_ListHosts = 110;
144: public static final int X_SetAccessControl = 111;
145: public static final int X_SetCloseDownMode = 112;
146: public static final int X_KillClient = 113;
147: public static final int X_RotateProperties = 114;
148: public static final int X_ForceScreenSaver = 115;
149: public static final int X_SetPointerMapping = 116;
150: public static final int X_GetPointerMapping = 117;
151: public static final int X_SetModifierMapping = 118;
152: public static final int X_GetModifierMapping = 119;
153: public static final int X_NoOperation = 127;
154: }
|