1/*
2 * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.  Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26package sun.awt.X11;
27
28public final class XProtocolConstants {
29
30    private XProtocolConstants(){}
31
32    /* Reply codes */
33    public static final int X_Reply = 1 ; /* Normal reply */
34    public static final int X_Error = 0 ; /* Error */
35
36    /* Request codes */
37    public static final int X_CreateWindow = 1 ;
38    public static final int X_ChangeWindowAttributes = 2 ;
39    public static final int X_GetWindowAttributes = 3 ;
40    public static final int X_DestroyWindow = 4 ;
41    public static final int X_DestroySubwindows = 5 ;
42    public static final int X_ChangeSaveSet = 6 ;
43    public static final int X_ReparentWindow = 7 ;
44    public static final int X_MapWindow = 8 ;
45    public static final int X_MapSubwindows = 9 ;
46    public static final int X_UnmapWindow = 10 ;
47    public static final int X_UnmapSubwindows = 11 ;
48    public static final int X_ConfigureWindow = 12 ;
49    public static final int X_CirculateWindow = 13 ;
50    public static final int X_GetGeometry = 14 ;
51    public static final int X_QueryTree = 15 ;
52    public static final int X_InternAtom = 16 ;
53    public static final int X_GetAtomName = 17 ;
54    public static final int X_ChangeProperty = 18 ;
55    public static final int X_DeleteProperty = 19 ;
56    public static final int X_GetProperty = 20 ;
57    public static final int X_ListProperties = 21 ;
58    public static final int X_SetSelectionOwner = 22 ;
59    public static final int X_GetSelectionOwner = 23 ;
60    public static final int X_ConvertSelection = 24 ;
61    public static final int X_SendEvent = 25 ;
62    public static final int X_GrabPointer = 26 ;
63    public static final int X_UngrabPointer = 27 ;
64    public static final int X_GrabButton = 28 ;
65    public static final int X_UngrabButton = 29 ;
66    public static final int X_ChangeActivePointerGrab = 30 ;
67    public static final int X_GrabKeyboard = 31 ;
68    public static final int X_UngrabKeyboard = 32 ;
69    public static final int X_GrabKey = 33 ;
70    public static final int X_UngrabKey = 34 ;
71    public static final int X_AllowEvents = 35 ;
72    public static final int X_GrabServer = 36 ;
73    public static final int X_UngrabServer = 37 ;
74    public static final int X_QueryPointer = 38 ;
75    public static final int X_GetMotionEvents = 39 ;
76    public static final int X_TranslateCoords = 40 ;
77    public static final int X_WarpPointer = 41 ;
78    public static final int X_SetInputFocus = 42 ;
79    public static final int X_GetInputFocus = 43 ;
80    public static final int X_QueryKeymap = 44 ;
81    public static final int X_OpenFont = 45 ;
82    public static final int X_CloseFont = 46 ;
83    public static final int X_QueryFont = 47 ;
84    public static final int X_QueryTextExtents = 48 ;
85    public static final int X_ListFonts = 49 ;
86    public static final int X_ListFontsWithInfo = 50 ;
87    public static final int X_SetFontPath = 51 ;
88    public static final int X_GetFontPath = 52 ;
89    public static final int X_CreatePixmap = 53 ;
90    public static final int X_FreePixmap = 54 ;
91    public static final int X_CreateGC = 55 ;
92    public static final int X_ChangeGC = 56 ;
93    public static final int X_CopyGC = 57 ;
94    public static final int X_SetDashes = 58 ;
95    public static final int X_SetClipRectangles = 59 ;
96    public static final int X_FreeGC = 60 ;
97    public static final int X_ClearArea = 61 ;
98    public static final int X_CopyArea = 62 ;
99    public static final int X_CopyPlane = 63 ;
100    public static final int X_PolyPoint = 64 ;
101    public static final int X_PolyLine = 65 ;
102    public static final int X_PolySegment = 66 ;
103    public static final int X_PolyRectangle = 67 ;
104    public static final int X_PolyArc = 68 ;
105    public static final int X_FillPoly = 69 ;
106    public static final int X_PolyFillRectangle = 70 ;
107    public static final int X_PolyFillArc = 71 ;
108    public static final int X_PutImage = 72 ;
109    public static final int X_GetImage = 73 ;
110    public static final int X_PolyText8 = 74 ;
111    public static final int X_PolyText16 = 75 ;
112    public static final int X_ImageText8 = 76 ;
113    public static final int X_ImageText16 = 77 ;
114    public static final int X_CreateColormap = 78 ;
115    public static final int X_FreeColormap = 79 ;
116    public static final int X_CopyColormapAndFree = 80 ;
117    public static final int X_InstallColormap = 81 ;
118    public static final int X_UninstallColormap = 82 ;
119    public static final int X_ListInstalledColormaps = 83 ;
120    public static final int X_AllocColor = 84 ;
121    public static final int X_AllocNamedColor = 85 ;
122    public static final int X_AllocColorCells = 86 ;
123    public static final int X_AllocColorPlanes = 87 ;
124    public static final int X_FreeColors = 88 ;
125    public static final int X_StoreColors = 89 ;
126    public static final int X_StoreNamedColor = 90 ;
127    public static final int X_QueryColors = 91 ;
128    public static final int X_LookupColor = 92 ;
129    public static final int X_CreateCursor = 93 ;
130    public static final int X_CreateGlyphCursor = 94 ;
131    public static final int X_FreeCursor = 95 ;
132    public static final int X_RecolorCursor = 96 ;
133    public static final int X_QueryBestSize = 97 ;
134    public static final int X_QueryExtension = 98 ;
135    public static final int X_ListExtensions = 99 ;
136    public static final int X_ChangeKeyboardMapping = 100 ;
137    public static final int X_GetKeyboardMapping = 101 ;
138    public static final int X_ChangeKeyboardControl = 102 ;
139    public static final int X_GetKeyboardControl = 103 ;
140    public static final int X_Bell = 104 ;
141    public static final int X_ChangePointerControl = 105 ;
142    public static final int X_GetPointerControl = 106 ;
143    public static final int X_SetScreenSaver = 107 ;
144    public static final int X_GetScreenSaver = 108 ;
145    public static final int X_ChangeHosts = 109 ;
146    public static final int X_ListHosts = 110 ;
147    public static final int X_SetAccessControl = 111 ;
148    public static final int X_SetCloseDownMode = 112 ;
149    public static final int X_KillClient = 113 ;
150    public static final int X_RotateProperties = 114 ;
151    public static final int X_ForceScreenSaver = 115 ;
152    public static final int X_SetPointerMapping = 116 ;
153    public static final int X_GetPointerMapping = 117 ;
154    public static final int X_SetModifierMapping = 118 ;
155    public static final int X_GetModifierMapping = 119 ;
156    public static final int X_NoOperation = 127 ;
157}
158