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