0N/A/*
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 *
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 *
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 *
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.
0N/A *
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
2362N/A * questions.
0N/A */
0N/A
0N/Apackage sun.awt.X11;
0N/A
216N/Afinal public class XConstants {
216N/A
216N/A private XConstants(){}
216N/A
0N/A public static final int X_PROTOCOL = 11 ; /* current protocol version */
0N/A public static final int X_PROTOCOL_REVISION = 0 ; /* current minor version */
0N/A
0N/A /* Resources */
0N/A
0N/A /*
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 */
0N/A
0N/A /*
0N/A #ifndef _XSERVER64
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 #else
0N/A typedef CARD32 XID;
0N/A typedef CARD32 Mask;
0N/A typedef CARD32 Atom;
0N/A typedef CARD32 VisualID;
0N/A typedef CARD32 Time;
0N/A #endif
0N/A
0N/A typedef XID Window;
0N/A typedef XID Drawable;
0N/A typedef XID Font;
0N/A typedef XID Pixmap;
0N/A typedef XID Cursor;
0N/A typedef XID Colormap;
0N/A typedef XID GContext;
0N/A typedef XID KeySym;
0N/A
0N/A typedef unsigned char KeyCode;
0N/A */
0N/A /*****************************************************************
0N/A * RESERVED RESOURCE AND CONSTANT DEFINITIONS
0N/A *****************************************************************/
0N/A
0N/A public static final long None = 0L ; /* universal null resource or null atom */
0N/A
0N/A /* background pixmap in CreateWindow and ChangeWindowAttributes */
0N/A public static final long ParentRelative = 1L ;
0N/A
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 CopyFromParent = 0L ;
0N/A
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
0N/A public static final long PointerRoot = 1L ; /* focus window in SetInputFocus */
0N/A
0N/A public static final long AnyPropertyType = 0L ; /* special Atom, passed to GetProperty */
0N/A
0N/A public static final long AnyKey = 0L ; /* special Key Code, passed to GrabKey */
0N/A
0N/A public static final long AnyButton = 0L ; /* special Button Code, passed to GrabButton */
0N/A
0N/A public static final long AllTemporary = 0L ; /* special Resource ID passed to KillClient */
0N/A
0N/A public static final long CurrentTime = 0L ; /* special Time */
0N/A
0N/A public static final long NoSymbol = 0L ; /* special KeySym */
0N/A
0N/A /*****************************************************************
0N/A * EVENT DEFINITIONS
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
0N/A public static final long NoEventMask = 0L ;
0N/A public static final long KeyPressMask = (1L<<0) ;
0N/A public static final long KeyReleaseMask = (1L<<1) ;
0N/A public static final long ButtonPressMask = (1L<<2) ;
0N/A public static final long ButtonReleaseMask = (1L<<3) ;
0N/A public static final long EnterWindowMask = (1L<<4) ;
0N/A public static final long LeaveWindowMask = (1L<<5) ;
0N/A public static final long PointerMotionMask = (1L<<6) ;
0N/A public static final long PointerMotionHintMask = (1L<<7) ;
0N/A public static final long Button1MotionMask = (1L<<8) ;
0N/A public static final long Button2MotionMask = (1L<<9) ;
0N/A public static final long Button3MotionMask = (1L<<10) ;
0N/A public static final long Button4MotionMask = (1L<<11) ;
0N/A public static final long Button5MotionMask = (1L<<12) ;
0N/A public static final long ButtonMotionMask = (1L<<13) ;
0N/A public static final long KeymapStateMask = (1L<<14) ;
0N/A public static final long ExposureMask = (1L<<15) ;
0N/A public static final long VisibilityChangeMask = (1L<<16) ;
0N/A public static final long StructureNotifyMask = (1L<<17) ;
0N/A public static final long ResizeRedirectMask = (1L<<18) ;
0N/A public static final long SubstructureNotifyMask = (1L<<19) ;
0N/A public static final long SubstructureRedirectMask = (1L<<20) ;
0N/A public static final long FocusChangeMask = (1L<<21) ;
0N/A public static final long PropertyChangeMask = (1L<<22) ;
0N/A public static final long ColormapChangeMask = (1L<<23) ;
0N/A public static final long OwnerGrabButtonMask = (1L<<24) ;
0N/A
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
0N/A public static final int KeyPress = 2 ;
0N/A public static final int KeyRelease = 3 ;
0N/A public static final int ButtonPress = 4 ;
0N/A public static final int ButtonRelease = 5 ;
0N/A public static final int MotionNotify = 6 ;
0N/A public static final int EnterNotify = 7 ;
0N/A public static final int LeaveNotify = 8 ;
0N/A public static final int FocusIn = 9 ;
0N/A public static final int FocusOut = 10 ;
0N/A public static final int KeymapNotify = 11 ;
0N/A public static final int Expose = 12 ;
0N/A public static final int GraphicsExpose = 13 ;
0N/A public static final int NoExpose = 14 ;
0N/A public static final int VisibilityNotify = 15 ;
0N/A public static final int CreateNotify = 16 ;
0N/A public static final int DestroyNotify = 17 ;
0N/A public static final int UnmapNotify = 18 ;
0N/A public static final int MapNotify = 19 ;
0N/A public static final int MapRequest = 20 ;
0N/A public static final int ReparentNotify = 21 ;
0N/A public static final int ConfigureNotify = 22 ;
0N/A public static final int ConfigureRequest = 23 ;
0N/A public static final int GravityNotify = 24 ;
0N/A public static final int ResizeRequest = 25 ;
0N/A public static final int CirculateNotify = 26 ;
0N/A public static final int CirculateRequest = 27 ;
0N/A public static final int PropertyNotify = 28 ;
0N/A public static final int SelectionClear = 29 ;
0N/A public static final int SelectionRequest = 30 ;
0N/A public static final int SelectionNotify = 31 ;
0N/A public static final int ColormapNotify = 32 ;
0N/A public static final int ClientMessage = 33 ;
0N/A public static final int MappingNotify = 34 ;
0N/A public static final int LASTEvent = 35 ; /* must be bigger than any event # */
0N/A
0N/A
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
0N/A public static final int ShiftMask = (1<<0) ;
0N/A public static final int LockMask = (1<<1) ;
0N/A public static final int ControlMask = (1<<2) ;
0N/A public static final int Mod1Mask = (1<<3) ;
0N/A public static final int Mod2Mask = (1<<4) ;
0N/A public static final int Mod3Mask = (1<<5) ;
0N/A public static final int Mod4Mask = (1<<6) ;
0N/A public static final int Mod5Mask = (1<<7) ;
0N/A
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 public static final int ShiftMapIndex = 0 ;
0N/A public static final int LockMapIndex = 1 ;
0N/A public static final int ControlMapIndex = 2 ;
0N/A public static final int Mod1MapIndex = 3 ;
0N/A public static final int Mod2MapIndex = 4 ;
0N/A public static final int Mod3MapIndex = 5 ;
0N/A public static final int Mod4MapIndex = 6 ;
0N/A public static final int Mod5MapIndex = 7 ;
0N/A
0N/A
0N/A /* button masks. Used in same manner as Key masks above. Not to be confused
0N/A with button names below. */
870N/A public static final int [] buttonsMask = new int []{ 1<<8,
870N/A 1<<9,
870N/A 1<<10,
870N/A 1<<11,
870N/A 1<<12,
870N/A 1<<13,
870N/A 1<<14,
870N/A 1<<15,
870N/A 1<<16,
870N/A 1<<17,
870N/A 1<<18,
870N/A 1<<19,
870N/A 1<<20,
870N/A 1<<21,
870N/A 1<<22,
870N/A 1<<23,
870N/A 1<<24,
870N/A 1<<25,
870N/A 1<<26,
870N/A 1<<27,
870N/A 1<<28,
870N/A 1<<29,
870N/A 1<<30,
870N/A 1<<31 };
0N/A
0N/A public static final int AnyModifier = (1<<15) ; /* used in GrabButton, GrabKey */
0N/A
0N/A
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". */
0N/A
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
0N/A /* Notify modes */
0N/A
0N/A public static final int NotifyNormal = 0 ;
0N/A public static final int NotifyGrab = 1 ;
0N/A public static final int NotifyUngrab = 2 ;
0N/A public static final int NotifyWhileGrabbed = 3 ;
0N/A
0N/A public static final int NotifyHint = 1 ; /* for MotionNotify events */
0N/A
0N/A /* Notify detail */
0N/A
0N/A public static final int NotifyAncestor = 0 ;
0N/A public static final int NotifyVirtual = 1 ;
0N/A public static final int NotifyInferior = 2 ;
0N/A public static final int NotifyNonlinear = 3 ;
0N/A public static final int NotifyNonlinearVirtual = 4 ;
0N/A public static final int NotifyPointer = 5 ;
0N/A public static final int NotifyPointerRoot = 6 ;
0N/A public static final int NotifyDetailNone = 7 ;
0N/A
0N/A /* Visibility notify */
0N/A
0N/A public static final int VisibilityUnobscured = 0 ;
0N/A public static final int VisibilityPartiallyObscured = 1 ;
0N/A public static final int VisibilityFullyObscured = 2 ;
0N/A
0N/A /* Circulation request */
0N/A
0N/A public static final int PlaceOnTop = 0 ;
0N/A public static final int PlaceOnBottom = 1 ;
0N/A
0N/A /* protocol families */
0N/A
0N/A public static final int FamilyInternet = 0 ;
0N/A public static final int FamilyDECnet = 1 ;
0N/A public static final int FamilyChaos = 2 ;
0N/A
0N/A /* Property notification */
0N/A
0N/A public static final int PropertyNewValue = 0 ;
0N/A public static final int PropertyDelete = 1 ;
0N/A
0N/A /* Color Map notification */
0N/A
0N/A public static final int ColormapUninstalled = 0 ;
0N/A public static final int ColormapInstalled = 1 ;
0N/A
0N/A /* GrabPointer, GrabButton, GrabKeyboard, GrabKey Modes */
0N/A
0N/A public static final int GrabModeSync = 0 ;
0N/A public static final int GrabModeAsync = 1 ;
0N/A
0N/A /* GrabPointer, GrabKeyboard reply status */
0N/A
0N/A public static final int GrabSuccess = 0 ;
0N/A public static final int AlreadyGrabbed = 1 ;
0N/A public static final int GrabInvalidTime = 2 ;
0N/A public static final int GrabNotViewable = 3 ;
0N/A public static final int GrabFrozen = 4 ;
0N/A
0N/A /* AllowEvents modes */
0N/A
0N/A public static final int AsyncPointer = 0 ;
0N/A public static final int SyncPointer = 1 ;
0N/A public static final int ReplayPointer = 2 ;
0N/A public static final int AsyncKeyboard = 3 ;
0N/A public static final int SyncKeyboard = 4 ;
0N/A public static final int ReplayKeyboard = 5 ;
0N/A public static final int AsyncBoth = 6 ;
0N/A public static final int SyncBoth = 7 ;
0N/A
0N/A /* Used in SetInputFocus, GetInputFocus */
0N/A
0N/A public static final int RevertToNone = (int)None ;
0N/A public static final int RevertToPointerRoot = (int)PointerRoot ;
0N/A public static final int RevertToParent = 2 ;
0N/A
0N/A /* Used in XEventsQueued */
216N/A public static final int QueuedAlready = 0;
216N/A public static final int QueuedAfterReading = 1;
216N/A public static final int QueuedAfterFlush = 2;
0N/A
0N/A
0N/A /*****************************************************************
0N/A * ERROR CODES
0N/A *****************************************************************/
0N/A
0N/A public static final int Success = 0 ; /* everything's okay */
0N/A public static final int BadRequest = 1 ; /* bad request code */
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 - key/button already grabbed
0N/A - attempt to free an illegal
0N/A cmap entry
0N/A - attempt to store into a read-only
0N/A color map entry.
0N/A - attempt to modify the access control
0N/A list from other than the local host.
0N/A */
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 public static final int BadImplementation = 17 ; /* server is defective */
0N/A
0N/A public static final int FirstExtensionError = 128 ;
0N/A public static final int LastExtensionError = 255 ;
0N/A
0N/A /*****************************************************************
0N/A * WINDOW DEFINITIONS
0N/A *****************************************************************/
0N/A
0N/A /* Window classes used by CreateWindow */
0N/A /* Note that CopyFromParent is already defined as 0 above */
0N/A
0N/A public static final int InputOutput = 1 ;
0N/A public static final int InputOnly = 2 ;
0N/A
0N/A /* Window attributes for CreateWindow and ChangeWindowAttributes */
0N/A
0N/A public static final long CWBackPixmap = (1L<<0) ;
0N/A public static final long CWBackPixel = (1L<<1) ;
0N/A public static final long CWBorderPixmap = (1L<<2) ;
0N/A public static final long CWBorderPixel = (1L<<3) ;
0N/A public static final long CWBitGravity = (1L<<4) ;
0N/A public static final long CWWinGravity = (1L<<5) ;
0N/A public static final long CWBackingStore = (1L<<6) ;
0N/A public static final long CWBackingPlanes = (1L<<7) ;
0N/A public static final long CWBackingPixel = (1L<<8) ;
0N/A public static final long CWOverrideRedirect = (1L<<9) ;
0N/A public static final long CWSaveUnder = (1L<<10) ;
0N/A public static final long CWEventMask = (1L<<11) ;
0N/A public static final long CWDontPropagate = (1L<<12) ;
0N/A public static final long CWColormap = (1L<<13) ;
0N/A public static final long CWCursor = (1L<<14) ;
0N/A
0N/A /* ConfigureWindow structure */
0N/A
0N/A public static final int CWX = (1<<0) ;
0N/A public static final int CWY = (1<<1) ;
0N/A public static final int CWWidth = (1<<2) ;
0N/A public static final int CWHeight = (1<<3) ;
0N/A public static final int CWBorderWidth = (1<<4) ;
0N/A public static final int CWSibling = (1<<5) ;
0N/A public static final int CWStackMode = (1<<6) ;
0N/A
0N/A
0N/A /* Bit Gravity */
0N/A
0N/A public static final int ForgetGravity = 0 ;
0N/A public static final int NorthWestGravity = 1 ;
0N/A public static final int NorthGravity = 2 ;
0N/A public static final int NorthEastGravity = 3 ;
0N/A public static final int WestGravity = 4 ;
0N/A public static final int CenterGravity = 5 ;
0N/A public static final int EastGravity = 6 ;
0N/A public static final int SouthWestGravity = 7 ;
0N/A public static final int SouthGravity = 8 ;
0N/A public static final int SouthEastGravity = 9 ;
0N/A public static final int StaticGravity = 10 ;
0N/A
0N/A /* Window gravity + bit gravity above */
0N/A
0N/A public static final int UnmapGravity = 0 ;
0N/A
0N/A /* Used in CreateWindow for backing-store hint */
0N/A
0N/A public static final int NotUseful = 0 ;
0N/A public static final int WhenMapped = 1 ;
0N/A public static final int Always = 2 ;
0N/A
0N/A /* Used in GetWindowAttributes reply */
0N/A
0N/A public static final int IsUnmapped = 0 ;
0N/A public static final int IsUnviewable = 1 ;
0N/A public static final int IsViewable = 2 ;
0N/A
0N/A /* Used in ChangeSaveSet */
0N/A
0N/A public static final int SetModeInsert = 0 ;
0N/A public static final int SetModeDelete = 1 ;
0N/A
0N/A /* Used in ChangeCloseDownMode */
0N/A
0N/A public static final int DestroyAll = 0 ;
0N/A public static final int RetainPermanent = 1 ;
0N/A public static final int RetainTemporary = 2 ;
0N/A
0N/A /* Window stacking method (in configureWindow) */
0N/A
0N/A public static final int Above = 0 ;
0N/A public static final int Below = 1 ;
0N/A public static final int TopIf = 2 ;
0N/A public static final int BottomIf = 3 ;
0N/A public static final int Opposite = 4 ;
0N/A
0N/A /* Circulation direction */
0N/A
0N/A public static final int RaiseLowest = 0 ;
0N/A public static final int LowerHighest = 1 ;
0N/A
0N/A /* Property modes */
0N/A
0N/A public static final int PropModeReplace = 0 ;
0N/A public static final int PropModePrepend = 1 ;
0N/A public static final int PropModeAppend = 2 ;
0N/A
0N/A /*****************************************************************
0N/A * GRAPHICS DEFINITIONS
0N/A *****************************************************************/
0N/A
0N/A /* graphics functions, as in GC.alu */
0N/A
0N/A public static final int GXclear = 0x0 ; /* 0 */
0N/A public static final int GXand = 0x1 ; /* src AND dst */
0N/A public static final int GXandReverse = 0x2 ; /* src AND NOT dst */
0N/A public static final int GXcopy = 0x3 ; /* src */
0N/A public static final int GXandInverted = 0x4 ; /* NOT src AND dst */
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 GXinvert = 0xa ; /* NOT dst */
0N/A public static final int GXorReverse = 0xb ; /* src OR NOT dst */
0N/A public static final int GXcopyInverted = 0xc ; /* NOT src */
0N/A public static final int GXorInverted = 0xd ; /* NOT src OR 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
0N/A /* LineStyle */
0N/A
0N/A public static final int LineSolid = 0 ;
0N/A public static final int LineOnOffDash = 1 ;
0N/A public static final int LineDoubleDash = 2 ;
0N/A
0N/A /* capStyle */
0N/A
0N/A public static final int CapNotLast = 0 ;
0N/A public static final int CapButt = 1 ;
0N/A public static final int CapRound = 2 ;
0N/A public static final int CapProjecting = 3 ;
0N/A
0N/A /* joinStyle */
0N/A
0N/A public static final int JoinMiter = 0 ;
0N/A public static final int JoinRound = 1 ;
0N/A public static final int JoinBevel = 2 ;
0N/A
0N/A /* fillStyle */
0N/A
0N/A public static final int FillSolid = 0 ;
0N/A public static final int FillTiled = 1 ;
0N/A public static final int FillStippled = 2 ;
0N/A public static final int FillOpaqueStippled = 3 ;
0N/A
0N/A /* fillRule */
0N/A
0N/A public static final int EvenOddRule = 0 ;
0N/A public static final int WindingRule = 1 ;
0N/A
0N/A /* subwindow mode */
0N/A
0N/A public static final int ClipByChildren = 0 ;
0N/A public static final int IncludeInferiors = 1 ;
0N/A
0N/A /* SetClipRectangles ordering */
0N/A
0N/A public static final int Unsorted = 0 ;
0N/A public static final int YSorted = 1 ;
0N/A public static final int YXSorted = 2 ;
0N/A public static final int YXBanded = 3 ;
0N/A
0N/A /* CoordinateMode for drawing routines */
0N/A
0N/A public static final int CoordModeOrigin = 0 ; /* relative to the origin */
0N/A public static final int CoordModePrevious = 1 ; /* relative to previous point */
0N/A
0N/A /* Polygon shapes */
0N/A
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
0N/A /* Arc modes for PolyFillArc */
0N/A
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
0N/A /* GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into
0N/A GC.stateChanges */
0N/A
0N/A public static final long GCFunction = (1L<<0) ;
0N/A public static final long GCPlaneMask = (1L<<1) ;
0N/A public static final long GCForeground = (1L<<2) ;
0N/A public static final long GCBackground = (1L<<3) ;
0N/A public static final long GCLineWidth = (1L<<4) ;
0N/A public static final long GCLineStyle = (1L<<5) ;
0N/A public static final long GCCapStyle = (1L<<6) ;
0N/A public static final long GCJoinStyle = (1L<<7) ;
0N/A public static final long GCFillStyle = (1L<<8) ;
0N/A public static final long GCFillRule = (1L<<9) ;
0N/A public static final long GCTile = (1L<<10) ;
0N/A public static final long GCStipple = (1L<<11) ;
0N/A public static final long GCTileStipXOrigin = (1L<<12) ;
0N/A public static final long GCTileStipYOrigin = (1L<<13) ;
0N/A public static final long GCFont = (1L<<14) ;
0N/A public static final long GCSubwindowMode = (1L<<15) ;
0N/A public static final long GCGraphicsExposures = (1L<<16) ;
0N/A public static final long GCClipXOrigin = (1L<<17) ;
0N/A public static final long GCClipYOrigin = (1L<<18) ;
0N/A public static final long GCClipMask = (1L<<19) ;
0N/A public static final long GCDashOffset = (1L<<20) ;
0N/A public static final long GCDashList = (1L<<21) ;
0N/A public static final long GCArcMode = (1L<<22) ;
0N/A
0N/A public static final int GCLastBit = 22 ;
0N/A /*****************************************************************
0N/A * FONTS
0N/A *****************************************************************/
0N/A
0N/A /* used in QueryFont -- draw direction */
0N/A
0N/A public static final int FontLeftToRight = 0 ;
0N/A public static final int FontRightToLeft = 1 ;
0N/A
0N/A public static final int FontChange = 255 ;
0N/A
0N/A /*****************************************************************
0N/A * IMAGING
0N/A *****************************************************************/
0N/A
0N/A /* ImageFormat -- PutImage, GetImage */
0N/A
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 * COLOR MAP STUFF
0N/A *****************************************************************/
0N/A
0N/A /* For CreateColormap */
0N/A
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
0N/A
0N/A /* Flags used in StoreNamedColor, StoreColors */
0N/A
0N/A public static final int DoRed = (1<<0) ;
0N/A public static final int DoGreen = (1<<1) ;
0N/A public static final int DoBlue = (1<<2) ;
0N/A
0N/A /*****************************************************************
0N/A * CURSOR STUFF
0N/A *****************************************************************/
0N/A
0N/A /* QueryBestSize Class */
0N/A
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 public static final int StippleShape = 2 ; /* size stippled fastest */
0N/A
0N/A /*****************************************************************
0N/A * KEYBOARD/POINTER STUFF
0N/A *****************************************************************/
0N/A
0N/A public static final int AutoRepeatModeOff = 0 ;
0N/A public static final int AutoRepeatModeOn = 1 ;
0N/A public static final int AutoRepeatModeDefault = 2 ;
0N/A
0N/A public static final int LedModeOff = 0 ;
0N/A public static final int LedModeOn = 1 ;
0N/A
0N/A /* masks for ChangeKeyboardControl */
0N/A
0N/A public static final long KBKeyClickPercent = (1L<<0) ;
0N/A public static final long KBBellPercent = (1L<<1) ;
0N/A public static final long KBBellPitch = (1L<<2) ;
0N/A public static final long KBBellDuration = (1L<<3) ;
0N/A public static final long KBLed = (1L<<4) ;
0N/A public static final long KBLedMode = (1L<<5) ;
0N/A public static final long KBKey = (1L<<6) ;
0N/A public static final long KBAutoRepeatMode = (1L<<7) ;
0N/A
0N/A public static final int MappingSuccess = 0 ;
0N/A public static final int MappingBusy = 1 ;
0N/A public static final int MappingFailed = 2 ;
0N/A
0N/A public static final int MappingModifier = 0 ;
0N/A public static final int MappingKeyboard = 1 ;
0N/A public static final int MappingPointer = 2 ;
0N/A
0N/A /*****************************************************************
0N/A * SCREEN SAVER STUFF
0N/A *****************************************************************/
0N/A
0N/A public static final int DontPreferBlanking = 0 ;
0N/A public static final int PreferBlanking = 1 ;
0N/A public static final int DefaultBlanking = 2 ;
0N/A
0N/A public static final int DisableScreenSaver = 0 ;
0N/A public static final int DisableScreenInterval = 0 ;
0N/A
0N/A public static final int DontAllowExposures = 0 ;
0N/A public static final int AllowExposures = 1 ;
0N/A public static final int DefaultExposures = 2 ;
0N/A
0N/A /* for ForceScreenSaver */
0N/A
0N/A public static final int ScreenSaverReset = 0 ;
0N/A public static final int ScreenSaverActive = 1 ;
0N/A
0N/A /*****************************************************************
0N/A * HOSTS AND CONNECTIONS
0N/A *****************************************************************/
0N/A
0N/A /* for ChangeHosts */
0N/A
0N/A public static final int HostInsert = 0 ;
0N/A public static final int HostDelete = 1 ;
0N/A
0N/A /* for ChangeAccessControl */
0N/A
0N/A public static final int EnableAccess = 1 ;
0N/A public static final int DisableAccess = 0 ;
0N/A
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
0N/A public static final int StaticGray = 0 ;
0N/A public static final int GrayScale = 1 ;
0N/A public static final int StaticColor = 2 ;
0N/A public static final int PseudoColor = 3 ;
0N/A public static final int TrueColor = 4 ;
0N/A public static final int DirectColor = 5 ;
0N/A
0N/A
0N/A /* Byte order used in imageByteOrder and bitmapBitOrder */
0N/A
0N/A public static final int LSBFirst = 0 ;
0N/A public static final int MSBFirst = 1 ;
1067N/A
1067N/A /* XKB support */
1067N/A public static final int XkbUseCoreKbd = 0x0100 ;
1067N/A public static final int XkbNewKeyboardNotify = 0;
1067N/A public static final int XkbMapNotify = 1;
1067N/A public static final int XkbStateNotify = 2;
1067N/A public static final long XkbNewKeyboardNotifyMask = (1L << 0);
1067N/A public static final long XkbMapNotifyMask = (1L << 1);
1067N/A public static final long XkbStateNotifyMask = (1L << 2);
1067N/A public static final long XkbGroupStateMask = (1L << 4);
1067N/A public static final long XkbKeyTypesMask = (1L<<0);
1067N/A public static final long XkbKeySymsMask = (1L<<1);
1067N/A public static final long XkbModifierMapMask = (1L<<2);
1067N/A public static final long XkbVirtualModsMask = (1L<<6); //server map
1067N/A
6447N/A /*****************************************************************
6447N/A * X SHARED MEMORY EXTENSION FUNCTIONS
6447N/A *****************************************************************/
6447N/A
6447N/A public static final int X_ShmAttach = 1;
0N/A}