6447N/A * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A public static final int X_PROTOCOL =
11 ;
/* current protocol version */ 0N/A * _XSERVER64 must ONLY be defined when compiling X server sources on 0N/A * systems where unsigned long is not 32 bits, must NOT be used in 0N/A * client or library code. 0N/A typedef unsigned long XID; 0N/A typedef unsigned long Mask; 0N/A typedef unsigned long Atom; 0N/A typedef unsigned long VisualID; 0N/A typedef unsigned long Time; 0N/A typedef CARD32 Mask; 0N/A typedef CARD32 Atom; 0N/A typedef CARD32 VisualID; 0N/A typedef CARD32 Time; 0N/A typedef XID Drawable; 0N/A typedef XID Colormap; 0N/A typedef XID GContext; 0N/A typedef unsigned char KeyCode; 0N/A /***************************************************************** 0N/A * RESERVED RESOURCE AND CONSTANT DEFINITIONS 0N/A *****************************************************************/ 0N/A public static final long None =
0L ;
/* universal null resource or null atom */ 0N/A /* background pixmap in CreateWindow and ChangeWindowAttributes */ 0N/A /* border pixmap in CreateWindow and ChangeWindowAttributes special 0N/A * VisualID and special window class passed to CreateWindow */ 0N/A public static final long PointerWindow =
0L ;
/* destination window in SendEvent */ 0N/A public static final long InputFocus =
1L ;
/* destination window in SendEvent */ 0N/A public static final long PointerRoot =
1L ;
/* focus window in SetInputFocus */ 0N/A public static final long AnyKey =
0L ;
/* special Key Code, passed to GrabKey */ 0N/A public static final long AnyButton =
0L ;
/* special Button Code, passed to GrabButton */ 0N/A public static final long AllTemporary =
0L ;
/* special Resource ID passed to KillClient */ 0N/A public static final long NoSymbol =
0L ;
/* special KeySym */ 0N/A /***************************************************************** 0N/A *****************************************************************/ 0N/A /* Input Event Masks. Used as event-mask window attribute and as arguments 0N/A to Grab requests. Not to be confused with event names. */ 0N/A /* Event names. Used in "type" field in XEvent structures. Not to be 0N/A confused with event masks above. They start from 2 because 0 and 1 0N/A are reserved in the protocol for errors and replies. */ 0N/A public static final int LASTEvent =
35 ;
/* must be bigger than any event # */ 0N/A /* Key masks. Used as modifiers to GrabButton and GrabKey, results of QueryPointer, 0N/A state in various key-, mouse-, and button-related events. */ 0N/A /* modifier names. Used to build a SetModifierMapping request or 0N/A to read a GetModifierMapping request. These correspond to the 0N/A masks defined above. */ 0N/A /* button masks. Used in same manner as Key masks above. Not to be confused 0N/A with button names below. */ 0N/A public static final int AnyModifier = (
1<<
15) ;
/* used in GrabButton, GrabKey */ 0N/A /* button names. Used as arguments to GrabButton and as detail in ButtonPress 0N/A and ButtonRelease events. Not to be confused with button masks above. 0N/A Note that 0 is already defined above as "AnyButton". */ 870N/A 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};
0N/A public static final int NotifyHint =
1 ;
/* for MotionNotify events */ 0N/A /* Visibility notify */ 0N/A /* Circulation request */ 0N/A /* protocol families */ 0N/A /* Property notification */ 0N/A /* Color Map notification */ 0N/A /* GrabPointer, GrabButton, GrabKeyboard, GrabKey Modes */ 0N/A /* GrabPointer, GrabKeyboard reply status */ 0N/A /* AllowEvents modes */ 0N/A /* Used in SetInputFocus, GetInputFocus */ 0N/A /* Used in XEventsQueued */ 0N/A /***************************************************************** 0N/A *****************************************************************/ 0N/A public static final int Success =
0 ;
/* everything's okay */ 0N/A public static final int BadValue =
2 ;
/* int parameter out of range */ 0N/A public static final int BadWindow =
3 ;
/* parameter not a Window */ 0N/A public static final int BadPixmap =
4 ;
/* parameter not a Pixmap */ 0N/A public static final int BadAtom =
5 ;
/* parameter not an Atom */ 0N/A public static final int BadCursor =
6 ;
/* parameter not a Cursor */ 0N/A public static final int BadFont =
7 ;
/* parameter not a Font */ 0N/A public static final int BadMatch =
8 ;
/* parameter mismatch */ 0N/A public static final int BadDrawable =
9 ;
/* parameter not a Pixmap or Window */ 0N/A public static final int BadAccess =
10 ;
/* depending on context: 0N/A - attempt to free an illegal 0N/A - attempt to store into a read-only 0N/A - attempt to modify the access control 0N/A list from other than the local host. 0N/A public static final int BadAlloc =
11 ;
/* insufficient resources */ 0N/A public static final int BadColor =
12 ;
/* no such colormap */ 0N/A public static final int BadGC =
13 ;
/* parameter not a GC */ 0N/A public static final int BadIDChoice =
14 ;
/* choice not in range or already used */ 0N/A public static final int BadName =
15 ;
/* font or color name doesn't exist */ 0N/A public static final int BadLength =
16 ;
/* Request length incorrect */ 0N/A /***************************************************************** 0N/A * WINDOW DEFINITIONS 0N/A *****************************************************************/ 0N/A /* Window classes used by CreateWindow */ 0N/A /* Note that CopyFromParent is already defined as 0 above */ 0N/A /* Window attributes for CreateWindow and ChangeWindowAttributes */ 0N/A /* ConfigureWindow structure */ 0N/A public static final int CWX = (
1<<
0) ;
0N/A public static final int CWY = (
1<<
1) ;
0N/A /* Window gravity + bit gravity above */ 0N/A /* Used in CreateWindow for backing-store hint */ 0N/A /* Used in GetWindowAttributes reply */ 0N/A /* Used in ChangeSaveSet */ 0N/A /* Used in ChangeCloseDownMode */ 0N/A /* Window stacking method (in configureWindow) */ 0N/A /* Circulation direction */ 0N/A /* Property modes */ 0N/A /***************************************************************** 0N/A * GRAPHICS DEFINITIONS 0N/A *****************************************************************/ 0N/A /* graphics functions, as in GC.alu */ 0N/A public static final int GXand =
0x1 ;
/* src AND dst */ 0N/A public static final int GXcopy =
0x3 ;
/* src */ 0N/A public static final int GXnoop =
0x5 ;
/* dst */ 0N/A public static final int GXxor =
0x6 ;
/* src XOR dst */ 0N/A public static final int GXor =
0x7 ;
/* src OR dst */ 0N/A public static final int GXnor =
0x8 ;
/* NOT src AND NOT dst */ 0N/A public static final int GXequiv =
0x9 ;
/* NOT src XOR dst */ 0N/A public static final int GXnand =
0xe ;
/* NOT src OR NOT dst */ 0N/A public static final int GXset =
0xf ;
/* 1 */ 0N/A /* subwindow mode */ 0N/A /* SetClipRectangles ordering */ 0N/A /* CoordinateMode for drawing routines */ 0N/A /* Polygon shapes */ 0N/A public static final int Complex =
0 ;
/* paths may intersect */ 0N/A public static final int Nonconvex =
1 ;
/* no paths intersect, but not convex */ 0N/A public static final int Convex =
2 ;
/* wholly convex */ 0N/A /* Arc modes for PolyFillArc */ 0N/A public static final int ArcChord =
0 ;
/* join endpoints of arc */ 0N/A public static final int ArcPieSlice =
1 ;
/* join endpoints to center of arc */ 0N/A /* GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into 0N/A /***************************************************************** 0N/A *****************************************************************/ 0N/A /* used in QueryFont -- draw direction */ 0N/A /***************************************************************** 0N/A *****************************************************************/ 0N/A /* ImageFormat -- PutImage, GetImage */ 0N/A public static final int XYBitmap =
0 ;
/* depth 1, XYFormat */ 0N/A public static final int XYPixmap =
1 ;
/* depth == drawable depth */ 0N/A public static final int ZPixmap =
2 ;
/* depth == drawable depth */ 0N/A /***************************************************************** 0N/A *****************************************************************/ 0N/A /* For CreateColormap */ 0N/A public static final int AllocNone =
0 ;
/* create map with no entries */ 0N/A public static final int AllocAll =
1 ;
/* allocate entire map writeable */ 0N/A /* Flags used in StoreNamedColor, StoreColors */ 0N/A public static final int DoRed = (
1<<
0) ;
0N/A /***************************************************************** 0N/A *****************************************************************/ 0N/A /* QueryBestSize Class */ 0N/A public static final int CursorShape =
0 ;
/* largest size that can be displayed */ 0N/A public static final int TileShape =
1 ;
/* size tiled fastest */ 0N/A /***************************************************************** 0N/A *****************************************************************/ 0N/A /* masks for ChangeKeyboardControl */ 0N/A public static final long KBLed = (
1L<<
4) ;
0N/A public static final long KBKey = (
1L<<
6) ;
0N/A /***************************************************************** 0N/A * SCREEN SAVER STUFF 0N/A *****************************************************************/ 0N/A /* for ForceScreenSaver */ 0N/A /***************************************************************** 0N/A * HOSTS AND CONNECTIONS 0N/A *****************************************************************/ 0N/A /* for ChangeHosts */ 0N/A /* for ChangeAccessControl */ 0N/A /* Display classes used in opening the connection 0N/A * Note that the statically allocated ones are even numbered and the 0N/A * dynamically changeable ones are odd numbered */ 0N/A /* Byte order used in imageByteOrder and bitmapBitOrder */ 6447N/A /***************************************************************** 6447N/A * X SHARED MEMORY EXTENSION FUNCTIONS 6447N/A *****************************************************************/