godot/thirdparty/linuxbsd_headers/X11/X.h

/* Definitions for the X window system likely to be used by applications */

#ifndef X_H
#define X_H

/***********************************************************

Copyright 1987, 1998  The Open Group

Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.


Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.

                        All Rights Reserved

Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
software without specific, written prior permission.

DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.

******************************************************************/

#define X_PROTOCOL
#define X_PROTOCOL_REVISION

/* 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
#  ifndef _XTYPEDEF_XID
#define _XTYPEDEF_XID
XID;
#  endif
#  ifndef _XTYPEDEF_MASK
#define _XTYPEDEF_MASK
Mask;
#  endif
#  ifndef _XTYPEDEF_ATOM
#define _XTYPEDEF_ATOM
Atom;		/* Also in Xdefs.h */
#  endif
VisualID;
Time;
#else
#  include <X11/Xmd.h>
#  ifndef _XTYPEDEF_XID
#define _XTYPEDEF_XID
typedef CARD32 XID;
#  endif
#  ifndef _XTYPEDEF_MASK
#define _XTYPEDEF_MASK
typedef CARD32 Mask;
#  endif
#  ifndef _XTYPEDEF_ATOM
#define _XTYPEDEF_ATOM
typedef CARD32 Atom;
#  endif
typedef CARD32 VisualID;
typedef CARD32 Time;
#endif

Window;
Drawable;
#ifndef _XTYPEDEF_FONT
#define _XTYPEDEF_FONT
Font;
#endif
Pixmap;
Cursor;
Colormap;
GContext;
KeySym;

KeyCode;

/*****************************************************************
 * RESERVED RESOURCE AND CONSTANT DEFINITIONS
 *****************************************************************/

#ifndef None
#define None
#endif

#define ParentRelative

#define CopyFromParent

#define PointerWindow
#define InputFocus

#define PointerRoot

#define AnyPropertyType

#define AnyKey

#define AnyButton

#define AllTemporary

#define CurrentTime

#define NoSymbol

/*****************************************************************
 * EVENT DEFINITIONS
 *****************************************************************/

/* Input Event Masks. Used as event-mask window attribute and as arguments
   to Grab requests.  Not to be confused with event names.  */

#define NoEventMask
#define KeyPressMask
#define KeyReleaseMask
#define ButtonPressMask
#define ButtonReleaseMask
#define EnterWindowMask
#define LeaveWindowMask
#define PointerMotionMask
#define PointerMotionHintMask
#define Button1MotionMask
#define Button2MotionMask
#define Button3MotionMask
#define Button4MotionMask
#define Button5MotionMask
#define ButtonMotionMask
#define KeymapStateMask
#define ExposureMask
#define VisibilityChangeMask
#define StructureNotifyMask
#define ResizeRedirectMask
#define SubstructureNotifyMask
#define SubstructureRedirectMask
#define FocusChangeMask
#define PropertyChangeMask
#define ColormapChangeMask
#define OwnerGrabButtonMask

/* 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. */

#define KeyPress
#define KeyRelease
#define ButtonPress
#define ButtonRelease
#define MotionNotify
#define EnterNotify
#define LeaveNotify
#define FocusIn
#define FocusOut
#define KeymapNotify
#define Expose
#define GraphicsExpose
#define NoExpose
#define VisibilityNotify
#define CreateNotify
#define DestroyNotify
#define UnmapNotify
#define MapNotify
#define MapRequest
#define ReparentNotify
#define ConfigureNotify
#define ConfigureRequest
#define GravityNotify
#define ResizeRequest
#define CirculateNotify
#define CirculateRequest
#define PropertyNotify
#define SelectionClear
#define SelectionRequest
#define SelectionNotify
#define ColormapNotify
#define ClientMessage
#define MappingNotify
#define GenericEvent
#define LASTEvent


/* Key masks. Used as modifiers to GrabButton and GrabKey, results of QueryPointer,
   state in various key-, mouse-, and button-related events. */

#define ShiftMask
#define LockMask
#define ControlMask
#define Mod1Mask
#define Mod2Mask
#define Mod3Mask
#define Mod4Mask
#define Mod5Mask

/* modifier names.  Used to build a SetModifierMapping request or
   to read a GetModifierMapping request.  These correspond to the
   masks defined above. */
#define ShiftMapIndex
#define LockMapIndex
#define ControlMapIndex
#define Mod1MapIndex
#define Mod2MapIndex
#define Mod3MapIndex
#define Mod4MapIndex
#define Mod5MapIndex


/* button masks.  Used in same manner as Key masks above. Not to be confused
   with button names below. */

#define Button1Mask
#define Button2Mask
#define Button3Mask
#define Button4Mask
#define Button5Mask

#define AnyModifier


/* 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".  */

#define Button1
#define Button2
#define Button3
#define Button4
#define Button5

/* Notify modes */

#define NotifyNormal
#define NotifyGrab
#define NotifyUngrab
#define NotifyWhileGrabbed

#define NotifyHint

/* Notify detail */

#define NotifyAncestor
#define NotifyVirtual
#define NotifyInferior
#define NotifyNonlinear
#define NotifyNonlinearVirtual
#define NotifyPointer
#define NotifyPointerRoot
#define NotifyDetailNone

/* Visibility notify */

#define VisibilityUnobscured
#define VisibilityPartiallyObscured
#define VisibilityFullyObscured

/* Circulation request */

#define PlaceOnTop
#define PlaceOnBottom

/* protocol families */

#define FamilyInternet
#define FamilyDECnet
#define FamilyChaos
#define FamilyInternet6

/* authentication families not tied to a specific protocol */
#define FamilyServerInterpreted

/* Property notification */

#define PropertyNewValue
#define PropertyDelete

/* Color Map notification */

#define ColormapUninstalled
#define ColormapInstalled

/* GrabPointer, GrabButton, GrabKeyboard, GrabKey Modes */

#define GrabModeSync
#define GrabModeAsync

/* GrabPointer, GrabKeyboard reply status */

#define GrabSuccess
#define AlreadyGrabbed
#define GrabInvalidTime
#define GrabNotViewable
#define GrabFrozen

/* AllowEvents modes */

#define AsyncPointer
#define SyncPointer
#define ReplayPointer
#define AsyncKeyboard
#define SyncKeyboard
#define ReplayKeyboard
#define AsyncBoth
#define SyncBoth

/* Used in SetInputFocus, GetInputFocus */

#define RevertToNone
#define RevertToPointerRoot
#define RevertToParent

/*****************************************************************
 * ERROR CODES
 *****************************************************************/

#define Success
#define BadRequest
#define BadValue
#define BadWindow
#define BadPixmap
#define BadAtom
#define BadCursor
#define BadFont
#define BadMatch
#define BadDrawable
#define BadAccess
#define BadAlloc
#define BadColor
#define BadGC
#define BadIDChoice
#define BadName
#define BadLength
#define BadImplementation

#define FirstExtensionError
#define LastExtensionError

/*****************************************************************
 * WINDOW DEFINITIONS
 *****************************************************************/

/* Window classes used by CreateWindow */
/* Note that CopyFromParent is already defined as 0 above */

#define InputOutput
#define InputOnly

/* Window attributes for CreateWindow and ChangeWindowAttributes */

#define CWBackPixmap
#define CWBackPixel
#define CWBorderPixmap
#define CWBorderPixel
#define CWBitGravity
#define CWWinGravity
#define CWBackingStore
#define CWBackingPlanes
#define CWBackingPixel
#define CWOverrideRedirect
#define CWSaveUnder
#define CWEventMask
#define CWDontPropagate
#define CWColormap
#define CWCursor

/* ConfigureWindow structure */

#define CWX
#define CWY
#define CWWidth
#define CWHeight
#define CWBorderWidth
#define CWSibling
#define CWStackMode


/* Bit Gravity */

#define ForgetGravity
#define NorthWestGravity
#define NorthGravity
#define NorthEastGravity
#define WestGravity
#define CenterGravity
#define EastGravity
#define SouthWestGravity
#define SouthGravity
#define SouthEastGravity
#define StaticGravity

/* Window gravity + bit gravity above */

#define UnmapGravity

/* Used in CreateWindow for backing-store hint */

#define NotUseful
#define WhenMapped
#define Always

/* Used in GetWindowAttributes reply */

#define IsUnmapped
#define IsUnviewable
#define IsViewable

/* Used in ChangeSaveSet */

#define SetModeInsert
#define SetModeDelete

/* Used in ChangeCloseDownMode */

#define DestroyAll
#define RetainPermanent
#define RetainTemporary

/* Window stacking method (in configureWindow) */

#define Above
#define Below
#define TopIf
#define BottomIf
#define Opposite

/* Circulation direction */

#define RaiseLowest
#define LowerHighest

/* Property modes */

#define PropModeReplace
#define PropModePrepend
#define PropModeAppend

/*****************************************************************
 * GRAPHICS DEFINITIONS
 *****************************************************************/

/* graphics functions, as in GC.alu */

#define GXclear
#define GXand
#define GXandReverse
#define GXcopy
#define GXandInverted
#define GXnoop
#define GXxor
#define GXor
#define GXnor
#define GXequiv
#define GXinvert
#define GXorReverse
#define GXcopyInverted
#define GXorInverted
#define GXnand
#define GXset

/* LineStyle */

#define LineSolid
#define LineOnOffDash
#define LineDoubleDash

/* capStyle */

#define CapNotLast
#define CapButt
#define CapRound
#define CapProjecting

/* joinStyle */

#define JoinMiter
#define JoinRound
#define JoinBevel

/* fillStyle */

#define FillSolid
#define FillTiled
#define FillStippled
#define FillOpaqueStippled

/* fillRule */

#define EvenOddRule
#define WindingRule

/* subwindow mode */

#define ClipByChildren
#define IncludeInferiors

/* SetClipRectangles ordering */

#define Unsorted
#define YSorted
#define YXSorted
#define YXBanded

/* CoordinateMode for drawing routines */

#define CoordModeOrigin
#define CoordModePrevious

/* Polygon shapes */

#define Complex
#define Nonconvex
#define Convex

/* Arc modes for PolyFillArc */

#define ArcChord
#define ArcPieSlice

/* GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into
   GC.stateChanges */

#define GCFunction
#define GCPlaneMask
#define GCForeground
#define GCBackground
#define GCLineWidth
#define GCLineStyle
#define GCCapStyle
#define GCJoinStyle
#define GCFillStyle
#define GCFillRule
#define GCTile
#define GCStipple
#define GCTileStipXOrigin
#define GCTileStipYOrigin
#define GCFont
#define GCSubwindowMode
#define GCGraphicsExposures
#define GCClipXOrigin
#define GCClipYOrigin
#define GCClipMask
#define GCDashOffset
#define GCDashList
#define GCArcMode

#define GCLastBit
/*****************************************************************
 * FONTS
 *****************************************************************/

/* used in QueryFont -- draw direction */

#define FontLeftToRight
#define FontRightToLeft

#define FontChange

/*****************************************************************
 *  IMAGING
 *****************************************************************/

/* ImageFormat -- PutImage, GetImage */

#define XYBitmap
#define XYPixmap
#define ZPixmap

/*****************************************************************
 *  COLOR MAP STUFF
 *****************************************************************/

/* For CreateColormap */

#define AllocNone
#define AllocAll


/* Flags used in StoreNamedColor, StoreColors */

#define DoRed
#define DoGreen
#define DoBlue

/*****************************************************************
 * CURSOR STUFF
 *****************************************************************/

/* QueryBestSize Class */

#define CursorShape
#define TileShape
#define StippleShape

/*****************************************************************
 * KEYBOARD/POINTER STUFF
 *****************************************************************/

#define AutoRepeatModeOff
#define AutoRepeatModeOn
#define AutoRepeatModeDefault

#define LedModeOff
#define LedModeOn

/* masks for ChangeKeyboardControl */

#define KBKeyClickPercent
#define KBBellPercent
#define KBBellPitch
#define KBBellDuration
#define KBLed
#define KBLedMode
#define KBKey
#define KBAutoRepeatMode

#define MappingSuccess
#define MappingBusy
#define MappingFailed

#define MappingModifier
#define MappingKeyboard
#define MappingPointer

/*****************************************************************
 * SCREEN SAVER STUFF
 *****************************************************************/

#define DontPreferBlanking
#define PreferBlanking
#define DefaultBlanking

#define DisableScreenSaver
#define DisableScreenInterval

#define DontAllowExposures
#define AllowExposures
#define DefaultExposures

/* for ForceScreenSaver */

#define ScreenSaverReset
#define ScreenSaverActive

/*****************************************************************
 * HOSTS AND CONNECTIONS
 *****************************************************************/

/* for ChangeHosts */

#define HostInsert
#define HostDelete

/* for ChangeAccessControl */

#define EnableAccess
#define DisableAccess

/* Display classes  used in opening the connection
 * Note that the statically allocated ones are even numbered and the
 * dynamically changeable ones are odd numbered */

#define StaticGray
#define GrayScale
#define StaticColor
#define PseudoColor
#define TrueColor
#define DirectColor


/* Byte order  used in imageByteOrder and bitmapBitOrder */

#define LSBFirst
#define MSBFirst

#endif /* X_H */