# This file is part of Xpra.
# Copyright (C) 2008, 2009 Nathaniel Smith <njs@pobox.com>
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
# later version. See the file COPYING for details.

## This file is processed by setup.py to create a .pxi
##
## The resulting .pxi file will make all the constants available to
## Cython code under their own names, and also create a python-exposed
## dictionary through which the constants can be accessed like
## constants["CurrentTime"].

# General-purpose X constants
XNone "None"
PointerWindow
InputFocus
PointerRoot
CurrentTime

# Map states
IsUnmapped
IsUnviewable
IsViewable

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

# Event types
KeyPress
KeyRelease
ButtonPress
ButtonRelease
MotionNotify
EnterNotify
LeaveNotify
FocusIn
FocusOut
KeymapNotify
Expose
GraphicsExpose
NoExpose
VisibilityNotify
CreateNotify
DestroyNotify
UnmapNotify
MapNotify
MapRequest
ReparentNotify
ConfigureNotify
ConfigureRequest
GravityNotify
ResizeRequest
CirculateNotify
CirculateRequest
PropertyNotify
SelectionClear
SelectionRequest
SelectionNotify
ColormapNotify
ClientMessage
MappingNotify
#GenericEvent (not available on all platforms)
LASTEvent

# Property modification types
PropModeReplace
PropModePrepend
PropModeAppend

# XWindowChanges/XConfigureWindow field flags
CWX
CWY
CWWidth
CWHeight
CWBorderWidth
CWSibling
CWStackMode

# Stacking codes
Above
Below
BottomIf
TopIf
Opposite

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

FirstExtensionError
LastExtensionError

# WM_NORMAL_HINTS (WM_SIZE_HINTS) flags
USPosition
USSize
PPosition
PSize
PMinSize
PMaxSize
PResizeInc
PAspect
PBaseSize
PWinGravity

# WM_HINTS flags
InputHint
StateHint
IconPixmapHint
IconWindowHint
IconPositionHint
IconMaskHint
WindowGroupHint
XUrgencyHint

# Window state
WithdrawnState
NormalState
IconicState

# XSetInputFocus
RevertToParent
RevertToPointerRoot
RevertToNone

# Focus events: modes
NotifyNormal
NotifyGrab
NotifyUngrab
# Focus events: details
NotifyAncestor
NotifyVirtual
NotifyInferior
NotifyNonlinear
NotifyNonlinearVirtual
NotifyPointer
NotifyPointerRoot
NotifyDetailNone

# Grab modes
GrabModeSync
GrabModeAsync

# Special grab codes
AnyKey
AnyModifier

# Change keymap
MappingBusy

Button1
Button2
Button3

# Bell / Keyboard:
#XkbDfltXIId
