Module: Xlib
- Extended by:
- FFI::Library
- Defined in:
- lib/x/constants.rb,
lib/xlib.rb,
lib/xlib/constants.rb,
lib/xlib/functions.rb,
lib/xlib/extensions/xrandr.rb,
lib/xlib/extensions/xrender.rb,
lib/x/extensions/randr/constants.rb,
lib/x/extensions/render/constants.rb,
lib/xlib/extensions/xrandr/functions.rb,
lib/xlib/extensions/xrender/constants.rb,
lib/xlib/extensions/xrender/functions.rb
Overview
Copyleft meh. [meh.paranoid.pk | [email protected]] Copyright © 2014, Christopher Aue <[email protected]>
This file is part of the ruby xlib gem. It is subject to the license terms in the LICENSE file found in the top-level directory of this distribution and at github.com/christopheraue/ruby-xlib.
Defined Under Namespace
Classes: Display, GC, Screen, SetWindowAttributes, Visual, WindowAttributes, XAnimCursor, XAnyEvent, XButtonEvent, XCircle, XCirculateEvent, XCirculateRequestEvent, XClientMessageEvent, XColormapEvent, XConfigureEvent, XConfigureRequestEvent, XConicalGradient, XCreateWindowEvent, XCrossingEvent, XDestroyWindowEvent, XErrorEvent, XEvent, XExposeEvent, XFilters, XFocusChangeEvent, XGCValues, XGenericEvent, XGenericEventCookie, XGlyphElt16, XGlyphElt32, XGlyphElt8, XGlyphInfo, XGraphicsExposeEvent, XGravityEvent, XImage, XIndexValue, XKeyEvent, XKeymapEvent, XLineFixed, XLinearGradient, XMapEvent, XMapRequestEvent, XMappingEvent, XMotionEvent, XNoExposeEvent, XPoint, XPointDouble, XPointFixed, XPropertyEvent, XRRCrtcChangeNotifyEvent, XRRCrtcGamma, XRRCrtcInfo, XRRCrtcTransformAttributes, XRRModeInfo, XRRNotifyEvent, XRROutputChangeNotifyEvent, XRROutputInfo, XRROutputPropertyNotifyEvent, XRRPanning, XRRPropertyInfo, XRRProviderChangeNotifyEvent, XRRProviderInfo, XRRProviderPropertyNotifyEvent, XRRProviderResources, XRRResourceChangeNotifyEvent, XRRScreenChangeNotifyEvent, XRRScreenResources, XRRScreenSize, XRadialGradient, XRenderColor, XRenderDirectFormat, XRenderPictFormat, XRenderPictureAttributes, XReparentEvent, XResizeRequestEvent, XSelectionClearEvent, XSelectionEvent, XSelectionRequestEvent, XSpanFix, XTransform, XTrapezoid, XTriangle, XUnmapEvent, XVisibilityEvent
Constant Summary collapse
- None =
**************************************************************** RESERVED RESOURCE AND CONSTANT DEFINITIONS ***************************************************************
0
- ParentRelative =
universal null resource or null atom
1
- CopyFromParent =
and ChangeWindowAttributes
0
- PointerWindow =
and ChangeWindowAttributes special VisualID and special window class passed to CreateWindow
0
- InputFocus =
destination window in SendEvent
1
- PointerRoot =
destination window in SendEvent
1
- AnyPropertyType =
focus window in SetInputFocus
0
- AnyKey =
special Atom, passed to GetProperty
0
- AnyButton =
special Key Code, passed to GrabKey
0
- AllTemporary =
special Button Code, passed to GrabButton
0
- CurrentTime =
special Resource ID passed to KillClient
0
- NoSymbol =
special Time
0
- NoEventMask =
Input Event Masks. Used as event-mask window attribute and as arguments to Grab requests. Not to be confused with event names.
0
- KeyPressMask =
(1<<0)
- KeyReleaseMask =
(1<<1)
- ButtonPressMask =
(1<<2)
- ButtonReleaseMask =
(1<<3)
- EnterWindowMask =
(1<<4)
- LeaveWindowMask =
(1<<5)
- PointerMotionMask =
(1<<6)
- PointerMotionHintMask =
(1<<7)
- Button1MotionMask =
(1<<8)
- Button2MotionMask =
(1<<9)
- Button3MotionMask =
(1<<10)
- Button4MotionMask =
(1<<11)
- Button5MotionMask =
(1<<12)
- ButtonMotionMask =
(1<<13)
- KeymapStateMask =
(1<<14)
- ExposureMask =
(1<<15)
- VisibilityChangeMask =
(1<<16)
- StructureNotifyMask =
(1<<17)
- ResizeRedirectMask =
(1<<18)
- SubstructureNotifyMask =
(1<<19)
- SubstructureRedirectMask =
(1<<20)
- FocusChangeMask =
(1<<21)
- PropertyChangeMask =
(1<<22)
- ColormapChangeMask =
(1<<23)
- OwnerGrabButtonMask =
(1<<24)
- KeyPress =
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.
2
- KeyRelease =
3
- ButtonPress =
4
- ButtonRelease =
5
- MotionNotify =
6
- EnterNotify =
7
- LeaveNotify =
8
- FocusIn =
9
- FocusOut =
10
- KeymapNotify =
11
- Expose =
12
- GraphicsExpose =
13
- NoExpose =
14
- VisibilityNotify =
15
- CreateNotify =
16
- DestroyNotify =
17
- UnmapNotify =
18
- MapNotify =
19
- MapRequest =
20
- ReparentNotify =
21
- ConfigureNotify =
22
- ConfigureRequest =
23
- GravityNotify =
24
- ResizeRequest =
25
- CirculateNotify =
26
- CirculateRequest =
27
- PropertyNotify =
28
- SelectionClear =
29
- SelectionRequest =
30
- SelectionNotify =
31
- ColormapNotify =
32
- ClientMessage =
33
- MappingNotify =
34
- GenericEvent =
35
- LASTEvent =
must be bigger than any event #
36
- ShiftMask =
Key masks. Used as modifiers to GrabButton and GrabKey, results of QueryPointer, state in various key-, mouse-, and button-related events.
(1<<0)
- LockMask =
(1<<1)
- ControlMask =
(1<<2)
- Mod1Mask =
(1<<3)
- Mod2Mask =
(1<<4)
- Mod3Mask =
(1<<5)
- Mod4Mask =
(1<<6)
- Mod5Mask =
(1<<7)
- ShiftMapIndex =
modifier names. Used to build a SetModifierMapping request or to read a GetModifierMapping request. These correspond to the masks defined above.
0
- LockMapIndex =
1
- ControlMapIndex =
2
- Mod1MapIndex =
3
- Mod2MapIndex =
4
- Mod3MapIndex =
5
- Mod4MapIndex =
6
- Mod5MapIndex =
7
- Button1Mask =
button masks. Used in same manner as Key masks above. Not to be confused with button names below.
(1<<8)
- Button2Mask =
(1<<9)
- Button3Mask =
(1<<10)
- Button4Mask =
(1<<11)
- Button5Mask =
(1<<12)
- AnyModifier =
used in GrabButton, GrabKey
(1<<15)
- Button1 =
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”.
1
- Button2 =
2
- Button3 =
3
- Button4 =
4
- Button5 =
5
- NotifyNormal =
Notify modes
0
- NotifyGrab =
1
- NotifyUngrab =
2
- NotifyWhileGrabbed =
3
- NotifyHint =
for MotionNotify events
1
- NotifyAncestor =
Notify detail
0
- NotifyVirtual =
1
- NotifyInferior =
2
- NotifyNonlinear =
3
- NotifyPointer =
define NotifyNonlinearVirtual 4
5
- NotifyPointerRoot =
6
- NotifyDetailNone =
7
- VisibilityUnobscured =
Visibility notify
0
- VisibilityPartiallyObscured =
1
- VisibilityFullyObscured =
2
- PlaceOnTop =
Circulation request
0
- PlaceOnBottom =
1
- FamilyInternet =
protocol families
0
- FamilyDECnet =
IPv4
1
- FamilyChaos =
2
- FamilyInternet6 =
IPv6
6
- PropertyNewValue =
Property notification
0
- PropertyDelete =
1
- ColormapUninstalled =
Color Map notification
0
- ColormapInstalled =
1
- GrabModeSync =
GrabPointer, GrabButton, GrabKeyboard, GrabKey Modes
0
- GrabModeAsync =
1
- GrabSuccess =
GrabPointer, GrabKeyboard reply status
0
- AlreadyGrabbed =
1
- GrabInvalidTime =
2
- GrabNotViewable =
3
- GrabFrozen =
4
- AsyncPointer =
AllowEvents modes
0
- SyncPointer =
1
- ReplayPointer =
2
- AsyncKeyboard =
3
- SyncKeyboard =
4
- ReplayKeyboard =
5
- AsyncBoth =
6
- SyncBoth =
7
- RevertToNone =
Used in SetInputFocus, GetInputFocus
None
- RevertToPointerRoot =
PointerRoot
- RevertToParent =
2
- Success =
**************************************************************** ERROR CODES ***************************************************************
0
- BadRequest =
everything’s okay
1
- BadValue =
bad request code
2
- BadWindow =
int parameter out of range
3
- BadPixmap =
parameter not a Window
4
- BadAtom =
parameter not a Pixmap
5
- BadCursor =
parameter not an Atom
6
- BadFont =
parameter not a Cursor
7
- BadMatch =
parameter not a Font
8
- BadDrawable =
parameter mismatch
9
- BadAccess =
parameter not a Pixmap or Window
10
- BadAlloc =
/
11
- BadColor =
insufficient resources
12
- BadGC =
no such colormap
13
- BadIDChoice =
parameter not a GC
14
- BadName =
choice not in range or already used
15
- BadLength =
font or color name doesn’t exist
16
- FirstExtensionError =
define BadImplementation 17 # server is defective
128
- LastExtensionError =
255
- InputOutput =
Window classes used by CreateWindow Note that CopyFromParent is already defined as 0 above
1
- InputOnly =
2
- CWBackPixmap =
Window attributes for CreateWindow and ChangeWindowAttributes
(1<<0)
- CWBackPixel =
(1<<1)
- CWBorderPixmap =
(1<<2)
- CWBorderPixel =
(1<<3)
- CWBitGravity =
(1<<4)
- CWWinGravity =
(1<<5)
- CWBackingStore =
(1<<6)
- CWBackingPlanes =
(1<<7)
- CWBackingPixel =
(1<<8)
- CWOverrideRedirect =
(1<<9)
- CWSaveUnder =
(1<<10)
- CWEventMask =
(1<<11)
- CWDontPropagate =
(1<<12)
- CWColormap =
(1<<13)
- CWCursor =
(1<<14)
- CWX =
ConfigureWindow structure
(1<<0)
- CWY =
(1<<1)
- CWWidth =
(1<<2)
- CWHeight =
(1<<3)
- CWBorderWidth =
(1<<4)
- CWSibling =
(1<<5)
- CWStackMode =
(1<<6)
- ForgetGravity =
Bit Gravity
0
- NorthWestGravity =
1
- NorthGravity =
2
- NorthEastGravity =
3
- WestGravity =
4
- CenterGravity =
5
- EastGravity =
6
- SouthWestGravity =
7
- SouthGravity =
8
- SouthEastGravity =
9
- StaticGravity =
10
- UnmapGravity =
Window gravity + bit gravity above
0
- NotUseful =
Used in CreateWindow for backing-store hint
0
- WhenMapped =
1
- Always =
2
- IsUnmapped =
Used in GetWindowAttributes reply
0
- IsUnviewable =
1
- IsViewable =
2
- SetModeInsert =
Used in ChangeSaveSet
0
- SetModeDelete =
1
- DestroyAll =
Used in ChangeCloseDownMode
0
- RetainPermanent =
1
- RetainTemporary =
2
- Above =
Window stacking method (in configureWindow)
0
- Below =
1
- TopIf =
2
- BottomIf =
3
- Opposite =
4
- RaiseLowest =
Circulation direction
0
- LowerHighest =
1
- PropModeReplace =
Property modes
0
- PropModePrepend =
1
- PropModeAppend =
2
- GXclear =
graphics functions, as in GC.alu
0x0
- GXand =
0
0x1
- GXandReverse =
src AND dst
0x2
- GXcopy =
src AND NOT dst
0x3
- GXandInverted =
src
0x4
- GXnoop =
NOT src AND dst
0x5
- GXxor =
dst
0x6
- GXor =
src XOR dst
0x7
- GXnor =
src OR dst
0x8
- GXequiv =
NOT src AND NOT dst
0x9
- GXinvert =
NOT src XOR dst
0xa
- GXorReverse =
NOT dst
0xb
- GXcopyInverted =
src OR NOT dst
0xc
- GXorInverted =
NOT src
0xd
- GXnand =
NOT src OR dst
0xe
- GXset =
NOT src OR NOT dst
0xf
- LineSolid =
LineStyle
0
- LineOnOffDash =
1
- LineDoubleDash =
2
- CapNotLast =
capStyle
0
- CapButt =
1
- CapRound =
2
- CapProjecting =
3
- JoinMiter =
joinStyle
0
- JoinRound =
1
- JoinBevel =
2
- FillSolid =
fillStyle
0
- FillTiled =
1
- FillStippled =
2
- FillOpaqueStippled =
3
- EvenOddRule =
fillRule
0
- WindingRule =
1
- ClipByChildren =
subwindow mode
0
- IncludeInferiors =
1
- Unsorted =
SetClipRectangles ordering
0
- YSorted =
1
- YXSorted =
2
- YXBanded =
3
- CoordModeOrigin =
CoordinateMode for drawing routines
0
- CoordModePrevious =
relative to the origin
1
- Complex =
Polygon shapes
0
- Nonconvex =
paths may intersect
1
- Convex =
no paths intersect, but not convex
2
- ArcChord =
Arc modes for PolyFillArc
0
- ArcPieSlice =
join endpoints of arc
1
- GCFunction =
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR’ed into GC.stateChanges
(1<<0)
- GCPlaneMask =
(1<<1)
- GCForeground =
(1<<2)
- GCBackground =
(1<<3)
- GCLineWidth =
(1<<4)
- GCLineStyle =
(1<<5)
- GCCapStyle =
(1<<6)
- GCJoinStyle =
(1<<7)
- GCFillStyle =
(1<<8)
- GCFillRule =
(1<<9)
- GCTile =
(1<<10)
- GCStipple =
(1<<11)
- GCTileStipXOrigin =
(1<<12)
- GCTileStipYOrigin =
(1<<13)
- GCFont =
(1<<14)
- GCSubwindowMode =
(1<<15)
- GCGraphicsExposures =
(1<<16)
- GCClipXOrigin =
(1<<17)
- GCClipYOrigin =
(1<<18)
- GCClipMask =
(1<<19)
- GCDashOffset =
(1<<20)
- GCDashList =
(1<<21)
- GCArcMode =
(1<<22)
- GCLastBit =
22
- FontLeftToRight =
used in QueryFont – draw direction
0
- FontRightToLeft =
1
- FontChange =
255
- XYBitmap =
ImageFormat – PutImage, GetImage
0
- XYPixmap =
depth 1, XYFormat
1
- ZPixmap =
depth == drawable depth
2
- AllocNone =
For CreateColormap
0
- AllocAll =
create map with no entries
1
- DoRed =
Flags used in StoreNamedColor, StoreColors
(1<<0)
- DoGreen =
(1<<1)
- DoBlue =
(1<<2)
- CursorShape =
QueryBestSize Class
0
- TileShape =
largest size that can be displayed
1
- StippleShape =
size tiled fastest
2
- AutoRepeatModeOff =
**************************************************************** KEYBOARD/POINTER STUFF ***************************************************************
0
- AutoRepeatModeOn =
1
- AutoRepeatModeDefault =
2
- LedModeOff =
0
- LedModeOn =
1
- KBKeyClickPercent =
masks for ChangeKeyboardControl
(1<<0)
- KBBellPercent =
(1<<1)
- KBBellPitch =
(1<<2)
- KBBellDuration =
(1<<3)
- KBLed =
(1<<4)
- KBLedMode =
(1<<5)
- KBKey =
(1<<6)
- KBAutoRepeatMode =
(1<<7)
- MappingSuccess =
0
- MappingBusy =
1
- MappingFailed =
2
- MappingModifier =
0
- MappingKeyboard =
1
- MappingPointer =
2
- DontPreferBlanking =
**************************************************************** SCREEN SAVER STUFF ***************************************************************
0
- PreferBlanking =
1
- DefaultBlanking =
2
- DisableScreenSaver =
0
- DisableScreenInterval =
0
- DontAllowExposures =
0
- AllowExposures =
1
- DefaultExposures =
2
- HostInsert =
for ChangeHosts
0
- HostDelete =
1
- EnableAccess =
for ChangeAccessControl
1
- DisableAccess =
0
- StaticGray =
Display classes used in opening the connection Note that the statically allocated ones are even numbered and the dynamically changeable ones are odd numbered
0
- GrayScale =
1
- StaticColor =
2
- PseudoColor =
3
- TrueColor =
4
- DirectColor =
5
- LSBFirst =
Byte order used in imageByteOrder and bitmapBitOrder
0
- MSBFirst =
1
- QueuedAlready =
0
- QueuedAfterReading =
1
- QueuedAfterFlush =
2
- XNRequiredCharSet =
'requiredCharSet'
- XNQueryOrientation =
'queryOrientation'
- XNBaseFontName =
'baseFontName'
- XNOMAutomatic =
'omAutomatic'
- XNMissingCharSet =
'missingCharSet'
- XNDefaultString =
'defaultString'
- XNOrientation =
'orientation'
- XNDirectionalDependentDrawing =
'directionalDependentDrawing'
- XNContextualDrawing =
'contextualDrawing'
- XNFontInfo =
'fontInfo'
- XIMPreeditArea =
0x0001
- XIMPreeditCallbacks =
0x0002
- XIMPreeditPosition =
0x0004
- XIMPreeditNothing =
0x0008
- XIMPreeditNone =
0x0010
- XIMStatusArea =
0x0100
- XIMStatusCallbacks =
0x0200
- XIMStatusNothing =
0x0400
- XIMStatusNone =
0x0800
- XNVaNestedList =
'XNVaNestedList'
- XNQueryInputStyle =
'queryInputStyle'
- XNClientWindow =
'clientWindow'
- XNInputStyle =
'inputStyle'
- XNFocusWindow =
'focusWindow'
- XNResourceName =
'resourceName'
- XNResourceClass =
'resourceClass'
- XNGeometryCallback =
'geometryCallback'
- XNDestroyCallback =
'destroyCallback'
- XNFilterEvents =
'filterEvents'
- XNPreeditStartCallback =
'preeditStartCallback'
- XNPreeditDoneCallback =
'preeditDoneCallback'
- XNPreeditDrawCallback =
'preeditDrawCallback'
- XNPreeditCaretCallback =
'preeditCaretCallback'
- XNPreeditStateNotifyCallback =
'preeditStateNotifyCallback'
- XNPreeditAttributes =
'preeditAttributes'
- XNStatusStartCallback =
'statusStartCallback'
- XNStatusDoneCallback =
'statusDoneCallback'
- XNStatusDrawCallback =
'statusDrawCallback'
- XNStatusAttributes =
'statusAttributes'
- XNArea =
'area'
- XNAreaNeeded =
'areaNeeded'
- XNSpotLocation =
'spotLocation'
- XNColormap =
'colorMap'
- XNStdColormap =
'stdColorMap'
- XNForeground =
'foreground'
- XNBackground =
'background'
- XNBackgroundPixmap =
'backgroundPixmap'
- XNFontSet =
'fontSet'
- XNLineSpace =
'lineSpace'
- XNCursor =
'cursor'
- XNQueryIMValuesList =
'queryIMValuesList'
- XNQueryICValuesList =
'queryICValuesList'
- XNVisiblePosition =
'visiblePosition'
- XNR6PreeditCallback =
'r6PreeditCallback'
- XNStringConversionCallback =
'stringConversionCallback'
- XNStringConversion =
'stringConversion'
- XNResetState =
'resetState'
- XNHotKey =
'hotKey'
- XNHotKeyState =
'hotKeyState'
- XNPreeditState =
'preeditState'
- XNSeparatorofNestedList =
'separatorofNestedList'
- XBufferOverflow =
-1
- XLookupNone =
1
- XLookupChars =
2
- XLookupKeySym =
3
- XLookupBoth =
4
- XIMReverse =
1
- XIMUnderline =
(1<<1)
- XIMHighlight =
(1<<2)
- XIMPrimary =
(1<<5)
- XIMSecondary =
(1<<6)
- XIMTertiary =
(1<<7)
- XIMVisibleToForward =
(1<<8)
- XIMVisibleToBackword =
(1<<9)
- XIMVisibleToCenter =
(1<<10)
- XIMPreeditUnKnown =
0
- XIMPreeditEnable =
1
- XIMPreeditDisable =
(1<<1)
- XIMInitialState =
1
- XIMPreserveState =
(1<<1)
- XIMStringConversionLeftEdge =
(0x00000001)
- XIMStringConversionRightEdge =
(0x00000002)
- XIMStringConversionTopEdge =
(0x00000004)
- XIMStringConversionBottomEdge =
(0x00000008)
- XIMStringConversionConcealed =
(0x00000010)
- XIMStringConversionWrapped =
(0x00000020)
- XIMStringConversionBuffer =
(0x0001)
- XIMStringConversionLine =
(0x0002)
- XIMStringConversionWord =
(0x0003)
- XIMStringConversionChar =
(0x0004)
- XIMStringConversionSubstitution =
(0x0001)
- XIMStringConversionRetrieval =
(0x0002)
- XIMHotKeyStateON =
(0x0001)
- XIMHotKeyStateOFF =
(0x0002)
- RANDR_NAME =
'RANDR'
- RANDR_MAJOR =
1
- RANDR_MINOR =
4
- RRNumberErrors =
4
- RRNumberEvents =
2
- RRNumberRequests =
42
- X_RRQueryVersion =
0
- X_RROldGetScreenInfo =
we skip 1 to make old clients fail pretty immediately
1
- X_RR1_0SetScreenConfig =
2
- X_RRSetScreenConfig =
V1.0 apps share the same set screen config request id
2
- X_RROldScreenChangeSelectInput =
3
- X_RRSelectInput =
3 used to be ScreenChangeSelectInput; deprecated
4
- X_RRGetScreenInfo =
5
- X_RRGetScreenSizeRange =
V1.2 additions
6
- X_RRSetScreenSize =
7
- X_RRGetScreenResources =
8
- X_RRGetOutputInfo =
9
- X_RRListOutputProperties =
10
- X_RRQueryOutputProperty =
11
- X_RRConfigureOutputProperty =
12
- X_RRChangeOutputProperty =
13
- X_RRDeleteOutputProperty =
14
- X_RRGetOutputProperty =
15
- X_RRCreateMode =
16
- X_RRDestroyMode =
17
- X_RRAddOutputMode =
18
- X_RRDeleteOutputMode =
19
- X_RRGetCrtcInfo =
20
- X_RRSetCrtcConfig =
21
- X_RRGetCrtcGammaSize =
22
- X_RRGetCrtcGamma =
23
- X_RRSetCrtcGamma =
24
- X_RRGetScreenResourcesCurrent =
V1.3 additions
25
- X_RRSetCrtcTransform =
26
- X_RRGetCrtcTransform =
27
- X_RRGetPanning =
28
- X_RRSetPanning =
29
- X_RRSetOutputPrimary =
30
- X_RRGetOutputPrimary =
31
- RRTransformUnit =
2**0
- RRTransformScaleUp =
2**1
- RRTransformScaleDown =
2**2
- RRTransformProjective =
2**3
- X_RRGetProviders =
v1.4
32
- X_RRGetProviderInfo =
33
- X_RRSetProviderOffloadSink =
34
- X_RRSetProviderOutputSource =
35
- X_RRListProviderProperties =
36
- X_RRQueryProviderProperty =
37
- X_RRConfigureProviderProperty =
38
- X_RRChangeProviderProperty =
39
- X_RRDeleteProviderProperty =
40
- X_RRGetProviderProperty =
41
- RRScreenChangeNotifyMask =
Event selection bits
2**0
- RRCrtcChangeNotifyMask =
V1.2 additions
2**1
- RROutputChangeNotifyMask =
2**2
- RROutputPropertyNotifyMask =
2**3
- RRProviderChangeNotifyMask =
V1.4 additions
2**4
- RRProviderPropertyNotifyMask =
2**5
- RRResourceChangeNotifyMask =
2**6
- RRScreenChangeNotify =
Event codes
0
- RRNotify =
V1.2 additions
1
- RRNotify_CrtcChange =
RRNotify Subcodes
0
- RRNotify_OutputChange =
1
- RRNotify_OutputProperty =
2
- RRNotify_ProviderChange =
3
- RRNotify_ProviderProperty =
4
- RRNotify_ResourceChange =
5
- RR_Rotate_0 =
used in the rotation field; rotation and reflection in 0.1 proto.
1
- RR_Rotate_90 =
2
- RR_Rotate_180 =
4
- RR_Rotate_270 =
8
- RR_Reflect_X =
new in 1.0 protocol, to allow reflection of screen
16
- RR_Reflect_Y =
32
- RRSetConfigSuccess =
0
- RRSetConfigInvalidConfigTime =
1
- RRSetConfigInvalidTime =
2
- RRSetConfigFailed =
3
- RR_HSyncPositive =
new in 1.2 protocol
0x00000001
- RR_HSyncNegative =
0x00000002
- RR_VSyncPositive =
0x00000004
- RR_VSyncNegative =
0x00000008
- RR_Interlace =
0x00000010
- RR_DoubleScan =
0x00000020
- RR_CSync =
0x00000040
- RR_CSyncPositive =
0x00000080
- RR_CSyncNegative =
0x00000100
- RR_HSkewPresent =
0x00000200
- RR_BCast =
0x00000400
- RR_PixelMultiplex =
0x00000800
- RR_DoubleClock =
0x00001000
- RR_ClockDivideBy2 =
0x00002000
- RR_Connected =
0
- RR_Disconnected =
1
- RR_UnknownConnection =
2
- BadRROutput =
0
- BadRRCrtc =
1
- BadRRMode =
2
- BadRRProvider =
3
- RR_PROPERTY_BACKLIGHT =
Conventional RandR output properties
'Backlight'
- RR_PROPERTY_RANDR_EDID =
'EDID'
- RR_PROPERTY_SIGNAL_FORMAT =
'SignalFormat'
- RR_PROPERTY_SIGNAL_PROPERTIES =
'SignalProperties'
- RR_PROPERTY_CONNECTOR_TYPE =
'ConnectorType'
- RR_PROPERTY_CONNECTOR_NUMBER =
'ConnectorNumber'
- RR_PROPERTY_COMPATIBILITY_LIST =
'CompatibilityList'
- RR_PROPERTY_CLONE_LIST =
'CloneList'
- RR_PROPERTY_BORDER =
'Border'
- RR_PROPERTY_BORDER_DIMENSIONS =
'BorderDimensions'
- RR_Capability_None =
roles this device can carry out
0
- RR_Capability_SourceOutput =
1
- RR_Capability_SinkOutput =
2
- RR_Capability_SourceOffload =
4
- RR_Capability_SinkOffload =
8
- RENDER_NAME =
'RENDER'
- RENDER_MAJOR =
0
- RENDER_MINOR =
11
- X_RenderQueryVersion =
0
- X_RenderQueryPictFormats =
1
- X_RenderQueryPictIndexValues =
0.7
2
- X_RenderQueryDithers =
3
- X_RenderCreatePicture =
4
- X_RenderChangePicture =
5
- X_RenderSetPictureClipRectangles =
6
- X_RenderFreePicture =
7
- X_RenderComposite =
8
- X_RenderScale =
9
- X_RenderTrapezoids =
10
- X_RenderTriangles =
11
- X_RenderTriStrip =
12
- X_RenderTriFan =
13
- X_RenderColorTrapezoids =
14
- X_RenderColorTriangles =
15
- X_RenderCreateGlyphSet =
X_RenderTransform = 16
17
- X_RenderReferenceGlyphSet =
18
- X_RenderFreeGlyphSet =
19
- X_RenderAddGlyphs =
20
- X_RenderAddGlyphsFromPicture =
21
- X_RenderFreeGlyphs =
22
- X_RenderCompositeGlyphs8 =
23
- X_RenderCompositeGlyphs16 =
24
- X_RenderCompositeGlyphs32 =
25
- X_RenderFillRectangles =
26
- X_RenderCreateCursor =
27
- X_RenderSetPictureTransform =
28
- X_RenderQueryFilters =
29
- X_RenderSetPictureFilter =
30
- X_RenderCreateAnimCursor =
31
- X_RenderAddTraps =
32
- X_RenderCreateSolidFill =
33
- X_RenderCreateLinearGradient =
34
- X_RenderCreateRadialGradient =
35
- X_RenderCreateConicalGradient =
36
- RenderNumberRequests =
(X_RenderCreateConicalGradient+1)
- BadPictFormat =
0
- BadPicture =
1
- BadPictOp =
2
- BadGlyphSet =
3
- BadGlyph =
4
- RenderNumberErrors =
(BadGlyph+1)
- PictTypeIndexed =
0
- PictTypeDirect =
1
- PictOpMinimum =
0
- PictOpClear =
0
- PictOpSrc =
1
- PictOpDst =
2
- PictOpOver =
3
- PictOpOverReverse =
4
- PictOpIn =
5
- PictOpInReverse =
6
- PictOpOut =
7
- PictOpOutReverse =
8
- PictOpAtop =
9
- PictOpAtopReverse =
10
- PictOpXor =
11
- PictOpAdd =
12
- PictOpSaturate =
13
- PictOpMaximum =
13
- PictOpDisjointMinimum =
0x10
- PictOpDisjointClear =
0x10
- PictOpDisjointSrc =
0x11
- PictOpDisjointDst =
0x12
- PictOpDisjointOver =
0x13
- PictOpDisjointOverReverse =
0x14
- PictOpDisjointIn =
0x15
- PictOpDisjointInReverse =
0x16
- PictOpDisjointOut =
0x17
- PictOpDisjointOutReverse =
0x18
- PictOpDisjointAtop =
0x19
- PictOpDisjointAtopReverse =
0x1a
- PictOpDisjointXor =
0x1b
- PictOpDisjointMaximum =
0x1b
- PictOpConjointMinimum =
0x20
- PictOpConjointClear =
0x20
- PictOpConjointSrc =
0x21
- PictOpConjointDst =
0x22
- PictOpConjointOver =
0x23
- PictOpConjointOverReverse =
0x24
- PictOpConjointIn =
0x25
- PictOpConjointInReverse =
0x26
- PictOpConjointOut =
0x27
- PictOpConjointOutReverse =
0x28
- PictOpConjointAtop =
0x29
- PictOpConjointAtopReverse =
0x2a
- PictOpConjointXor =
0x2b
- PictOpConjointMaximum =
0x2b
- PictOpBlendMinimum =
0x30
- PictOpMultiply =
0x30
- PictOpScreen =
0x31
- PictOpOverlay =
0x32
- PictOpDarken =
0x33
- PictOpLighten =
0x34
- PictOpColorDodge =
0x35
- PictOpColorBurn =
0x36
- PictOpHardLight =
0x37
- PictOpSoftLight =
0x38
- PictOpDifference =
0x39
- PictOpExclusion =
0x3a
- PictOpHSLHue =
0x3b
- PictOpHSLSaturation =
0x3c
- PictOpHSLColor =
0x3d
- PictOpHSLLuminosity =
0x3e
- PictOpBlendMaximum =
0x3e
- PolyEdgeSharp =
0
- PolyEdgeSmooth =
1
- PolyModePrecise =
0
- PolyModeImprecise =
1
- CPRepeat =
(1 << 0)
- CPAlphaMap =
(1 << 1)
- CPAlphaXOrigin =
(1 << 2)
- CPAlphaYOrigin =
(1 << 3)
- CPClipXOrigin =
(1 << 4)
- CPClipYOrigin =
(1 << 5)
- CPClipMask =
(1 << 6)
- CPGraphicsExposure =
(1 << 7)
- CPSubwindowMode =
(1 << 8)
- CPPolyEdge =
(1 << 9)
- CPPolyMode =
(1 << 10)
- CPDither =
(1 << 11)
- CPComponentAlpha =
(1 << 12)
- CPLastBit =
12
- FilterNearest =
'nearest'
- FilterBilinear =
'bilinear'
- FilterConvolution =
'convolution'
- FilterFast =
'fast'
- FilterGood =
'good'
- FilterBest =
'best'
- FilterAliasNone =
-1
- SubPixelUnknown =
0
- SubPixelHorizontalRGB =
1
- SubPixelHorizontalBGR =
2
- SubPixelVerticalRGB =
3
- SubPixelVerticalBGR =
4
- SubPixelNone =
5
- RepeatNone =
0
- RepeatNormal =
1
- RepeatPad =
2
- RepeatReflect =
3
- PictFormatID =
(1 << 0)
- PictFormatType =
(1 << 1)
- PictFormatDepth =
(1 << 2)
- PictFormatRed =
(1 << 3)
- PictFormatRedMask =
(1 << 4)
- PictFormatGreen =
(1 << 5)
- PictFormatGreenMask =
(1 << 6)
- PictFormatBlue =
(1 << 7)
- PictFormatBlueMask =
(1 << 8)
- PictFormatAlpha =
(1 << 9)
- PictFormatAlphaMask =
(1 << 10)
- PictFormatColormap =
(1 << 11)
- PictStandardARGB32 =
0
- PictStandardRGB24 =
1
- PictStandardA8 =
2
- PictStandardA4 =
3
- PictStandardA1 =
4
- PictStandardNUM =
5