jdk/src/solaris/classes/sun/awt/X11/XConstants.java
author yan
Tue, 06 Oct 2009 23:40:27 -0700
changeset 3972 8942e64cf57d
parent 2473 3f4bbd3be2f1
child 5506 202f599c92aa
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
2473
3f4bbd3be2f1 6680988: KeyEvent is still missing VK values for many keyboards
yan
parents: 1962
diff changeset
     2
 * Copyright 2003-2009 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 XConstants {
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 XConstants(){}
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
    public static final int X_PROTOCOL = 11 ; /* current protocol version */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
    public static final int X_PROTOCOL_REVISION = 0 ; /* current minor version */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
    /* Resources */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
     * _XSERVER64 must ONLY be defined when compiling X server sources on
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
     * systems where unsigned long is not 32 bits, must NOT be used in
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
     * client or library code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
    #ifndef _XSERVER64
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
    typedef unsigned long XID;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
    typedef unsigned long Mask;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
    typedef unsigned long Atom;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
    typedef unsigned long VisualID;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
    typedef unsigned long Time;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
    #else
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
    typedef CARD32 XID;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
    typedef CARD32 Mask;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
    typedef CARD32 Atom;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
    typedef CARD32 VisualID;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    typedef CARD32 Time;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
    #endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
    typedef XID Window;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
    typedef XID Drawable;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
    typedef XID Font;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
    typedef XID Pixmap;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
    typedef XID Cursor;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
    typedef XID Colormap;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    typedef XID GContext;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
    typedef XID KeySym;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
    typedef unsigned char KeyCode;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
    /*****************************************************************
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
     * RESERVED RESOURCE AND CONSTANT DEFINITIONS
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
     *****************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
    public static final long None = 0L ; /* universal null resource or null atom */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
    /* background pixmap in CreateWindow and ChangeWindowAttributes */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
    public static final long ParentRelative = 1L ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    /* border pixmap in CreateWindow and ChangeWindowAttributes special
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
     * VisualID and special window class passed to CreateWindow */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    public static final long CopyFromParent = 0L ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
    public static final long PointerWindow = 0L ; /* destination window in SendEvent */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
    public static final long InputFocus = 1L ; /* destination window in SendEvent */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
    public static final long PointerRoot = 1L ; /* focus window in SetInputFocus */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    public static final long AnyPropertyType = 0L ; /* special Atom, passed to GetProperty */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
    public static final long AnyKey = 0L ; /* special Key Code, passed to GrabKey */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
    public static final long AnyButton = 0L ; /* special Button Code, passed to GrabButton */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
    public static final long AllTemporary = 0L ; /* special Resource ID passed to KillClient */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
    public static final long CurrentTime = 0L ; /* special Time */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
    public static final long NoSymbol = 0L ; /* special KeySym */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
    /*****************************************************************
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
     * EVENT DEFINITIONS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
     *****************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
    /* Input Event Masks. Used as event-mask window attribute and as arguments
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
       to Grab requests.  Not to be confused with event names.  */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
    public static final long NoEventMask = 0L ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
    public static final long KeyPressMask = (1L<<0) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
    public static final long KeyReleaseMask = (1L<<1) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
    public static final long ButtonPressMask = (1L<<2) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
    public static final long ButtonReleaseMask = (1L<<3) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
    public static final long EnterWindowMask = (1L<<4) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
    public static final long LeaveWindowMask = (1L<<5) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
    public static final long PointerMotionMask = (1L<<6) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
    public static final long PointerMotionHintMask = (1L<<7) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    public static final long Button1MotionMask = (1L<<8) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
    public static final long Button2MotionMask = (1L<<9) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
    public static final long Button3MotionMask = (1L<<10) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
    public static final long Button4MotionMask = (1L<<11) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
    public static final long Button5MotionMask = (1L<<12) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
    public static final long ButtonMotionMask = (1L<<13) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
    public static final long KeymapStateMask = (1L<<14) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
    public static final long ExposureMask = (1L<<15) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
    public static final long VisibilityChangeMask = (1L<<16) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
    public static final long StructureNotifyMask = (1L<<17) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
    public static final long ResizeRedirectMask = (1L<<18) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
    public static final long SubstructureNotifyMask = (1L<<19) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
    public static final long SubstructureRedirectMask = (1L<<20) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
    public static final long FocusChangeMask = (1L<<21) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
    public static final long PropertyChangeMask = (1L<<22) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
    public static final long ColormapChangeMask = (1L<<23) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
    public static final long OwnerGrabButtonMask = (1L<<24) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
    /* Event names.  Used in "type" field in XEvent structures.  Not to be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
    confused with event masks above.  They start from 2 because 0 and 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
    are reserved in the protocol for errors and replies. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
    public static final int KeyPress = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
    public static final int KeyRelease = 3 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
    public static final int ButtonPress = 4 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
    public static final int ButtonRelease = 5 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
    public static final int MotionNotify = 6 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
    public static final int EnterNotify = 7 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
    public static final int LeaveNotify = 8 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
    public static final int FocusIn = 9 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
    public static final int FocusOut = 10 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
    public static final int KeymapNotify = 11 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
    public static final int Expose = 12 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
    public static final int GraphicsExpose = 13 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
    public static final int NoExpose = 14 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
    public static final int VisibilityNotify = 15 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
    public static final int CreateNotify = 16 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
    public static final int DestroyNotify = 17 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
    public static final int UnmapNotify = 18 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
    public static final int MapNotify = 19 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
    public static final int MapRequest = 20 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
    public static final int ReparentNotify = 21 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
    public static final int ConfigureNotify = 22 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
    public static final int ConfigureRequest = 23 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
    public static final int GravityNotify = 24 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
    public static final int ResizeRequest = 25 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
    public static final int CirculateNotify = 26 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
    public static final int CirculateRequest = 27 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
    public static final int PropertyNotify = 28 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
    public static final int SelectionClear = 29 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
    public static final int SelectionRequest = 30 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
    public static final int SelectionNotify = 31 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
    public static final int ColormapNotify = 32 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
    public static final int ClientMessage = 33 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
    public static final int MappingNotify = 34 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
    public static final int LASTEvent = 35 ; /* must be bigger than any event # */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
    /* Key masks. Used as modifiers to GrabButton and GrabKey, results of QueryPointer,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
       state in various key-, mouse-, and button-related events. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
    public static final int ShiftMask = (1<<0) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
    public static final int LockMask = (1<<1) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
    public static final int ControlMask = (1<<2) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
    public static final int Mod1Mask = (1<<3) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
    public static final int Mod2Mask = (1<<4) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
    public static final int Mod3Mask = (1<<5) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
    public static final int Mod4Mask = (1<<6) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
    public static final int Mod5Mask = (1<<7) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
    /* modifier names.  Used to build a SetModifierMapping request or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
       to read a GetModifierMapping request.  These correspond to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
       masks defined above. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
    public static final int ShiftMapIndex = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
    public static final int LockMapIndex = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
    public static final int ControlMapIndex = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
    public static final int Mod1MapIndex = 3 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
    public static final int Mod2MapIndex = 4 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
    public static final int Mod3MapIndex = 5 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
    public static final int Mod4MapIndex = 6 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
    public static final int Mod5MapIndex = 7 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
    /* button masks.  Used in same manner as Key masks above. Not to be confused
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
       with button names below. */
1962
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   200
    public static final int [] buttonsMask = new int []{ 1<<8,
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   201
                                                         1<<9,
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   202
                                                         1<<10,
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   203
                                                         1<<11,
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   204
                                                         1<<12,
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   205
                                                         1<<13,
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   206
                                                         1<<14,
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   207
                                                         1<<15,
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   208
                                                         1<<16,
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   209
                                                         1<<17,
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   210
                                                         1<<18,
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   211
                                                         1<<19,
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   212
                                                         1<<20,
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   213
                                                         1<<21,
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   214
                                                         1<<22,
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   215
                                                         1<<23,
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   216
                                                         1<<24,
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   217
                                                         1<<25,
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   218
                                                         1<<26,
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   219
                                                         1<<27,
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   220
                                                         1<<28,
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   221
                                                         1<<29,
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   222
                                                         1<<30,
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   223
                                                         1<<31 };
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
    public static final int AnyModifier = (1<<15) ; /* used in GrabButton, GrabKey */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
    /* button names. Used as arguments to GrabButton and as detail in ButtonPress
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
       and ButtonRelease events.  Not to be confused with button masks above.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
       Note that 0 is already defined above as "AnyButton".  */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
1962
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 439
diff changeset
   232
    public static final int buttons [] = new int [] {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24};
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
    /* Notify modes */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
    public static final int NotifyNormal = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
    public static final int NotifyGrab = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
    public static final int NotifyUngrab = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
    public static final int NotifyWhileGrabbed = 3 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
    public static final int NotifyHint = 1 ; /* for MotionNotify events */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
    /* Notify detail */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
    public static final int NotifyAncestor = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
    public static final int NotifyVirtual = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
    public static final int NotifyInferior = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
    public static final int NotifyNonlinear = 3 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
    public static final int NotifyNonlinearVirtual = 4 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
    public static final int NotifyPointer = 5 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
    public static final int NotifyPointerRoot = 6 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
    public static final int NotifyDetailNone = 7 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
    /* Visibility notify */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
    public static final int VisibilityUnobscured = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
    public static final int VisibilityPartiallyObscured = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
    public static final int VisibilityFullyObscured = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
    /* Circulation request */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
    public static final int PlaceOnTop = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
    public static final int PlaceOnBottom = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
    /* protocol families */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
    public static final int FamilyInternet = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
    public static final int FamilyDECnet = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
    public static final int FamilyChaos = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
    /* Property notification */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
    public static final int PropertyNewValue = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
    public static final int PropertyDelete = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
    /* Color Map notification */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
    public static final int ColormapUninstalled = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
    public static final int ColormapInstalled = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
    /* GrabPointer, GrabButton, GrabKeyboard, GrabKey Modes */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
    public static final int GrabModeSync = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
    public static final int GrabModeAsync = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
    /* GrabPointer, GrabKeyboard reply status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
    public static final int GrabSuccess = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
    public static final int AlreadyGrabbed = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
    public static final int GrabInvalidTime = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
    public static final int GrabNotViewable = 3 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
    public static final int GrabFrozen = 4 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
    /* AllowEvents modes */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
    public static final int AsyncPointer = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
    public static final int SyncPointer = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
    public static final int ReplayPointer = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
    public static final int AsyncKeyboard = 3 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
    public static final int SyncKeyboard = 4 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
    public static final int ReplayKeyboard = 5 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
    public static final int AsyncBoth = 6 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
    public static final int SyncBoth = 7 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
    /* Used in SetInputFocus, GetInputFocus */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
    public static final int RevertToNone = (int)None ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
    public static final int RevertToPointerRoot = (int)PointerRoot ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
    public static final int RevertToParent = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
    /* Used in XEventsQueued */
439
3488710b02f8 6623459: Get rid of XConstant, XProtocolConstants and XUtilConstants antipattern
dav
parents: 2
diff changeset
   312
    public static final int QueuedAlready = 0;
3488710b02f8 6623459: Get rid of XConstant, XProtocolConstants and XUtilConstants antipattern
dav
parents: 2
diff changeset
   313
    public static final int QueuedAfterReading = 1;
3488710b02f8 6623459: Get rid of XConstant, XProtocolConstants and XUtilConstants antipattern
dav
parents: 2
diff changeset
   314
    public static final int QueuedAfterFlush = 2;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
    /*****************************************************************
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
     * ERROR CODES
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
     *****************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
    public static final int Success = 0 ; /* everything's okay */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
    public static final int BadRequest = 1 ; /* bad request code */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
    public static final int BadValue = 2 ; /* int parameter out of range */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
    public static final int BadWindow = 3 ; /* parameter not a Window */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
    public static final int BadPixmap = 4 ; /* parameter not a Pixmap */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
    public static final int BadAtom = 5 ; /* parameter not an Atom */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
    public static final int BadCursor = 6 ; /* parameter not a Cursor */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
    public static final int BadFont = 7 ; /* parameter not a Font */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
    public static final int BadMatch = 8 ; /* parameter mismatch */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
    public static final int BadDrawable = 9 ; /* parameter not a Pixmap or Window */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
    public static final int BadAccess = 10 ; /* depending on context:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
                     - key/button already grabbed
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
                     - attempt to free an illegal
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
                       cmap entry
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
                    - attempt to store into a read-only
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
                       color map entry.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
                    - attempt to modify the access control
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
                       list from other than the local host.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
                    */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
    public static final int BadAlloc = 11 ; /* insufficient resources */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
    public static final int BadColor = 12 ; /* no such colormap */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
    public static final int BadGC = 13 ; /* parameter not a GC */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
    public static final int BadIDChoice = 14 ; /* choice not in range or already used */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
    public static final int BadName = 15 ; /* font or color name doesn't exist */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
    public static final int BadLength = 16 ; /* Request length incorrect */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
    public static final int BadImplementation = 17 ; /* server is defective */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
    public static final int FirstExtensionError = 128 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
    public static final int LastExtensionError = 255 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
    /*****************************************************************
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
     * WINDOW DEFINITIONS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
     *****************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
    /* Window classes used by CreateWindow */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
    /* Note that CopyFromParent is already defined as 0 above */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
    public static final int InputOutput = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
    public static final int InputOnly = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
    /* Window attributes for CreateWindow and ChangeWindowAttributes */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
    public static final long CWBackPixmap = (1L<<0) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
    public static final long CWBackPixel = (1L<<1) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
    public static final long CWBorderPixmap = (1L<<2) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
    public static final long CWBorderPixel = (1L<<3) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
    public static final long CWBitGravity = (1L<<4) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
    public static final long CWWinGravity = (1L<<5) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
    public static final long CWBackingStore = (1L<<6) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
    public static final long CWBackingPlanes = (1L<<7) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
    public static final long CWBackingPixel = (1L<<8) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
    public static final long CWOverrideRedirect = (1L<<9) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
    public static final long CWSaveUnder = (1L<<10) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
    public static final long CWEventMask = (1L<<11) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
    public static final long CWDontPropagate = (1L<<12) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
    public static final long CWColormap = (1L<<13) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
    public static final long CWCursor = (1L<<14) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
    /* ConfigureWindow structure */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
    public static final int CWX = (1<<0) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
    public static final int CWY = (1<<1) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
    public static final int CWWidth = (1<<2) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
    public static final int CWHeight = (1<<3) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
    public static final int CWBorderWidth = (1<<4) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
    public static final int CWSibling = (1<<5) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
    public static final int CWStackMode = (1<<6) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
    /* Bit Gravity */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
    public static final int ForgetGravity = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
    public static final int NorthWestGravity = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
    public static final int NorthGravity = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
    public static final int NorthEastGravity = 3 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
    public static final int WestGravity = 4 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
    public static final int CenterGravity = 5 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
    public static final int EastGravity = 6 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
    public static final int SouthWestGravity = 7 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
    public static final int SouthGravity = 8 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
    public static final int SouthEastGravity = 9 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
    public static final int StaticGravity = 10 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
    /* Window gravity + bit gravity above */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
    public static final int UnmapGravity = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
    /* Used in CreateWindow for backing-store hint */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
    public static final int NotUseful = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
    public static final int WhenMapped = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
    public static final int Always = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
    /* Used in GetWindowAttributes reply */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
    public static final int IsUnmapped = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
    public static final int IsUnviewable = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
    public static final int IsViewable = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
    /* Used in ChangeSaveSet */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
    public static final int SetModeInsert = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
    public static final int SetModeDelete = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
    /* Used in ChangeCloseDownMode */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
    public static final int DestroyAll = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
    public static final int RetainPermanent = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
    public static final int RetainTemporary = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
    /* Window stacking method (in configureWindow) */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
    public static final int Above = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
    public static final int Below = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
    public static final int TopIf = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
    public static final int BottomIf = 3 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
    public static final int Opposite = 4 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
    /* Circulation direction */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
    public static final int RaiseLowest = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
    public static final int LowerHighest = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
    /* Property modes */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
    public static final int PropModeReplace = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
    public static final int PropModePrepend = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
    public static final int PropModeAppend = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
    /*****************************************************************
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
     * GRAPHICS DEFINITIONS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
     *****************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
    /* graphics functions, as in GC.alu */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
    public static final int GXclear = 0x0 ; /* 0 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
    public static final int GXand = 0x1 ; /* src AND dst */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
    public static final int GXandReverse = 0x2 ; /* src AND NOT dst */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
    public static final int GXcopy = 0x3 ; /* src */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
    public static final int GXandInverted = 0x4 ; /* NOT src AND dst */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
    public static final int GXnoop = 0x5 ; /* dst */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
    public static final int GXxor = 0x6 ; /* src XOR dst */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
    public static final int GXor = 0x7 ; /* src OR dst */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
    public static final int GXnor = 0x8 ; /* NOT src AND NOT dst */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
    public static final int GXequiv = 0x9 ; /* NOT src XOR dst */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
    public static final int GXinvert = 0xa ; /* NOT dst */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
    public static final int GXorReverse = 0xb ; /* src OR NOT dst */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
    public static final int GXcopyInverted = 0xc ; /* NOT src */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
    public static final int GXorInverted = 0xd ; /* NOT src OR dst */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
    public static final int GXnand = 0xe ; /* NOT src OR NOT dst */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
    public static final int GXset = 0xf ; /* 1 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
    /* LineStyle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
    public static final int LineSolid = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
    public static final int LineOnOffDash = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
    public static final int LineDoubleDash = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
    /* capStyle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
    public static final int CapNotLast = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
    public static final int CapButt = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
    public static final int CapRound = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
    public static final int CapProjecting = 3 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
    /* joinStyle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
    public static final int JoinMiter = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
    public static final int JoinRound = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
    public static final int JoinBevel = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
    /* fillStyle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
    public static final int FillSolid = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
    public static final int FillTiled = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
    public static final int FillStippled = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
    public static final int FillOpaqueStippled = 3 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
    /* fillRule */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
    public static final int EvenOddRule = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
    public static final int WindingRule = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
    /* subwindow mode */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
    public static final int ClipByChildren = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
    public static final int IncludeInferiors = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
    /* SetClipRectangles ordering */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
    public static final int Unsorted = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
    public static final int YSorted = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
    public static final int YXSorted = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   514
    public static final int YXBanded = 3 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
90ce3da70b43 Initial load
duke
parents:
diff changeset
   516
    /* CoordinateMode for drawing routines */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   517
90ce3da70b43 Initial load
duke
parents:
diff changeset
   518
    public static final int CoordModeOrigin = 0 ; /* relative to the origin */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   519
    public static final int CoordModePrevious = 1 ; /* relative to previous point */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   520
90ce3da70b43 Initial load
duke
parents:
diff changeset
   521
    /* Polygon shapes */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   522
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523
    public static final int Complex = 0 ; /* paths may intersect */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
    public static final int Nonconvex = 1 ; /* no paths intersect, but not convex */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   525
    public static final int Convex = 2 ; /* wholly convex */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   526
90ce3da70b43 Initial load
duke
parents:
diff changeset
   527
    /* Arc modes for PolyFillArc */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   528
90ce3da70b43 Initial load
duke
parents:
diff changeset
   529
    public static final int ArcChord = 0 ; /* join endpoints of arc */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   530
    public static final int ArcPieSlice = 1 ; /* join endpoints to center of arc */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   531
90ce3da70b43 Initial load
duke
parents:
diff changeset
   532
    /* GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into
90ce3da70b43 Initial load
duke
parents:
diff changeset
   533
       GC.stateChanges */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
90ce3da70b43 Initial load
duke
parents:
diff changeset
   535
    public static final long GCFunction = (1L<<0) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   536
    public static final long GCPlaneMask = (1L<<1) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   537
    public static final long GCForeground = (1L<<2) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
    public static final long GCBackground = (1L<<3) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   539
    public static final long GCLineWidth = (1L<<4) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   540
    public static final long GCLineStyle = (1L<<5) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   541
    public static final long GCCapStyle = (1L<<6) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   542
    public static final long GCJoinStyle = (1L<<7) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   543
    public static final long GCFillStyle = (1L<<8) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   544
    public static final long GCFillRule = (1L<<9) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   545
    public static final long GCTile = (1L<<10) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   546
    public static final long GCStipple = (1L<<11) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   547
    public static final long GCTileStipXOrigin = (1L<<12) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   548
    public static final long GCTileStipYOrigin = (1L<<13) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   549
    public static final long GCFont = (1L<<14) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
    public static final long GCSubwindowMode = (1L<<15) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   551
    public static final long GCGraphicsExposures = (1L<<16) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   552
    public static final long GCClipXOrigin = (1L<<17) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   553
    public static final long GCClipYOrigin = (1L<<18) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   554
    public static final long GCClipMask = (1L<<19) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   555
    public static final long GCDashOffset = (1L<<20) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   556
    public static final long GCDashList = (1L<<21) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   557
    public static final long GCArcMode = (1L<<22) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   558
90ce3da70b43 Initial load
duke
parents:
diff changeset
   559
    public static final int GCLastBit = 22 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   560
    /*****************************************************************
90ce3da70b43 Initial load
duke
parents:
diff changeset
   561
     * FONTS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   562
     *****************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   563
90ce3da70b43 Initial load
duke
parents:
diff changeset
   564
    /* used in QueryFont -- draw direction */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   565
90ce3da70b43 Initial load
duke
parents:
diff changeset
   566
    public static final int FontLeftToRight = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   567
    public static final int FontRightToLeft = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   568
90ce3da70b43 Initial load
duke
parents:
diff changeset
   569
    public static final int FontChange = 255 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   570
90ce3da70b43 Initial load
duke
parents:
diff changeset
   571
    /*****************************************************************
90ce3da70b43 Initial load
duke
parents:
diff changeset
   572
     *  IMAGING
90ce3da70b43 Initial load
duke
parents:
diff changeset
   573
     *****************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   574
90ce3da70b43 Initial load
duke
parents:
diff changeset
   575
    /* ImageFormat -- PutImage, GetImage */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   576
90ce3da70b43 Initial load
duke
parents:
diff changeset
   577
    public static final int XYBitmap = 0 ; /* depth 1, XYFormat */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   578
    public static final int XYPixmap = 1 ; /* depth == drawable depth */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   579
    public static final int ZPixmap = 2 ; /* depth == drawable depth */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   580
90ce3da70b43 Initial load
duke
parents:
diff changeset
   581
    /*****************************************************************
90ce3da70b43 Initial load
duke
parents:
diff changeset
   582
     *  COLOR MAP STUFF
90ce3da70b43 Initial load
duke
parents:
diff changeset
   583
     *****************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   584
90ce3da70b43 Initial load
duke
parents:
diff changeset
   585
    /* For CreateColormap */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   586
90ce3da70b43 Initial load
duke
parents:
diff changeset
   587
    public static final int AllocNone = 0 ; /* create map with no entries */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   588
    public static final int AllocAll = 1 ; /* allocate entire map writeable */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   589
90ce3da70b43 Initial load
duke
parents:
diff changeset
   590
90ce3da70b43 Initial load
duke
parents:
diff changeset
   591
    /* Flags used in StoreNamedColor, StoreColors */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   592
90ce3da70b43 Initial load
duke
parents:
diff changeset
   593
    public static final int DoRed = (1<<0) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   594
    public static final int DoGreen = (1<<1) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   595
    public static final int DoBlue = (1<<2) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   596
90ce3da70b43 Initial load
duke
parents:
diff changeset
   597
    /*****************************************************************
90ce3da70b43 Initial load
duke
parents:
diff changeset
   598
     * CURSOR STUFF
90ce3da70b43 Initial load
duke
parents:
diff changeset
   599
     *****************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   600
90ce3da70b43 Initial load
duke
parents:
diff changeset
   601
    /* QueryBestSize Class */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   602
90ce3da70b43 Initial load
duke
parents:
diff changeset
   603
    public static final int CursorShape = 0 ; /* largest size that can be displayed */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   604
    public static final int TileShape = 1 ; /* size tiled fastest */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   605
    public static final int StippleShape = 2 ; /* size stippled fastest */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   606
90ce3da70b43 Initial load
duke
parents:
diff changeset
   607
    /*****************************************************************
90ce3da70b43 Initial load
duke
parents:
diff changeset
   608
     * KEYBOARD/POINTER STUFF
90ce3da70b43 Initial load
duke
parents:
diff changeset
   609
     *****************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   610
90ce3da70b43 Initial load
duke
parents:
diff changeset
   611
    public static final int AutoRepeatModeOff = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   612
    public static final int AutoRepeatModeOn = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   613
    public static final int AutoRepeatModeDefault = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   614
90ce3da70b43 Initial load
duke
parents:
diff changeset
   615
    public static final int LedModeOff = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   616
    public static final int LedModeOn = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   617
90ce3da70b43 Initial load
duke
parents:
diff changeset
   618
    /* masks for ChangeKeyboardControl */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   619
90ce3da70b43 Initial load
duke
parents:
diff changeset
   620
    public static final long KBKeyClickPercent = (1L<<0) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   621
    public static final long KBBellPercent = (1L<<1) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   622
    public static final long KBBellPitch = (1L<<2) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   623
    public static final long KBBellDuration = (1L<<3) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   624
    public static final long KBLed = (1L<<4) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   625
    public static final long KBLedMode = (1L<<5) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   626
    public static final long KBKey = (1L<<6) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   627
    public static final long KBAutoRepeatMode = (1L<<7) ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   628
90ce3da70b43 Initial load
duke
parents:
diff changeset
   629
    public static final int MappingSuccess = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   630
    public static final int MappingBusy = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   631
    public static final int MappingFailed = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   632
90ce3da70b43 Initial load
duke
parents:
diff changeset
   633
    public static final int MappingModifier = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   634
    public static final int MappingKeyboard = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   635
    public static final int MappingPointer = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   636
90ce3da70b43 Initial load
duke
parents:
diff changeset
   637
    /*****************************************************************
90ce3da70b43 Initial load
duke
parents:
diff changeset
   638
     * SCREEN SAVER STUFF
90ce3da70b43 Initial load
duke
parents:
diff changeset
   639
     *****************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   640
90ce3da70b43 Initial load
duke
parents:
diff changeset
   641
    public static final int DontPreferBlanking = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   642
    public static final int PreferBlanking = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   643
    public static final int DefaultBlanking = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   644
90ce3da70b43 Initial load
duke
parents:
diff changeset
   645
    public static final int DisableScreenSaver = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   646
    public static final int DisableScreenInterval = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   647
90ce3da70b43 Initial load
duke
parents:
diff changeset
   648
    public static final int DontAllowExposures = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   649
    public static final int AllowExposures = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   650
    public static final int DefaultExposures = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   651
90ce3da70b43 Initial load
duke
parents:
diff changeset
   652
    /* for ForceScreenSaver */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   653
90ce3da70b43 Initial load
duke
parents:
diff changeset
   654
    public static final int ScreenSaverReset = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   655
    public static final int ScreenSaverActive = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   656
90ce3da70b43 Initial load
duke
parents:
diff changeset
   657
    /*****************************************************************
90ce3da70b43 Initial load
duke
parents:
diff changeset
   658
     * HOSTS AND CONNECTIONS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   659
     *****************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   660
90ce3da70b43 Initial load
duke
parents:
diff changeset
   661
    /* for ChangeHosts */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   662
90ce3da70b43 Initial load
duke
parents:
diff changeset
   663
    public static final int HostInsert = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   664
    public static final int HostDelete = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   665
90ce3da70b43 Initial load
duke
parents:
diff changeset
   666
    /* for ChangeAccessControl */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   667
90ce3da70b43 Initial load
duke
parents:
diff changeset
   668
    public static final int EnableAccess = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   669
    public static final int DisableAccess = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   670
90ce3da70b43 Initial load
duke
parents:
diff changeset
   671
    /* Display classes  used in opening the connection
90ce3da70b43 Initial load
duke
parents:
diff changeset
   672
     * Note that the statically allocated ones are even numbered and the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   673
     * dynamically changeable ones are odd numbered */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   674
90ce3da70b43 Initial load
duke
parents:
diff changeset
   675
    public static final int StaticGray = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   676
    public static final int GrayScale = 1 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   677
    public static final int StaticColor = 2 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   678
    public static final int PseudoColor = 3 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   679
    public static final int TrueColor = 4 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   680
    public static final int DirectColor = 5 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   681
90ce3da70b43 Initial load
duke
parents:
diff changeset
   682
90ce3da70b43 Initial load
duke
parents:
diff changeset
   683
    /* Byte order  used in imageByteOrder and bitmapBitOrder */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   684
90ce3da70b43 Initial load
duke
parents:
diff changeset
   685
    public static final int LSBFirst = 0 ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   686
    public static final int MSBFirst = 1 ;
2473
3f4bbd3be2f1 6680988: KeyEvent is still missing VK values for many keyboards
yan
parents: 1962
diff changeset
   687
3f4bbd3be2f1 6680988: KeyEvent is still missing VK values for many keyboards
yan
parents: 1962
diff changeset
   688
    /* XKB support */
3f4bbd3be2f1 6680988: KeyEvent is still missing VK values for many keyboards
yan
parents: 1962
diff changeset
   689
    public static final int  XkbUseCoreKbd = 0x0100 ;
3f4bbd3be2f1 6680988: KeyEvent is still missing VK values for many keyboards
yan
parents: 1962
diff changeset
   690
    public static final int  XkbNewKeyboardNotify = 0;
3f4bbd3be2f1 6680988: KeyEvent is still missing VK values for many keyboards
yan
parents: 1962
diff changeset
   691
    public static final int  XkbMapNotify = 1;
3f4bbd3be2f1 6680988: KeyEvent is still missing VK values for many keyboards
yan
parents: 1962
diff changeset
   692
    public static final int  XkbStateNotify = 2;
3f4bbd3be2f1 6680988: KeyEvent is still missing VK values for many keyboards
yan
parents: 1962
diff changeset
   693
    public static final long XkbNewKeyboardNotifyMask = (1L << 0);
3f4bbd3be2f1 6680988: KeyEvent is still missing VK values for many keyboards
yan
parents: 1962
diff changeset
   694
    public static final long XkbMapNotifyMask = (1L << 1);
3f4bbd3be2f1 6680988: KeyEvent is still missing VK values for many keyboards
yan
parents: 1962
diff changeset
   695
    public static final long XkbStateNotifyMask = (1L << 2);
3f4bbd3be2f1 6680988: KeyEvent is still missing VK values for many keyboards
yan
parents: 1962
diff changeset
   696
    public static final long XkbGroupStateMask  = (1L << 4);
3f4bbd3be2f1 6680988: KeyEvent is still missing VK values for many keyboards
yan
parents: 1962
diff changeset
   697
    public static final long XkbKeyTypesMask = (1L<<0);
3f4bbd3be2f1 6680988: KeyEvent is still missing VK values for many keyboards
yan
parents: 1962
diff changeset
   698
    public static final long XkbKeySymsMask = (1L<<1);
3f4bbd3be2f1 6680988: KeyEvent is still missing VK values for many keyboards
yan
parents: 1962
diff changeset
   699
    public static final long XkbModifierMapMask = (1L<<2);
3f4bbd3be2f1 6680988: KeyEvent is still missing VK values for many keyboards
yan
parents: 1962
diff changeset
   700
    public static final long XkbVirtualModsMask = (1L<<6); //server map
3f4bbd3be2f1 6680988: KeyEvent is still missing VK values for many keyboards
yan
parents: 1962
diff changeset
   701
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   702
}