/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
final public class XConstants {
private XConstants(){}
/* Resources */
/*
* _XSERVER64 must ONLY be defined when compiling X server sources on
* systems where unsigned long is not 32 bits, must NOT be used in
* client or library code.
*/
/*
#ifndef _XSERVER64
typedef unsigned long XID;
typedef unsigned long Mask;
typedef unsigned long Atom;
typedef unsigned long VisualID;
typedef unsigned long Time;
#else
typedef CARD32 XID;
typedef CARD32 Mask;
typedef CARD32 Atom;
typedef CARD32 VisualID;
typedef CARD32 Time;
#endif
typedef XID Window;
typedef XID Drawable;
typedef XID Font;
typedef XID Pixmap;
typedef XID Cursor;
typedef XID Colormap;
typedef XID GContext;
typedef XID KeySym;
typedef unsigned char KeyCode;
*/
/*****************************************************************
* RESERVED RESOURCE AND CONSTANT DEFINITIONS
*****************************************************************/
/* background pixmap in CreateWindow and ChangeWindowAttributes */
/* border pixmap in CreateWindow and ChangeWindowAttributes special
* VisualID and special window class passed to CreateWindow */
/*****************************************************************
* EVENT DEFINITIONS
*****************************************************************/
/* Input Event Masks. Used as event-mask window attribute and as arguments
to Grab requests. Not to be confused with event names. */
/* Event names. Used in "type" field in XEvent structures. Not to be
confused with event masks above. They start from 2 because 0 and 1
are reserved in the protocol for errors and replies. */
/* Key masks. Used as modifiers to GrabButton and GrabKey, results of QueryPointer,
state in various key-, mouse-, and button-related events. */
/* modifier names. Used to build a SetModifierMapping request or
to read a GetModifierMapping request. These correspond to the
masks defined above. */
/* button masks. Used in same manner as Key masks above. Not to be confused
with button names below. */
1<<9,
1<<10,
1<<11,
1<<12,
1<<13,
1<<14,
1<<15,
1<<16,
1<<17,
1<<18,
1<<19,
1<<20,
1<<21,
1<<22,
1<<23,
1<<24,
1<<25,
1<<26,
1<<27,
1<<28,
1<<29,
1<<30,
1<<31 };
/* button names. Used as arguments to GrabButton and as detail in ButtonPress
and ButtonRelease events. Not to be confused with button masks above.
Note that 0 is already defined above as "AnyButton". */
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};
/* Notify modes */
/* Notify detail */
/* Visibility notify */
/* Circulation request */
/* protocol families */
/* Property notification */
/* Color Map notification */
/* GrabPointer, GrabButton, GrabKeyboard, GrabKey Modes */
/* GrabPointer, GrabKeyboard reply status */
/* AllowEvents modes */
/* Used in SetInputFocus, GetInputFocus */
/* Used in XEventsQueued */
/*****************************************************************
* ERROR CODES
*****************************************************************/
- attempt to free an illegal
cmap entry
- attempt to store into a read-only
color map entry.
- attempt to modify the access control
list from other than the local host.
*/
/*****************************************************************
* WINDOW DEFINITIONS
*****************************************************************/
/* Window classes used by CreateWindow */
/* Note that CopyFromParent is already defined as 0 above */
/* Window attributes for CreateWindow and ChangeWindowAttributes */
/* ConfigureWindow structure */
/* Bit Gravity */
/* Window gravity + bit gravity above */
/* Used in CreateWindow for backing-store hint */
/* Used in GetWindowAttributes reply */
/* Used in ChangeSaveSet */
/* Used in ChangeCloseDownMode */
/* Window stacking method (in configureWindow) */
/* Circulation direction */
/* Property modes */
/*****************************************************************
* GRAPHICS DEFINITIONS
*****************************************************************/
/* graphics functions, as in GC.alu */
/* LineStyle */
/* capStyle */
/* joinStyle */
/* fillStyle */
/* fillRule */
/* subwindow mode */
/* SetClipRectangles ordering */
/* CoordinateMode for drawing routines */
/* Polygon shapes */
/* Arc modes for PolyFillArc */
/* GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into
GC.stateChanges */
/*****************************************************************
* FONTS
*****************************************************************/
/* used in QueryFont -- draw direction */
/*****************************************************************
* IMAGING
*****************************************************************/
/* ImageFormat -- PutImage, GetImage */
/*****************************************************************
* COLOR MAP STUFF
*****************************************************************/
/* For CreateColormap */
/* Flags used in StoreNamedColor, StoreColors */
/*****************************************************************
* CURSOR STUFF
*****************************************************************/
/* QueryBestSize Class */
/*****************************************************************
*****************************************************************/
/* masks for ChangeKeyboardControl */
/*****************************************************************
* SCREEN SAVER STUFF
*****************************************************************/
/* for ForceScreenSaver */
/*****************************************************************
* HOSTS AND CONNECTIONS
*****************************************************************/
/* for ChangeHosts */
/* for ChangeAccessControl */
/* Display classes used in opening the connection
* Note that the statically allocated ones are even numbered and the
* dynamically changeable ones are odd numbered */
/* Byte order used in imageByteOrder and bitmapBitOrder */
/* XKB support */
/*****************************************************************
* X SHARED MEMORY EXTENSION FUNCTIONS
*****************************************************************/
}