import "github.com/BurntSushi/xgb/xproto"
Package xproto is the X client API for the extension.
const (
AccessControlDisable = 0
AccessControlEnable = 1
)const (
AllowAsyncPointer = 0
AllowSyncPointer = 1
AllowReplayPointer = 2
AllowAsyncKeyboard = 3
AllowSyncKeyboard = 4
AllowReplayKeyboard = 5
AllowAsyncBoth = 6
AllowSyncBoth = 7
)const (
ArcModeChord = 0
ArcModePieSlice = 1
)const (
AtomNone = 0
AtomAny = 0
AtomPrimary = 1
AtomSecondary = 2
AtomArc = 3
AtomAtom = 4
AtomBitmap = 5
AtomCardinal = 6
AtomColormap = 7
AtomCursor = 8
AtomCutBuffer0 = 9
AtomCutBuffer1 = 10
AtomCutBuffer2 = 11
AtomCutBuffer3 = 12
AtomCutBuffer4 = 13
AtomCutBuffer5 = 14
AtomCutBuffer6 = 15
AtomCutBuffer7 = 16
AtomDrawable = 17
AtomFont = 18
AtomInteger = 19
AtomPixmap = 20
AtomPoint = 21
AtomRectangle = 22
AtomResourceManager = 23
AtomRgbColorMap = 24
AtomRgbBestMap = 25
AtomRgbBlueMap = 26
AtomRgbDefaultMap = 27
AtomRgbGrayMap = 28
AtomRgbGreenMap = 29
AtomRgbRedMap = 30
AtomString = 31
AtomVisualid = 32
AtomWindow = 33
AtomWmCommand = 34
AtomWmHints = 35
AtomWmClientMachine = 36
AtomWmIconName = 37
AtomWmIconSize = 38
AtomWmName = 39
AtomWmNormalHints = 40
AtomWmSizeHints = 41
AtomWmZoomHints = 42
AtomMinSpace = 43
AtomNormSpace = 44
AtomMaxSpace = 45
AtomEndSpace = 46
AtomSuperscriptX = 47
AtomSuperscriptY = 48
AtomSubscriptX = 49
AtomSubscriptY = 50
AtomUnderlinePosition = 51
AtomUnderlineThickness = 52
AtomStrikeoutAscent = 53
AtomStrikeoutDescent = 54
AtomItalicAngle = 55
AtomXHeight = 56
AtomQuadWidth = 57
AtomWeight = 58
AtomPointSize = 59
AtomResolution = 60
AtomCopyright = 61
AtomNotice = 62
AtomFontName = 63
AtomFamilyName = 64
AtomFullName = 65
AtomCapHeight = 66
AtomWmClass = 67
AtomWmTransientFor = 68
)const (
AutoRepeatModeOff = 0
AutoRepeatModeOn = 1
AutoRepeatModeDefault = 2
)const (
BackPixmapNone = 0
BackPixmapParentRelative = 1
)const (
BackingStoreNotUseful = 0
BackingStoreWhenMapped = 1
BackingStoreAlways = 2
)const (
BlankingNotPreferred = 0
BlankingPreferred = 1
BlankingDefault = 2
)const (
ButtonIndexAny = 0
ButtonIndex1 = 1
ButtonIndex2 = 2
ButtonIndex3 = 3
ButtonIndex4 = 4
ButtonIndex5 = 5
)const (
ButtonMask1 = 256
ButtonMask2 = 512
ButtonMask3 = 1024
ButtonMask4 = 2048
ButtonMask5 = 4096
ButtonMaskAny = 32768
)const (
CapStyleNotLast = 0
CapStyleButt = 1
CapStyleRound = 2
CapStyleProjecting = 3
)const (
CirculateRaiseLowest = 0
CirculateLowerHighest = 1
)const (
ClipOrderingUnsorted = 0
ClipOrderingYSorted = 1
ClipOrderingYXSorted = 2
ClipOrderingYXBanded = 3
)const (
CloseDownDestroyAll = 0
CloseDownRetainPermanent = 1
CloseDownRetainTemporary = 2
)const (
ColorFlagRed = 1
ColorFlagGreen = 2
ColorFlagBlue = 4
)const (
ColormapAllocNone = 0
ColormapAllocAll = 1
)const (
ColormapStateUninstalled = 0
ColormapStateInstalled = 1
)const (
ConfigWindowX = 1
ConfigWindowY = 2
ConfigWindowWidth = 4
ConfigWindowHeight = 8
ConfigWindowBorderWidth = 16
ConfigWindowSibling = 32
ConfigWindowStackMode = 64
)const (
CoordModeOrigin = 0
CoordModePrevious = 1
)const (
CwBackPixmap = 1
CwBackPixel = 2
CwBorderPixmap = 4
CwBorderPixel = 8
CwBitGravity = 16
CwWinGravity = 32
CwBackingStore = 64
CwBackingPlanes = 128
CwBackingPixel = 256
CwOverrideRedirect = 512
CwSaveUnder = 1024
CwEventMask = 2048
CwDontPropagate = 4096
CwColormap = 8192
CwCursor = 16384
)const (
EventMaskNoEvent = 0
EventMaskKeyPress = 1
EventMaskKeyRelease = 2
EventMaskButtonPress = 4
EventMaskButtonRelease = 8
EventMaskEnterWindow = 16
EventMaskLeaveWindow = 32
EventMaskPointerMotion = 64
EventMaskPointerMotionHint = 128
EventMaskButton1Motion = 256
EventMaskButton2Motion = 512
EventMaskButton3Motion = 1024
EventMaskButton4Motion = 2048
EventMaskButton5Motion = 4096
EventMaskButtonMotion = 8192
EventMaskKeymapState = 16384
EventMaskExposure = 32768
EventMaskVisibilityChange = 65536
EventMaskStructureNotify = 131072
EventMaskResizeRedirect = 262144
EventMaskSubstructureNotify = 524288
EventMaskSubstructureRedirect = 1048576
EventMaskFocusChange = 2097152
EventMaskPropertyChange = 4194304
EventMaskColorMapChange = 8388608
EventMaskOwnerGrabButton = 16777216
)const (
ExposuresNotAllowed = 0
ExposuresAllowed = 1
ExposuresDefault = 2
)const (
FamilyInternet = 0
FamilyDECnet = 1
FamilyChaos = 2
FamilyServerInterpreted = 5
FamilyInternet6 = 6
)const (
FillRuleEvenOdd = 0
FillRuleWinding = 1
)const (
FillStyleSolid = 0
FillStyleTiled = 1
FillStyleStippled = 2
FillStyleOpaqueStippled = 3
)const (
FontDrawLeftToRight = 0
FontDrawRightToLeft = 1
)const (
GcFunction = 1
GcPlaneMask = 2
GcForeground = 4
GcBackground = 8
GcLineWidth = 16
GcLineStyle = 32
GcCapStyle = 64
GcJoinStyle = 128
GcFillStyle = 256
GcFillRule = 512
GcTile = 1024
GcStipple = 2048
GcTileStippleOriginX = 4096
GcTileStippleOriginY = 8192
GcFont = 16384
GcSubwindowMode = 32768
GcGraphicsExposures = 65536
GcClipOriginX = 131072
GcClipOriginY = 262144
GcClipMask = 524288
GcDashOffset = 1048576
GcDashList = 2097152
GcArcMode = 4194304
)const (
GrabModeSync = 0
GrabModeAsync = 1
)const (
GrabStatusSuccess = 0
GrabStatusAlreadyGrabbed = 1
GrabStatusInvalidTime = 2
GrabStatusNotViewable = 3
GrabStatusFrozen = 4
)const (
GravityBitForget = 0
GravityWinUnmap = 0
GravityNorthWest = 1
GravityNorth = 2
GravityNorthEast = 3
GravityWest = 4
GravityCenter = 5
GravityEast = 6
GravitySouthWest = 7
GravitySouth = 8
GravitySouthEast = 9
GravityStatic = 10
)const (
GxClear = 0
GxAnd = 1
GxAndReverse = 2
GxCopy = 3
GxAndInverted = 4
GxNoop = 5
GxXor = 6
GxOr = 7
GxNor = 8
GxEquiv = 9
GxInvert = 10
GxOrReverse = 11
GxCopyInverted = 12
GxOrInverted = 13
GxNand = 14
GxSet = 15
)const (
HostModeInsert = 0
HostModeDelete = 1
)const (
ImageFormatXYBitmap = 0
ImageFormatXYPixmap = 1
ImageFormatZPixmap = 2
)const (
ImageOrderLSBFirst = 0
ImageOrderMSBFirst = 1
)const (
InputFocusNone = 0
InputFocusPointerRoot = 1
InputFocusParent = 2
InputFocusFollowKeyboard = 3
)const (
JoinStyleMiter = 0
JoinStyleRound = 1
JoinStyleBevel = 2
)const (
KbKeyClickPercent = 1
KbBellPercent = 2
KbBellPitch = 4
KbBellDuration = 8
KbLed = 16
KbLedMode = 32
KbKey = 64
KbAutoRepeatMode = 128
)const (
KeyButMaskShift = 1
KeyButMaskLock = 2
KeyButMaskControl = 4
KeyButMaskMod1 = 8
KeyButMaskMod2 = 16
KeyButMaskMod3 = 32
KeyButMaskMod4 = 64
KeyButMaskMod5 = 128
KeyButMaskButton1 = 256
KeyButMaskButton2 = 512
KeyButMaskButton3 = 1024
KeyButMaskButton4 = 2048
KeyButMaskButton5 = 4096
)const (
LedModeOff = 0
LedModeOn = 1
)const (
LineStyleSolid = 0
LineStyleOnOffDash = 1
LineStyleDoubleDash = 2
)const (
MapIndexShift = 0
MapIndexLock = 1
MapIndexControl = 2
MapIndex1 = 3
MapIndex2 = 4
MapIndex3 = 5
MapIndex4 = 6
MapIndex5 = 7
)const (
MapStateUnmapped = 0
MapStateUnviewable = 1
MapStateViewable = 2
)const (
MappingModifier = 0
MappingKeyboard = 1
MappingPointer = 2
)const (
MappingStatusSuccess = 0
MappingStatusBusy = 1
MappingStatusFailure = 2
)const (
ModMaskShift = 1
ModMaskLock = 2
ModMaskControl = 4
ModMask1 = 8
ModMask2 = 16
ModMask3 = 32
ModMask4 = 64
ModMask5 = 128
ModMaskAny = 32768
)const (
MotionNormal = 0
MotionHint = 1
)const (
NotifyDetailAncestor = 0
NotifyDetailVirtual = 1
NotifyDetailInferior = 2
NotifyDetailNonlinear = 3
NotifyDetailNonlinearVirtual = 4
NotifyDetailPointer = 5
NotifyDetailPointerRoot = 6
NotifyDetailNone = 7
)const (
NotifyModeNormal = 0
NotifyModeGrab = 1
NotifyModeUngrab = 2
NotifyModeWhileGrabbed = 3
)const (
PlaceOnTop = 0
PlaceOnBottom = 1
)const (
PolyShapeComplex = 0
PolyShapeNonconvex = 1
PolyShapeConvex = 2
)const (
PropModeReplace = 0
PropModePrepend = 1
PropModeAppend = 2
)const (
PropertyNewValue = 0
PropertyDelete = 1
)const (
QueryShapeOfLargestCursor = 0
QueryShapeOfFastestTile = 1
QueryShapeOfFastestStipple = 2
)const (
ScreenSaverReset = 0
ScreenSaverActive = 1
)const (
SendEventDestPointerWindow = 0
SendEventDestItemFocus = 1
)const (
SetModeInsert = 0
SetModeDelete = 1
)const (
StackModeAbove = 0
StackModeBelow = 1
StackModeTopIf = 2
StackModeBottomIf = 3
StackModeOpposite = 4
)const (
SubwindowModeClipByChildren = 0
SubwindowModeIncludeInferiors = 1
)const (
VisibilityUnobscured = 0
VisibilityPartiallyObscured = 1
VisibilityFullyObscured = 2
)const (
VisualClassStaticGray = 0
VisualClassGrayScale = 1
VisualClassStaticColor = 2
VisualClassPseudoColor = 3
VisualClassTrueColor = 4
VisualClassDirectColor = 5
)const (
WindowClassCopyFromParent = 0
WindowClassInputOutput = 1
WindowClassInputOnly = 2
)const BadAccess = 10BadAccess is the error number for a BadAccess.
const BadAlloc = 11BadAlloc is the error number for a BadAlloc.
const BadAtom = 5BadAtom is the error number for a BadAtom.
const BadColormap = 12BadColormap is the error number for a BadColormap.
const BadCursor = 6BadCursor is the error number for a BadCursor.
const BadDrawable = 9BadDrawable is the error number for a BadDrawable.
const BadFont = 7BadFont is the error number for a BadFont.
const BadGContext = 13BadGContext is the error number for a BadGContext.
const BadIDChoice = 14BadIDChoice is the error number for a BadIDChoice.
const BadImplementation = 17BadImplementation is the error number for a BadImplementation.
const BadLength = 16BadLength is the error number for a BadLength.
const BadMatch = 8BadMatch is the error number for a BadMatch.
const BadName = 15BadName is the error number for a BadName.
const BadPixmap = 4BadPixmap is the error number for a BadPixmap.
const BadRequest = 1BadRequest is the error number for a BadRequest.
const BadValue = 2BadValue is the error number for a BadValue.
const BadWindow = 3BadWindow is the error number for a BadWindow.
const ButtonPress = 4ButtonPress is the event number for a ButtonPressEvent.
const ButtonRelease = 5ButtonRelease is the event number for a ButtonReleaseEvent.
const CirculateNotify = 26CirculateNotify is the event number for a CirculateNotifyEvent.
const CirculateRequest = 27CirculateRequest is the event number for a CirculateRequestEvent.
const ClientMessage = 33ClientMessage is the event number for a ClientMessageEvent.
const (
ColormapNone = 0
)const ColormapNotify = 32ColormapNotify is the event number for a ColormapNotifyEvent.
const ConfigureNotify = 22ConfigureNotify is the event number for a ConfigureNotifyEvent.
const ConfigureRequest = 23ConfigureRequest is the event number for a ConfigureRequestEvent.
const CreateNotify = 16CreateNotify is the event number for a CreateNotifyEvent.
const (
CursorNone = 0
)const DestroyNotify = 17DestroyNotify is the event number for a DestroyNotifyEvent.
const EnterNotify = 7EnterNotify is the event number for a EnterNotifyEvent.
const Expose = 12Expose is the event number for a ExposeEvent.
const FocusIn = 9FocusIn is the event number for a FocusInEvent.
const FocusOut = 10FocusOut is the event number for a FocusOutEvent.
const (
FontNone = 0
)const GeGeneric = 35GeGeneric is the event number for a GeGenericEvent.
const (
GetPropertyTypeAny = 0
)const (
GrabAny = 0
)const GraphicsExposure = 13GraphicsExposure is the event number for a GraphicsExposureEvent.
const GravityNotify = 24GravityNotify is the event number for a GravityNotifyEvent.
const KeyPress = 2KeyPress is the event number for a KeyPressEvent.
const KeyRelease = 3KeyRelease is the event number for a KeyReleaseEvent.
const KeymapNotify = 11KeymapNotify is the event number for a KeymapNotifyEvent.
const (
KillAllTemporary = 0
)const LeaveNotify = 8LeaveNotify is the event number for a LeaveNotifyEvent.
const MapNotify = 19MapNotify is the event number for a MapNotifyEvent.
const MapRequest = 20MapRequest is the event number for a MapRequestEvent.
const MappingNotify = 34MappingNotify is the event number for a MappingNotifyEvent.
const MotionNotify = 6MotionNotify is the event number for a MotionNotifyEvent.
const NoExposure = 14NoExposure is the event number for a NoExposureEvent.
const (
PixmapNone = 0
)const PropertyNotify = 28PropertyNotify is the event number for a PropertyNotifyEvent.
const ReparentNotify = 21ReparentNotify is the event number for a ReparentNotifyEvent.
const ResizeRequest = 25ResizeRequest is the event number for a ResizeRequestEvent.
const SelectionClear = 29SelectionClear is the event number for a SelectionClearEvent.
const SelectionNotify = 31SelectionNotify is the event number for a SelectionNotifyEvent.
const SelectionRequest = 30SelectionRequest is the event number for a SelectionRequestEvent.
const (
TimeCurrentTime = 0
)const UnmapNotify = 18UnmapNotify is the event number for a UnmapNotifyEvent.
const VisibilityNotify = 15VisibilityNotify is the event number for a VisibilityNotifyEvent.
const (
WindowNone = 0
)AccessErrorNew constructs a AccessError value that implements xgb.Error from a byte slice.
AllocErrorNew constructs a AllocError value that implements xgb.Error from a byte slice.
ArcListBytes writes a list of Arc values to a byte slice.
ArcRead reads a byte slice into a Arc value.
ArcReadList reads a byte slice into a list of Arc values.
AtomErrorNew constructs a AtomError value that implements xgb.Error from a byte slice.
ButtonPressEventNew constructs a ButtonPressEvent value that implements xgb.Event from a byte slice.
ButtonReleaseEventNew constructs a ButtonReleaseEvent value that implements xgb.Event from a byte slice.
Char2bListBytes writes a list of Char2b values to a byte slice.
Char2bRead reads a byte slice into a Char2b value.
Char2bReadList reads a byte slice into a list of Char2b values.
CharinfoListBytes writes a list of Charinfo values to a byte slice.
CharinfoRead reads a byte slice into a Charinfo value.
CharinfoReadList reads a byte slice into a list of Charinfo values.
CirculateNotifyEventNew constructs a CirculateNotifyEvent value that implements xgb.Event from a byte slice.
CirculateRequestEventNew constructs a CirculateRequestEvent value that implements xgb.Event from a byte slice.
func ClientMessageDataUnionListBytes(buf []byte, list []ClientMessageDataUnion) int
ClientMessageDataUnionListBytes writes a list of ClientMessageDataUnion values to a byte slice.
func ClientMessageDataUnionRead(buf []byte, v *ClientMessageDataUnion) int
ClientMessageDataUnionRead reads a byte slice into a ClientMessageDataUnion value.
func ClientMessageDataUnionReadList(buf []byte, dest []ClientMessageDataUnion) int
ClientMessageDataUnionReadList reads a byte slice into a list of ClientMessageDataUnion values.
ClientMessageEventNew constructs a ClientMessageEvent value that implements xgb.Event from a byte slice.
ColoritemListBytes writes a list of Coloritem values to a byte slice.
ColoritemRead reads a byte slice into a Coloritem value.
ColoritemReadList reads a byte slice into a list of Coloritem values.
ColormapErrorNew constructs a ColormapError value that implements xgb.Error from a byte slice.
ColormapNotifyEventNew constructs a ColormapNotifyEvent value that implements xgb.Event from a byte slice.
ConfigureNotifyEventNew constructs a ConfigureNotifyEvent value that implements xgb.Event from a byte slice.
ConfigureRequestEventNew constructs a ConfigureRequestEvent value that implements xgb.Event from a byte slice.
CreateNotifyEventNew constructs a CreateNotifyEvent value that implements xgb.Event from a byte slice.
CursorErrorNew constructs a CursorError value that implements xgb.Error from a byte slice.
DepthInfoListBytes writes a list of DepthInfo values to a byte slice.
DepthInfoListSize computes the size (bytes) of a list of DepthInfo values.
DepthInfoRead reads a byte slice into a DepthInfo value.
DepthInfoReadList reads a byte slice into a list of DepthInfo values.
DestroyNotifyEventNew constructs a DestroyNotifyEvent value that implements xgb.Event from a byte slice.
DrawableErrorNew constructs a DrawableError value that implements xgb.Error from a byte slice.
EnterNotifyEventNew constructs a EnterNotifyEvent value that implements xgb.Event from a byte slice.
ExposeEventNew constructs a ExposeEvent value that implements xgb.Event from a byte slice.
FocusInEventNew constructs a FocusInEvent value that implements xgb.Event from a byte slice.
FocusOutEventNew constructs a FocusOutEvent value that implements xgb.Event from a byte slice.
FontErrorNew constructs a FontError value that implements xgb.Error from a byte slice.
FontpropListBytes writes a list of Fontprop values to a byte slice.
FontpropRead reads a byte slice into a Fontprop value.
FontpropReadList reads a byte slice into a list of Fontprop values.
FormatListBytes writes a list of Format values to a byte slice.
FormatRead reads a byte slice into a Format value.
FormatReadList reads a byte slice into a list of Format values.
GContextErrorNew constructs a GContextError value that implements xgb.Error from a byte slice.
GeGenericEventNew constructs a GeGenericEvent value that implements xgb.Event from a byte slice.
GraphicsExposureEventNew constructs a GraphicsExposureEvent value that implements xgb.Event from a byte slice.
GravityNotifyEventNew constructs a GravityNotifyEvent value that implements xgb.Event from a byte slice.
HostListBytes writes a list of Host values to a byte slice.
HostListSize computes the size (bytes) of a list of Host values.
HostRead reads a byte slice into a Host value.
HostReadList reads a byte slice into a list of Host values.
IDChoiceErrorNew constructs a IDChoiceError value that implements xgb.Error from a byte slice.
ImplementationErrorNew constructs a ImplementationError value that implements xgb.Error from a byte slice.
KeyPressEventNew constructs a KeyPressEvent value that implements xgb.Event from a byte slice.
KeyReleaseEventNew constructs a KeyReleaseEvent value that implements xgb.Event from a byte slice.
KeymapNotifyEventNew constructs a KeymapNotifyEvent value that implements xgb.Event from a byte slice.
LeaveNotifyEventNew constructs a LeaveNotifyEvent value that implements xgb.Event from a byte slice.
LengthErrorNew constructs a LengthError value that implements xgb.Error from a byte slice.
MapNotifyEventNew constructs a MapNotifyEvent value that implements xgb.Event from a byte slice.
MapRequestEventNew constructs a MapRequestEvent value that implements xgb.Event from a byte slice.
MappingNotifyEventNew constructs a MappingNotifyEvent value that implements xgb.Event from a byte slice.
MatchErrorNew constructs a MatchError value that implements xgb.Error from a byte slice.
MotionNotifyEventNew constructs a MotionNotifyEvent value that implements xgb.Event from a byte slice.
NameErrorNew constructs a NameError value that implements xgb.Error from a byte slice.
NoExposureEventNew constructs a NoExposureEvent value that implements xgb.Event from a byte slice.
PixmapErrorNew constructs a PixmapError value that implements xgb.Error from a byte slice.
PointListBytes writes a list of Point values to a byte slice.
PointRead reads a byte slice into a Point value.
PointReadList reads a byte slice into a list of Point values.
PropertyNotifyEventNew constructs a PropertyNotifyEvent value that implements xgb.Event from a byte slice.
RectangleListBytes writes a list of Rectangle values to a byte slice.
RectangleRead reads a byte slice into a Rectangle value.
RectangleReadList reads a byte slice into a list of Rectangle values.
ReparentNotifyEventNew constructs a ReparentNotifyEvent value that implements xgb.Event from a byte slice.
RequestErrorNew constructs a RequestError value that implements xgb.Error from a byte slice.
ResizeRequestEventNew constructs a ResizeRequestEvent value that implements xgb.Event from a byte slice.
RgbListBytes writes a list of Rgb values to a byte slice.
RgbRead reads a byte slice into a Rgb value.
RgbReadList reads a byte slice into a list of Rgb values.
func ScreenInfoListBytes(buf []byte, list []ScreenInfo) int
ScreenInfoListBytes writes a list of ScreenInfo values to a byte slice.
func ScreenInfoListSize(list []ScreenInfo) int
ScreenInfoListSize computes the size (bytes) of a list of ScreenInfo values.
func ScreenInfoRead(buf []byte, v *ScreenInfo) int
ScreenInfoRead reads a byte slice into a ScreenInfo value.
func ScreenInfoReadList(buf []byte, dest []ScreenInfo) int
ScreenInfoReadList reads a byte slice into a list of ScreenInfo values.
SegmentListBytes writes a list of Segment values to a byte slice.
SegmentRead reads a byte slice into a Segment value.
SegmentReadList reads a byte slice into a list of Segment values.
SelectionClearEventNew constructs a SelectionClearEvent value that implements xgb.Event from a byte slice.
SelectionNotifyEventNew constructs a SelectionNotifyEvent value that implements xgb.Event from a byte slice.
SelectionRequestEventNew constructs a SelectionRequestEvent value that implements xgb.Event from a byte slice.
func SetupAuthenticateListBytes(buf []byte, list []SetupAuthenticate) int
SetupAuthenticateListBytes writes a list of SetupAuthenticate values to a byte slice.
func SetupAuthenticateListSize(list []SetupAuthenticate) int
SetupAuthenticateListSize computes the size (bytes) of a list of SetupAuthenticate values.
func SetupAuthenticateRead(buf []byte, v *SetupAuthenticate) int
SetupAuthenticateRead reads a byte slice into a SetupAuthenticate value.
func SetupAuthenticateReadList(buf []byte, dest []SetupAuthenticate) int
SetupAuthenticateReadList reads a byte slice into a list of SetupAuthenticate values.
func SetupFailedListBytes(buf []byte, list []SetupFailed) int
SetupFailedListBytes writes a list of SetupFailed values to a byte slice.
func SetupFailedListSize(list []SetupFailed) int
SetupFailedListSize computes the size (bytes) of a list of SetupFailed values.
func SetupFailedRead(buf []byte, v *SetupFailed) int
SetupFailedRead reads a byte slice into a SetupFailed value.
func SetupFailedReadList(buf []byte, dest []SetupFailed) int
SetupFailedReadList reads a byte slice into a list of SetupFailed values.
SetupInfoListBytes writes a list of SetupInfo values to a byte slice.
SetupInfoListSize computes the size (bytes) of a list of SetupInfo values.
SetupInfoRead reads a byte slice into a SetupInfo value.
SetupInfoReadList reads a byte slice into a list of SetupInfo values.
func SetupRequestListBytes(buf []byte, list []SetupRequest) int
SetupRequestListBytes writes a list of SetupRequest values to a byte slice.
func SetupRequestListSize(list []SetupRequest) int
SetupRequestListSize computes the size (bytes) of a list of SetupRequest values.
func SetupRequestRead(buf []byte, v *SetupRequest) int
SetupRequestRead reads a byte slice into a SetupRequest value.
func SetupRequestReadList(buf []byte, dest []SetupRequest) int
SetupRequestReadList reads a byte slice into a list of SetupRequest values.
StrListBytes writes a list of Str values to a byte slice.
StrListSize computes the size (bytes) of a list of Str values.
StrRead reads a byte slice into a Str value.
StrReadList reads a byte slice into a list of Str values.
TimecoordListBytes writes a list of Timecoord values to a byte slice.
TimecoordRead reads a byte slice into a Timecoord value.
TimecoordReadList reads a byte slice into a list of Timecoord values.
UnmapNotifyEventNew constructs a UnmapNotifyEvent value that implements xgb.Event from a byte slice.
ValueErrorNew constructs a ValueError value that implements xgb.Error from a byte slice.
VisibilityNotifyEventNew constructs a VisibilityNotifyEvent value that implements xgb.Event from a byte slice.
func VisualInfoListBytes(buf []byte, list []VisualInfo) int
VisualInfoListBytes writes a list of VisualInfo values to a byte slice.
func VisualInfoRead(buf []byte, v *VisualInfo) int
VisualInfoRead reads a byte slice into a VisualInfo value.
func VisualInfoReadList(buf []byte, dest []VisualInfo) int
VisualInfoReadList reads a byte slice into a list of VisualInfo values.
WindowErrorNew constructs a WindowError value that implements xgb.Error from a byte slice.
type AccessError RequestError
func (err AccessError) BadId() uint32
BadId returns the 'BadValue' number if one exists for the BadAccess error. If no bad value exists, 0 is returned.
func (err AccessError) Error() string
Error returns a rudimentary string representation of the BadAccess error.
func (err AccessError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadAccess error. This is mostly used internally.
AllocColorCellsCookie is a cookie used only for AllocColorCells requests.
func AllocColorCells(c *xgb.Conn, Contiguous bool, Cmap Colormap, Colors uint16, Planes uint16) AllocColorCellsCookie
AllocColorCells sends a checked request. If an error occurs, it will be returned with the reply by calling AllocColorCellsCookie.Reply()
func AllocColorCellsUnchecked(c *xgb.Conn, Contiguous bool, Cmap Colormap, Colors uint16, Planes uint16) AllocColorCellsCookie
AllocColorCellsUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook AllocColorCellsCookie) Reply() (*AllocColorCellsReply, error)
Reply blocks and returns the reply data for a AllocColorCells request.
type AllocColorCellsReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
// padding: 1 bytes
PixelsLen uint16
MasksLen uint16
// padding: 20 bytes
Pixels []uint32 // size: xgb.Pad((int(PixelsLen) * 4))
// alignment gap to multiple of 4
Masks []uint32 // size: xgb.Pad((int(MasksLen) * 4))
}AllocColorCellsReply represents the data returned from a AllocColorCells request.
AllocColorCookie is a cookie used only for AllocColor requests.
func AllocColor(c *xgb.Conn, Cmap Colormap, Red uint16, Green uint16, Blue uint16) AllocColorCookie
AllocColor sends a checked request. If an error occurs, it will be returned with the reply by calling AllocColorCookie.Reply()
func AllocColorUnchecked(c *xgb.Conn, Cmap Colormap, Red uint16, Green uint16, Blue uint16) AllocColorCookie
AllocColorUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook AllocColorCookie) Reply() (*AllocColorReply, error)
Reply blocks and returns the reply data for a AllocColor request.
AllocColorPlanesCookie is a cookie used only for AllocColorPlanes requests.
func AllocColorPlanes(c *xgb.Conn, Contiguous bool, Cmap Colormap, Colors uint16, Reds uint16, Greens uint16, Blues uint16) AllocColorPlanesCookie
AllocColorPlanes sends a checked request. If an error occurs, it will be returned with the reply by calling AllocColorPlanesCookie.Reply()
func AllocColorPlanesUnchecked(c *xgb.Conn, Contiguous bool, Cmap Colormap, Colors uint16, Reds uint16, Greens uint16, Blues uint16) AllocColorPlanesCookie
AllocColorPlanesUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook AllocColorPlanesCookie) Reply() (*AllocColorPlanesReply, error)
Reply blocks and returns the reply data for a AllocColorPlanes request.
type AllocColorPlanesReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
// padding: 1 bytes
PixelsLen uint16
// padding: 2 bytes
RedMask uint32
GreenMask uint32
BlueMask uint32
// padding: 8 bytes
Pixels []uint32 // size: xgb.Pad((int(PixelsLen) * 4))
}AllocColorPlanesReply represents the data returned from a AllocColorPlanes request.
type AllocColorReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
// padding: 1 bytes
Red uint16
Green uint16
Blue uint16
// padding: 2 bytes
Pixel uint32
}AllocColorReply represents the data returned from a AllocColor request.
type AllocError RequestError
func (err AllocError) BadId() uint32
BadId returns the 'BadValue' number if one exists for the BadAlloc error. If no bad value exists, 0 is returned.
func (err AllocError) Error() string
Error returns a rudimentary string representation of the BadAlloc error.
func (err AllocError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadAlloc error. This is mostly used internally.
AllocNamedColorCookie is a cookie used only for AllocNamedColor requests.
func AllocNamedColor(c *xgb.Conn, Cmap Colormap, NameLen uint16, Name string) AllocNamedColorCookie
AllocNamedColor sends a checked request. If an error occurs, it will be returned with the reply by calling AllocNamedColorCookie.Reply()
func AllocNamedColorUnchecked(c *xgb.Conn, Cmap Colormap, NameLen uint16, Name string) AllocNamedColorCookie
AllocNamedColorUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook AllocNamedColorCookie) Reply() (*AllocNamedColorReply, error)
Reply blocks and returns the reply data for a AllocNamedColor request.
type AllocNamedColorReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
// padding: 1 bytes
Pixel uint32
ExactRed uint16
ExactGreen uint16
ExactBlue uint16
VisualRed uint16
VisualGreen uint16
VisualBlue uint16
}AllocNamedColorReply represents the data returned from a AllocNamedColor request.
AllowEventsCookie is a cookie used only for AllowEvents requests.
AllowEvents sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
AllowEventsChecked sends a checked request. If an error occurs, it can be retrieved using AllowEventsCookie.Check()
func (cook AllowEventsCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
Bytes writes a Arc value to a byte slice.
type AtomError ValueError
BadId returns the 'BadValue' number if one exists for the BadAtom error. If no bad value exists, 0 is returned.
Error returns a rudimentary string representation of the BadAtom error.
SequenceId returns the sequence id attached to the BadAtom error. This is mostly used internally.
BellCookie is a cookie used only for Bell requests.
func Bell(c *xgb.Conn, Percent int8) BellCookie
Bell sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func BellChecked(c *xgb.Conn, Percent int8) BellCookie
BellChecked sends a checked request. If an error occurs, it can be retrieved using BellCookie.Check()
func (cook BellCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type ButtonPressEvent struct {
Sequence uint16
Detail Button
Time Timestamp
Root Window
Event Window
Child Window
RootX int16
RootY int16
EventX int16
EventY int16
State uint16
SameScreen bool
}func (v ButtonPressEvent) Bytes() []byte
Bytes writes a ButtonPressEvent value to a byte slice.
func (v ButtonPressEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the ButtonPress event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v ButtonPressEvent) String() string
String is a rudimentary string representation of ButtonPressEvent.
type ButtonReleaseEvent ButtonPressEvent
func (v ButtonReleaseEvent) Bytes() []byte
Bytes writes a ButtonReleaseEvent value to a byte slice.
func (v ButtonReleaseEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the ButtonRelease event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v ButtonReleaseEvent) String() string
ChangeActivePointerGrabCookie is a cookie used only for ChangeActivePointerGrab requests.
func ChangeActivePointerGrab(c *xgb.Conn, Cursor Cursor, Time Timestamp, EventMask uint16) ChangeActivePointerGrabCookie
ChangeActivePointerGrab sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ChangeActivePointerGrabChecked(c *xgb.Conn, Cursor Cursor, Time Timestamp, EventMask uint16) ChangeActivePointerGrabCookie
ChangeActivePointerGrabChecked sends a checked request. If an error occurs, it can be retrieved using ChangeActivePointerGrabCookie.Check()
func (cook ChangeActivePointerGrabCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
ChangeGCCookie is a cookie used only for ChangeGC requests.
ChangeGC sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ChangeGCChecked(c *xgb.Conn, Gc Gcontext, ValueMask uint32, ValueList []uint32) ChangeGCCookie
ChangeGCChecked sends a checked request. If an error occurs, it can be retrieved using ChangeGCCookie.Check()
func (cook ChangeGCCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
ChangeHostsCookie is a cookie used only for ChangeHosts requests.
func ChangeHosts(c *xgb.Conn, Mode byte, Family byte, AddressLen uint16, Address []byte) ChangeHostsCookie
ChangeHosts sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ChangeHostsChecked(c *xgb.Conn, Mode byte, Family byte, AddressLen uint16, Address []byte) ChangeHostsCookie
ChangeHostsChecked sends a checked request. If an error occurs, it can be retrieved using ChangeHostsCookie.Check()
func (cook ChangeHostsCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
ChangeKeyboardControlCookie is a cookie used only for ChangeKeyboardControl requests.
func ChangeKeyboardControl(c *xgb.Conn, ValueMask uint32, ValueList []uint32) ChangeKeyboardControlCookie
ChangeKeyboardControl sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ChangeKeyboardControlChecked(c *xgb.Conn, ValueMask uint32, ValueList []uint32) ChangeKeyboardControlCookie
ChangeKeyboardControlChecked sends a checked request. If an error occurs, it can be retrieved using ChangeKeyboardControlCookie.Check()
func (cook ChangeKeyboardControlCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
ChangeKeyboardMappingCookie is a cookie used only for ChangeKeyboardMapping requests.
func ChangeKeyboardMapping(c *xgb.Conn, KeycodeCount byte, FirstKeycode Keycode, KeysymsPerKeycode byte, Keysyms []Keysym) ChangeKeyboardMappingCookie
ChangeKeyboardMapping sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ChangeKeyboardMappingChecked(c *xgb.Conn, KeycodeCount byte, FirstKeycode Keycode, KeysymsPerKeycode byte, Keysyms []Keysym) ChangeKeyboardMappingCookie
ChangeKeyboardMappingChecked sends a checked request. If an error occurs, it can be retrieved using ChangeKeyboardMappingCookie.Check()
func (cook ChangeKeyboardMappingCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
ChangePointerControlCookie is a cookie used only for ChangePointerControl requests.
func ChangePointerControl(c *xgb.Conn, AccelerationNumerator int16, AccelerationDenominator int16, Threshold int16, DoAcceleration bool, DoThreshold bool) ChangePointerControlCookie
ChangePointerControl sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ChangePointerControlChecked(c *xgb.Conn, AccelerationNumerator int16, AccelerationDenominator int16, Threshold int16, DoAcceleration bool, DoThreshold bool) ChangePointerControlCookie
ChangePointerControlChecked sends a checked request. If an error occurs, it can be retrieved using ChangePointerControlCookie.Check()
func (cook ChangePointerControlCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
ChangePropertyCookie is a cookie used only for ChangeProperty requests.
func ChangeProperty(c *xgb.Conn, Mode byte, Window Window, Property Atom, Type Atom, Format byte, DataLen uint32, Data []byte) ChangePropertyCookie
ChangeProperty sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ChangePropertyChecked(c *xgb.Conn, Mode byte, Window Window, Property Atom, Type Atom, Format byte, DataLen uint32, Data []byte) ChangePropertyCookie
ChangePropertyChecked sends a checked request. If an error occurs, it can be retrieved using ChangePropertyCookie.Check()
func (cook ChangePropertyCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
ChangeSaveSetCookie is a cookie used only for ChangeSaveSet requests.
ChangeSaveSet sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
ChangeSaveSetChecked sends a checked request. If an error occurs, it can be retrieved using ChangeSaveSetCookie.Check()
func (cook ChangeSaveSetCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
ChangeWindowAttributesCookie is a cookie used only for ChangeWindowAttributes requests.
func ChangeWindowAttributes(c *xgb.Conn, Window Window, ValueMask uint32, ValueList []uint32) ChangeWindowAttributesCookie
ChangeWindowAttributes sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ChangeWindowAttributesChecked(c *xgb.Conn, Window Window, ValueMask uint32, ValueList []uint32) ChangeWindowAttributesCookie
ChangeWindowAttributesChecked sends a checked request. If an error occurs, it can be retrieved using ChangeWindowAttributesCookie.Check()
func (cook ChangeWindowAttributesCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
Bytes writes a Char2b value to a byte slice.
type Charinfo struct {
LeftSideBearing int16
RightSideBearing int16
CharacterWidth int16
Ascent int16
Descent int16
Attributes uint16
}Bytes writes a Charinfo value to a byte slice.
type CirculateNotifyEvent struct {
Sequence uint16
// padding: 1 bytes
Event Window
Window Window
// padding: 4 bytes
Place byte
}func (v CirculateNotifyEvent) Bytes() []byte
Bytes writes a CirculateNotifyEvent value to a byte slice.
func (v CirculateNotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the CirculateNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v CirculateNotifyEvent) String() string
String is a rudimentary string representation of CirculateNotifyEvent.
type CirculateRequestEvent CirculateNotifyEvent
func (v CirculateRequestEvent) Bytes() []byte
Bytes writes a CirculateRequestEvent value to a byte slice.
func (v CirculateRequestEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the CirculateRequest event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v CirculateRequestEvent) String() string
CirculateWindowCookie is a cookie used only for CirculateWindow requests.
CirculateWindow sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
CirculateWindowChecked sends a checked request. If an error occurs, it can be retrieved using CirculateWindowCookie.Check()
func (cook CirculateWindowCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
ClearAreaCookie is a cookie used only for ClearArea requests.
func ClearArea(c *xgb.Conn, Exposures bool, Window Window, X int16, Y int16, Width uint16, Height uint16) ClearAreaCookie
ClearArea sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ClearAreaChecked(c *xgb.Conn, Exposures bool, Window Window, X int16, Y int16, Width uint16, Height uint16) ClearAreaCookie
ClearAreaChecked sends a checked request. If an error occurs, it can be retrieved using ClearAreaCookie.Check()
func (cook ClearAreaCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type ClientMessageDataUnion struct {
Data8 []byte // size: 20
Data16 []uint16 // size: 20
Data32 []uint32 // size: 20
}ClientMessageDataUnion is a represention of the ClientMessageDataUnion union type. Note that to *create* a Union, you should *never* create this struct directly (unless you know what you're doing). Instead use one of the following constructors for 'ClientMessageDataUnion':
ClientMessageDataUnionData8New(Data8 []byte) ClientMessageDataUnion ClientMessageDataUnionData16New(Data16 []uint16) ClientMessageDataUnion ClientMessageDataUnionData32New(Data32 []uint32) ClientMessageDataUnion
func ClientMessageDataUnionData16New(Data16 []uint16) ClientMessageDataUnion
ClientMessageDataUnionData16New constructs a new ClientMessageDataUnion union type with the Data16 field.
func ClientMessageDataUnionData32New(Data32 []uint32) ClientMessageDataUnion
ClientMessageDataUnionData32New constructs a new ClientMessageDataUnion union type with the Data32 field.
func ClientMessageDataUnionData8New(Data8 []byte) ClientMessageDataUnion
ClientMessageDataUnionData8New constructs a new ClientMessageDataUnion union type with the Data8 field.
func (v ClientMessageDataUnion) Bytes() []byte
Bytes writes a ClientMessageDataUnion value to a byte slice. Each field in a union must contain the same data. So simply pick the first field and write that to the wire.
type ClientMessageEvent struct {
Sequence uint16
Format byte
Window Window
Type Atom
Data ClientMessageDataUnion
}func (v ClientMessageEvent) Bytes() []byte
Bytes writes a ClientMessageEvent value to a byte slice.
func (v ClientMessageEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the ClientMessage event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v ClientMessageEvent) String() string
String is a rudimentary string representation of ClientMessageEvent.
CloseFontCookie is a cookie used only for CloseFont requests.
func CloseFont(c *xgb.Conn, Font Font) CloseFontCookie
CloseFont sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CloseFontChecked(c *xgb.Conn, Font Font) CloseFontCookie
CloseFontChecked sends a checked request. If an error occurs, it can be retrieved using CloseFontCookie.Check()
func (cook CloseFontCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
Bytes writes a Coloritem value to a byte slice.
type ColormapError ValueError
func (err ColormapError) BadId() uint32
BadId returns the 'BadValue' number if one exists for the BadColormap error. If no bad value exists, 0 is returned.
func (err ColormapError) Error() string
Error returns a rudimentary string representation of the BadColormap error.
func (err ColormapError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadColormap error. This is mostly used internally.
type ColormapNotifyEvent struct {
Sequence uint16
// padding: 1 bytes
Window Window
Colormap Colormap
New bool
State byte
}func (v ColormapNotifyEvent) Bytes() []byte
Bytes writes a ColormapNotifyEvent value to a byte slice.
func (v ColormapNotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the ColormapNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v ColormapNotifyEvent) String() string
String is a rudimentary string representation of ColormapNotifyEvent.
type ConfigureNotifyEvent struct {
Sequence uint16
// padding: 1 bytes
Event Window
Window Window
AboveSibling Window
X int16
Y int16
Width uint16
Height uint16
BorderWidth uint16
OverrideRedirect bool
}func (v ConfigureNotifyEvent) Bytes() []byte
Bytes writes a ConfigureNotifyEvent value to a byte slice.
func (v ConfigureNotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the ConfigureNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v ConfigureNotifyEvent) String() string
String is a rudimentary string representation of ConfigureNotifyEvent.
type ConfigureRequestEvent struct {
Sequence uint16
StackMode byte
Parent Window
Window Window
Sibling Window
X int16
Y int16
Width uint16
Height uint16
BorderWidth uint16
ValueMask uint16
}func (v ConfigureRequestEvent) Bytes() []byte
Bytes writes a ConfigureRequestEvent value to a byte slice.
func (v ConfigureRequestEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the ConfigureRequest event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v ConfigureRequestEvent) String() string
String is a rudimentary string representation of ConfigureRequestEvent.
ConfigureWindowCookie is a cookie used only for ConfigureWindow requests.
func ConfigureWindow(c *xgb.Conn, Window Window, ValueMask uint16, ValueList []uint32) ConfigureWindowCookie
ConfigureWindow sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ConfigureWindowChecked(c *xgb.Conn, Window Window, ValueMask uint16, ValueList []uint32) ConfigureWindowCookie
ConfigureWindowChecked sends a checked request. If an error occurs, it can be retrieved using ConfigureWindowCookie.Check()
func (cook ConfigureWindowCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
ConvertSelectionCookie is a cookie used only for ConvertSelection requests.
func ConvertSelection(c *xgb.Conn, Requestor Window, Selection Atom, Target Atom, Property Atom, Time Timestamp) ConvertSelectionCookie
ConvertSelection sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ConvertSelectionChecked(c *xgb.Conn, Requestor Window, Selection Atom, Target Atom, Property Atom, Time Timestamp) ConvertSelectionCookie
ConvertSelectionChecked sends a checked request. If an error occurs, it can be retrieved using ConvertSelectionCookie.Check()
func (cook ConvertSelectionCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
CopyAreaCookie is a cookie used only for CopyArea requests.
func CopyArea(c *xgb.Conn, SrcDrawable Drawable, DstDrawable Drawable, Gc Gcontext, SrcX int16, SrcY int16, DstX int16, DstY int16, Width uint16, Height uint16) CopyAreaCookie
CopyArea sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CopyAreaChecked(c *xgb.Conn, SrcDrawable Drawable, DstDrawable Drawable, Gc Gcontext, SrcX int16, SrcY int16, DstX int16, DstY int16, Width uint16, Height uint16) CopyAreaCookie
CopyAreaChecked sends a checked request. If an error occurs, it can be retrieved using CopyAreaCookie.Check()
func (cook CopyAreaCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
CopyColormapAndFreeCookie is a cookie used only for CopyColormapAndFree requests.
CopyColormapAndFree sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CopyColormapAndFreeChecked(c *xgb.Conn, Mid Colormap, SrcCmap Colormap) CopyColormapAndFreeCookie
CopyColormapAndFreeChecked sends a checked request. If an error occurs, it can be retrieved using CopyColormapAndFreeCookie.Check()
func (cook CopyColormapAndFreeCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
CopyGCCookie is a cookie used only for CopyGC requests.
CopyGC sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
CopyGCChecked sends a checked request. If an error occurs, it can be retrieved using CopyGCCookie.Check()
func (cook CopyGCCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
CopyPlaneCookie is a cookie used only for CopyPlane requests.
func CopyPlane(c *xgb.Conn, SrcDrawable Drawable, DstDrawable Drawable, Gc Gcontext, SrcX int16, SrcY int16, DstX int16, DstY int16, Width uint16, Height uint16, BitPlane uint32) CopyPlaneCookie
CopyPlane sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CopyPlaneChecked(c *xgb.Conn, SrcDrawable Drawable, DstDrawable Drawable, Gc Gcontext, SrcX int16, SrcY int16, DstX int16, DstY int16, Width uint16, Height uint16, BitPlane uint32) CopyPlaneCookie
CopyPlaneChecked sends a checked request. If an error occurs, it can be retrieved using CopyPlaneCookie.Check()
func (cook CopyPlaneCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
CreateColormapCookie is a cookie used only for CreateColormap requests.
func CreateColormap(c *xgb.Conn, Alloc byte, Mid Colormap, Window Window, Visual Visualid) CreateColormapCookie
CreateColormap sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateColormapChecked(c *xgb.Conn, Alloc byte, Mid Colormap, Window Window, Visual Visualid) CreateColormapCookie
CreateColormapChecked sends a checked request. If an error occurs, it can be retrieved using CreateColormapCookie.Check()
func (cook CreateColormapCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
CreateCursorCookie is a cookie used only for CreateCursor requests.
func CreateCursor(c *xgb.Conn, Cid Cursor, Source Pixmap, Mask Pixmap, ForeRed uint16, ForeGreen uint16, ForeBlue uint16, BackRed uint16, BackGreen uint16, BackBlue uint16, X uint16, Y uint16) CreateCursorCookie
CreateCursor sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateCursorChecked(c *xgb.Conn, Cid Cursor, Source Pixmap, Mask Pixmap, ForeRed uint16, ForeGreen uint16, ForeBlue uint16, BackRed uint16, BackGreen uint16, BackBlue uint16, X uint16, Y uint16) CreateCursorCookie
CreateCursorChecked sends a checked request. If an error occurs, it can be retrieved using CreateCursorCookie.Check()
func (cook CreateCursorCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
CreateGCCookie is a cookie used only for CreateGC requests.
func CreateGC(c *xgb.Conn, Cid Gcontext, Drawable Drawable, ValueMask uint32, ValueList []uint32) CreateGCCookie
CreateGC sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateGCChecked(c *xgb.Conn, Cid Gcontext, Drawable Drawable, ValueMask uint32, ValueList []uint32) CreateGCCookie
CreateGCChecked sends a checked request. If an error occurs, it can be retrieved using CreateGCCookie.Check()
func (cook CreateGCCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
CreateGlyphCursorCookie is a cookie used only for CreateGlyphCursor requests.
func CreateGlyphCursor(c *xgb.Conn, Cid Cursor, SourceFont Font, MaskFont Font, SourceChar uint16, MaskChar uint16, ForeRed uint16, ForeGreen uint16, ForeBlue uint16, BackRed uint16, BackGreen uint16, BackBlue uint16) CreateGlyphCursorCookie
CreateGlyphCursor sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateGlyphCursorChecked(c *xgb.Conn, Cid Cursor, SourceFont Font, MaskFont Font, SourceChar uint16, MaskChar uint16, ForeRed uint16, ForeGreen uint16, ForeBlue uint16, BackRed uint16, BackGreen uint16, BackBlue uint16) CreateGlyphCursorCookie
CreateGlyphCursorChecked sends a checked request. If an error occurs, it can be retrieved using CreateGlyphCursorCookie.Check()
func (cook CreateGlyphCursorCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type CreateNotifyEvent struct {
Sequence uint16
// padding: 1 bytes
Parent Window
Window Window
X int16
Y int16
Width uint16
Height uint16
BorderWidth uint16
OverrideRedirect bool
}func (v CreateNotifyEvent) Bytes() []byte
Bytes writes a CreateNotifyEvent value to a byte slice.
func (v CreateNotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the CreateNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v CreateNotifyEvent) String() string
String is a rudimentary string representation of CreateNotifyEvent.
CreatePixmapCookie is a cookie used only for CreatePixmap requests.
func CreatePixmap(c *xgb.Conn, Depth byte, Pid Pixmap, Drawable Drawable, Width uint16, Height uint16) CreatePixmapCookie
CreatePixmap sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreatePixmapChecked(c *xgb.Conn, Depth byte, Pid Pixmap, Drawable Drawable, Width uint16, Height uint16) CreatePixmapCookie
CreatePixmapChecked sends a checked request. If an error occurs, it can be retrieved using CreatePixmapCookie.Check()
func (cook CreatePixmapCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
CreateWindowCookie is a cookie used only for CreateWindow requests.
func CreateWindow(c *xgb.Conn, Depth byte, Wid Window, Parent Window, X int16, Y int16, Width uint16, Height uint16, BorderWidth uint16, Class uint16, Visual Visualid, ValueMask uint32, ValueList []uint32) CreateWindowCookie
CreateWindow sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateWindowChecked(c *xgb.Conn, Depth byte, Wid Window, Parent Window, X int16, Y int16, Width uint16, Height uint16, BorderWidth uint16, Class uint16, Visual Visualid, ValueMask uint32, ValueList []uint32) CreateWindowCookie
CreateWindowChecked sends a checked request. If an error occurs, it can be retrieved using CreateWindowCookie.Check()
func (cook CreateWindowCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type CursorError ValueError
func (err CursorError) BadId() uint32
BadId returns the 'BadValue' number if one exists for the BadCursor error. If no bad value exists, 0 is returned.
func (err CursorError) Error() string
Error returns a rudimentary string representation of the BadCursor error.
func (err CursorError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadCursor error. This is mostly used internally.
DeletePropertyCookie is a cookie used only for DeleteProperty requests.
DeleteProperty sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
DeletePropertyChecked sends a checked request. If an error occurs, it can be retrieved using DeletePropertyCookie.Check()
func (cook DeletePropertyCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type DepthInfo struct {
Depth byte
// padding: 1 bytes
VisualsLen uint16
// padding: 4 bytes
Visuals []VisualInfo // size: xgb.Pad((int(VisualsLen) * 24))
}Bytes writes a DepthInfo value to a byte slice.
func (v DestroyNotifyEvent) Bytes() []byte
Bytes writes a DestroyNotifyEvent value to a byte slice.
func (v DestroyNotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the DestroyNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v DestroyNotifyEvent) String() string
String is a rudimentary string representation of DestroyNotifyEvent.
DestroySubwindowsCookie is a cookie used only for DestroySubwindows requests.
func DestroySubwindows(c *xgb.Conn, Window Window) DestroySubwindowsCookie
DestroySubwindows sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DestroySubwindowsChecked(c *xgb.Conn, Window Window) DestroySubwindowsCookie
DestroySubwindowsChecked sends a checked request. If an error occurs, it can be retrieved using DestroySubwindowsCookie.Check()
func (cook DestroySubwindowsCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
DestroyWindowCookie is a cookie used only for DestroyWindow requests.
func DestroyWindow(c *xgb.Conn, Window Window) DestroyWindowCookie
DestroyWindow sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DestroyWindowChecked(c *xgb.Conn, Window Window) DestroyWindowCookie
DestroyWindowChecked sends a checked request. If an error occurs, it can be retrieved using DestroyWindowCookie.Check()
func (cook DestroyWindowCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type DrawableError ValueError
func (err DrawableError) BadId() uint32
BadId returns the 'BadValue' number if one exists for the BadDrawable error. If no bad value exists, 0 is returned.
func (err DrawableError) Error() string
Error returns a rudimentary string representation of the BadDrawable error.
func (err DrawableError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadDrawable error. This is mostly used internally.
type EnterNotifyEvent struct {
Sequence uint16
Detail byte
Time Timestamp
Root Window
Event Window
Child Window
RootX int16
RootY int16
EventX int16
EventY int16
State uint16
Mode byte
SameScreenFocus byte
}func (v EnterNotifyEvent) Bytes() []byte
Bytes writes a EnterNotifyEvent value to a byte slice.
func (v EnterNotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the EnterNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v EnterNotifyEvent) String() string
String is a rudimentary string representation of EnterNotifyEvent.
type ExposeEvent struct {
Sequence uint16
// padding: 1 bytes
Window Window
X uint16
Y uint16
Width uint16
Height uint16
Count uint16
}func (v ExposeEvent) Bytes() []byte
Bytes writes a ExposeEvent value to a byte slice.
func (v ExposeEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the Expose event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v ExposeEvent) String() string
String is a rudimentary string representation of ExposeEvent.
FillPolyCookie is a cookie used only for FillPoly requests.
func FillPoly(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Shape byte, CoordinateMode byte, Points []Point) FillPolyCookie
FillPoly sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func FillPolyChecked(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Shape byte, CoordinateMode byte, Points []Point) FillPolyCookie
FillPolyChecked sends a checked request. If an error occurs, it can be retrieved using FillPolyCookie.Check()
func (cook FillPolyCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
func (v FocusInEvent) Bytes() []byte
Bytes writes a FocusInEvent value to a byte slice.
func (v FocusInEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the FocusIn event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v FocusInEvent) String() string
String is a rudimentary string representation of FocusInEvent.
type FocusOutEvent FocusInEvent
func (v FocusOutEvent) Bytes() []byte
Bytes writes a FocusOutEvent value to a byte slice.
func (v FocusOutEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the FocusOut event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v FocusOutEvent) String() string
type FontError ValueError
BadId returns the 'BadValue' number if one exists for the BadFont error. If no bad value exists, 0 is returned.
Error returns a rudimentary string representation of the BadFont error.
SequenceId returns the sequence id attached to the BadFont error. This is mostly used internally.
Bytes writes a Fontprop value to a byte slice.
ForceScreenSaverCookie is a cookie used only for ForceScreenSaver requests.
func ForceScreenSaver(c *xgb.Conn, Mode byte) ForceScreenSaverCookie
ForceScreenSaver sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ForceScreenSaverChecked(c *xgb.Conn, Mode byte) ForceScreenSaverCookie
ForceScreenSaverChecked sends a checked request. If an error occurs, it can be retrieved using ForceScreenSaverCookie.Check()
func (cook ForceScreenSaverCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
Bytes writes a Format value to a byte slice.
FreeColormapCookie is a cookie used only for FreeColormap requests.
func FreeColormap(c *xgb.Conn, Cmap Colormap) FreeColormapCookie
FreeColormap sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func FreeColormapChecked(c *xgb.Conn, Cmap Colormap) FreeColormapCookie
FreeColormapChecked sends a checked request. If an error occurs, it can be retrieved using FreeColormapCookie.Check()
func (cook FreeColormapCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
FreeColorsCookie is a cookie used only for FreeColors requests.
FreeColors sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func FreeColorsChecked(c *xgb.Conn, Cmap Colormap, PlaneMask uint32, Pixels []uint32) FreeColorsCookie
FreeColorsChecked sends a checked request. If an error occurs, it can be retrieved using FreeColorsCookie.Check()
func (cook FreeColorsCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
FreeCursorCookie is a cookie used only for FreeCursor requests.
func FreeCursor(c *xgb.Conn, Cursor Cursor) FreeCursorCookie
FreeCursor sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func FreeCursorChecked(c *xgb.Conn, Cursor Cursor) FreeCursorCookie
FreeCursorChecked sends a checked request. If an error occurs, it can be retrieved using FreeCursorCookie.Check()
func (cook FreeCursorCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
FreeGCCookie is a cookie used only for FreeGC requests.
func FreeGC(c *xgb.Conn, Gc Gcontext) FreeGCCookie
FreeGC sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func FreeGCChecked(c *xgb.Conn, Gc Gcontext) FreeGCCookie
FreeGCChecked sends a checked request. If an error occurs, it can be retrieved using FreeGCCookie.Check()
func (cook FreeGCCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
FreePixmapCookie is a cookie used only for FreePixmap requests.
func FreePixmap(c *xgb.Conn, Pixmap Pixmap) FreePixmapCookie
FreePixmap sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func FreePixmapChecked(c *xgb.Conn, Pixmap Pixmap) FreePixmapCookie
FreePixmapChecked sends a checked request. If an error occurs, it can be retrieved using FreePixmapCookie.Check()
func (cook FreePixmapCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type GContextError ValueError
func (err GContextError) BadId() uint32
BadId returns the 'BadValue' number if one exists for the BadGContext error. If no bad value exists, 0 is returned.
func (err GContextError) Error() string
Error returns a rudimentary string representation of the BadGContext error.
func (err GContextError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadGContext error. This is mostly used internally.
func (v GeGenericEvent) Bytes() []byte
Bytes writes a GeGenericEvent value to a byte slice.
func (v GeGenericEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the GeGeneric event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v GeGenericEvent) String() string
String is a rudimentary string representation of GeGenericEvent.
GetAtomNameCookie is a cookie used only for GetAtomName requests.
func GetAtomName(c *xgb.Conn, Atom Atom) GetAtomNameCookie
GetAtomName sends a checked request. If an error occurs, it will be returned with the reply by calling GetAtomNameCookie.Reply()
func GetAtomNameUnchecked(c *xgb.Conn, Atom Atom) GetAtomNameCookie
GetAtomNameUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetAtomNameCookie) Reply() (*GetAtomNameReply, error)
Reply blocks and returns the reply data for a GetAtomName request.
type GetAtomNameReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
// padding: 1 bytes
NameLen uint16
// padding: 22 bytes
Name string // size: xgb.Pad((int(NameLen) * 1))
}GetAtomNameReply represents the data returned from a GetAtomName request.
GetFontPathCookie is a cookie used only for GetFontPath requests.
func GetFontPath(c *xgb.Conn) GetFontPathCookie
GetFontPath sends a checked request. If an error occurs, it will be returned with the reply by calling GetFontPathCookie.Reply()
func GetFontPathUnchecked(c *xgb.Conn) GetFontPathCookie
GetFontPathUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetFontPathCookie) Reply() (*GetFontPathReply, error)
Reply blocks and returns the reply data for a GetFontPath request.
type GetFontPathReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
// padding: 1 bytes
PathLen uint16
// padding: 22 bytes
Path []Str // size: StrListSize(Path)
}GetFontPathReply represents the data returned from a GetFontPath request.
GetGeometryCookie is a cookie used only for GetGeometry requests.
func GetGeometry(c *xgb.Conn, Drawable Drawable) GetGeometryCookie
GetGeometry sends a checked request. If an error occurs, it will be returned with the reply by calling GetGeometryCookie.Reply()
func GetGeometryUnchecked(c *xgb.Conn, Drawable Drawable) GetGeometryCookie
GetGeometryUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetGeometryCookie) Reply() (*GetGeometryReply, error)
Reply blocks and returns the reply data for a GetGeometry request.
type GetGeometryReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
Depth byte
Root Window
X int16
Y int16
Width uint16
Height uint16
BorderWidth uint16
}GetGeometryReply represents the data returned from a GetGeometry request.
GetImageCookie is a cookie used only for GetImage requests.
func GetImage(c *xgb.Conn, Format byte, Drawable Drawable, X int16, Y int16, Width uint16, Height uint16, PlaneMask uint32) GetImageCookie
GetImage sends a checked request. If an error occurs, it will be returned with the reply by calling GetImageCookie.Reply()
func GetImageUnchecked(c *xgb.Conn, Format byte, Drawable Drawable, X int16, Y int16, Width uint16, Height uint16, PlaneMask uint32) GetImageCookie
GetImageUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetImageCookie) Reply() (*GetImageReply, error)
Reply blocks and returns the reply data for a GetImage request.
type GetImageReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
Depth byte
Visual Visualid
// padding: 20 bytes
Data []byte // size: xgb.Pad(((int(Length) * 4) * 1))
}GetImageReply represents the data returned from a GetImage request.
GetInputFocusCookie is a cookie used only for GetInputFocus requests.
func GetInputFocus(c *xgb.Conn) GetInputFocusCookie
GetInputFocus sends a checked request. If an error occurs, it will be returned with the reply by calling GetInputFocusCookie.Reply()
func GetInputFocusUnchecked(c *xgb.Conn) GetInputFocusCookie
GetInputFocusUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetInputFocusCookie) Reply() (*GetInputFocusReply, error)
Reply blocks and returns the reply data for a GetInputFocus request.
type GetInputFocusReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
RevertTo byte
Focus Window
}GetInputFocusReply represents the data returned from a GetInputFocus request.
GetKeyboardControlCookie is a cookie used only for GetKeyboardControl requests.
func GetKeyboardControl(c *xgb.Conn) GetKeyboardControlCookie
GetKeyboardControl sends a checked request. If an error occurs, it will be returned with the reply by calling GetKeyboardControlCookie.Reply()
func GetKeyboardControlUnchecked(c *xgb.Conn) GetKeyboardControlCookie
GetKeyboardControlUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetKeyboardControlCookie) Reply() (*GetKeyboardControlReply, error)
Reply blocks and returns the reply data for a GetKeyboardControl request.
type GetKeyboardControlReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
GlobalAutoRepeat byte
LedMask uint32
KeyClickPercent byte
BellPercent byte
BellPitch uint16
BellDuration uint16
// padding: 2 bytes
AutoRepeats []byte // size: 32
}GetKeyboardControlReply represents the data returned from a GetKeyboardControl request.
GetKeyboardMappingCookie is a cookie used only for GetKeyboardMapping requests.
GetKeyboardMapping sends a checked request. If an error occurs, it will be returned with the reply by calling GetKeyboardMappingCookie.Reply()
func GetKeyboardMappingUnchecked(c *xgb.Conn, FirstKeycode Keycode, Count byte) GetKeyboardMappingCookie
GetKeyboardMappingUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetKeyboardMappingCookie) Reply() (*GetKeyboardMappingReply, error)
Reply blocks and returns the reply data for a GetKeyboardMapping request.
type GetKeyboardMappingReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
KeysymsPerKeycode byte
// padding: 24 bytes
Keysyms []Keysym // size: xgb.Pad((int(Length) * 4))
}GetKeyboardMappingReply represents the data returned from a GetKeyboardMapping request.
GetModifierMappingCookie is a cookie used only for GetModifierMapping requests.
func GetModifierMapping(c *xgb.Conn) GetModifierMappingCookie
GetModifierMapping sends a checked request. If an error occurs, it will be returned with the reply by calling GetModifierMappingCookie.Reply()
func GetModifierMappingUnchecked(c *xgb.Conn) GetModifierMappingCookie
GetModifierMappingUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetModifierMappingCookie) Reply() (*GetModifierMappingReply, error)
Reply blocks and returns the reply data for a GetModifierMapping request.
type GetModifierMappingReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
KeycodesPerModifier byte
// padding: 24 bytes
Keycodes []Keycode // size: xgb.Pad(((int(KeycodesPerModifier) * 8) * 1))
}GetModifierMappingReply represents the data returned from a GetModifierMapping request.
GetMotionEventsCookie is a cookie used only for GetMotionEvents requests.
func GetMotionEvents(c *xgb.Conn, Window Window, Start Timestamp, Stop Timestamp) GetMotionEventsCookie
GetMotionEvents sends a checked request. If an error occurs, it will be returned with the reply by calling GetMotionEventsCookie.Reply()
func GetMotionEventsUnchecked(c *xgb.Conn, Window Window, Start Timestamp, Stop Timestamp) GetMotionEventsCookie
GetMotionEventsUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetMotionEventsCookie) Reply() (*GetMotionEventsReply, error)
Reply blocks and returns the reply data for a GetMotionEvents request.
type GetMotionEventsReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
// padding: 1 bytes
EventsLen uint32
// padding: 20 bytes
Events []Timecoord // size: xgb.Pad((int(EventsLen) * 8))
}GetMotionEventsReply represents the data returned from a GetMotionEvents request.
GetPointerControlCookie is a cookie used only for GetPointerControl requests.
func GetPointerControl(c *xgb.Conn) GetPointerControlCookie
GetPointerControl sends a checked request. If an error occurs, it will be returned with the reply by calling GetPointerControlCookie.Reply()
func GetPointerControlUnchecked(c *xgb.Conn) GetPointerControlCookie
GetPointerControlUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetPointerControlCookie) Reply() (*GetPointerControlReply, error)
Reply blocks and returns the reply data for a GetPointerControl request.
type GetPointerControlReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
// padding: 1 bytes
AccelerationNumerator uint16
AccelerationDenominator uint16
Threshold uint16
}GetPointerControlReply represents the data returned from a GetPointerControl request.
GetPointerMappingCookie is a cookie used only for GetPointerMapping requests.
func GetPointerMapping(c *xgb.Conn) GetPointerMappingCookie
GetPointerMapping sends a checked request. If an error occurs, it will be returned with the reply by calling GetPointerMappingCookie.Reply()
func GetPointerMappingUnchecked(c *xgb.Conn) GetPointerMappingCookie
GetPointerMappingUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetPointerMappingCookie) Reply() (*GetPointerMappingReply, error)
Reply blocks and returns the reply data for a GetPointerMapping request.
type GetPointerMappingReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
MapLen byte
// padding: 24 bytes
Map []byte // size: xgb.Pad((int(MapLen) * 1))
}GetPointerMappingReply represents the data returned from a GetPointerMapping request.
GetPropertyCookie is a cookie used only for GetProperty requests.
func GetProperty(c *xgb.Conn, Delete bool, Window Window, Property Atom, Type Atom, LongOffset uint32, LongLength uint32) GetPropertyCookie
GetProperty sends a checked request. If an error occurs, it will be returned with the reply by calling GetPropertyCookie.Reply()
func GetPropertyUnchecked(c *xgb.Conn, Delete bool, Window Window, Property Atom, Type Atom, LongOffset uint32, LongLength uint32) GetPropertyCookie
GetPropertyUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetPropertyCookie) Reply() (*GetPropertyReply, error)
Reply blocks and returns the reply data for a GetProperty request.
type GetPropertyReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
Format byte
Type Atom
BytesAfter uint32
ValueLen uint32
// padding: 12 bytes
Value []byte // size: xgb.Pad(((int(ValueLen) * (int(Format) / 8)) * 1))
}GetPropertyReply represents the data returned from a GetProperty request.
GetScreenSaverCookie is a cookie used only for GetScreenSaver requests.
func GetScreenSaver(c *xgb.Conn) GetScreenSaverCookie
GetScreenSaver sends a checked request. If an error occurs, it will be returned with the reply by calling GetScreenSaverCookie.Reply()
func GetScreenSaverUnchecked(c *xgb.Conn) GetScreenSaverCookie
GetScreenSaverUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetScreenSaverCookie) Reply() (*GetScreenSaverReply, error)
Reply blocks and returns the reply data for a GetScreenSaver request.
type GetScreenSaverReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
// padding: 1 bytes
Timeout uint16
Interval uint16
PreferBlanking byte
AllowExposures byte
}GetScreenSaverReply represents the data returned from a GetScreenSaver request.
GetSelectionOwnerCookie is a cookie used only for GetSelectionOwner requests.
func GetSelectionOwner(c *xgb.Conn, Selection Atom) GetSelectionOwnerCookie
GetSelectionOwner sends a checked request. If an error occurs, it will be returned with the reply by calling GetSelectionOwnerCookie.Reply()
func GetSelectionOwnerUnchecked(c *xgb.Conn, Selection Atom) GetSelectionOwnerCookie
GetSelectionOwnerUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetSelectionOwnerCookie) Reply() (*GetSelectionOwnerReply, error)
Reply blocks and returns the reply data for a GetSelectionOwner request.
type GetSelectionOwnerReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
// padding: 1 bytes
Owner Window
}GetSelectionOwnerReply represents the data returned from a GetSelectionOwner request.
GetWindowAttributesCookie is a cookie used only for GetWindowAttributes requests.
func GetWindowAttributes(c *xgb.Conn, Window Window) GetWindowAttributesCookie
GetWindowAttributes sends a checked request. If an error occurs, it will be returned with the reply by calling GetWindowAttributesCookie.Reply()
func GetWindowAttributesUnchecked(c *xgb.Conn, Window Window) GetWindowAttributesCookie
GetWindowAttributesUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetWindowAttributesCookie) Reply() (*GetWindowAttributesReply, error)
Reply blocks and returns the reply data for a GetWindowAttributes request.
type GetWindowAttributesReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
BackingStore byte
Visual Visualid
Class uint16
BitGravity byte
WinGravity byte
BackingPlanes uint32
BackingPixel uint32
SaveUnder bool
MapIsInstalled bool
MapState byte
OverrideRedirect bool
Colormap Colormap
AllEventMasks uint32
YourEventMask uint32
DoNotPropagateMask uint16
}GetWindowAttributesReply represents the data returned from a GetWindowAttributes request.
GrabButtonCookie is a cookie used only for GrabButton requests.
func GrabButton(c *xgb.Conn, OwnerEvents bool, GrabWindow Window, EventMask uint16, PointerMode byte, KeyboardMode byte, ConfineTo Window, Cursor Cursor, Button byte, Modifiers uint16) GrabButtonCookie
GrabButton sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GrabButtonChecked(c *xgb.Conn, OwnerEvents bool, GrabWindow Window, EventMask uint16, PointerMode byte, KeyboardMode byte, ConfineTo Window, Cursor Cursor, Button byte, Modifiers uint16) GrabButtonCookie
GrabButtonChecked sends a checked request. If an error occurs, it can be retrieved using GrabButtonCookie.Check()
func (cook GrabButtonCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
GrabKeyCookie is a cookie used only for GrabKey requests.
func GrabKey(c *xgb.Conn, OwnerEvents bool, GrabWindow Window, Modifiers uint16, Key Keycode, PointerMode byte, KeyboardMode byte) GrabKeyCookie
GrabKey sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GrabKeyChecked(c *xgb.Conn, OwnerEvents bool, GrabWindow Window, Modifiers uint16, Key Keycode, PointerMode byte, KeyboardMode byte) GrabKeyCookie
GrabKeyChecked sends a checked request. If an error occurs, it can be retrieved using GrabKeyCookie.Check()
func (cook GrabKeyCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
GrabKeyboardCookie is a cookie used only for GrabKeyboard requests.
func GrabKeyboard(c *xgb.Conn, OwnerEvents bool, GrabWindow Window, Time Timestamp, PointerMode byte, KeyboardMode byte) GrabKeyboardCookie
GrabKeyboard sends a checked request. If an error occurs, it will be returned with the reply by calling GrabKeyboardCookie.Reply()
func GrabKeyboardUnchecked(c *xgb.Conn, OwnerEvents bool, GrabWindow Window, Time Timestamp, PointerMode byte, KeyboardMode byte) GrabKeyboardCookie
GrabKeyboardUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GrabKeyboardCookie) Reply() (*GrabKeyboardReply, error)
Reply blocks and returns the reply data for a GrabKeyboard request.
type GrabKeyboardReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
Status byte
}GrabKeyboardReply represents the data returned from a GrabKeyboard request.
GrabPointerCookie is a cookie used only for GrabPointer requests.
func GrabPointer(c *xgb.Conn, OwnerEvents bool, GrabWindow Window, EventMask uint16, PointerMode byte, KeyboardMode byte, ConfineTo Window, Cursor Cursor, Time Timestamp) GrabPointerCookie
GrabPointer sends a checked request. If an error occurs, it will be returned with the reply by calling GrabPointerCookie.Reply()
func GrabPointerUnchecked(c *xgb.Conn, OwnerEvents bool, GrabWindow Window, EventMask uint16, PointerMode byte, KeyboardMode byte, ConfineTo Window, Cursor Cursor, Time Timestamp) GrabPointerCookie
GrabPointerUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GrabPointerCookie) Reply() (*GrabPointerReply, error)
Reply blocks and returns the reply data for a GrabPointer request.
type GrabPointerReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
Status byte
}GrabPointerReply represents the data returned from a GrabPointer request.
GrabServerCookie is a cookie used only for GrabServer requests.
func GrabServer(c *xgb.Conn) GrabServerCookie
GrabServer sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GrabServerChecked(c *xgb.Conn) GrabServerCookie
GrabServerChecked sends a checked request. If an error occurs, it can be retrieved using GrabServerCookie.Check()
func (cook GrabServerCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type GraphicsExposureEvent struct {
Sequence uint16
// padding: 1 bytes
Drawable Drawable
X uint16
Y uint16
Width uint16
Height uint16
MinorOpcode uint16
Count uint16
MajorOpcode byte
}func (v GraphicsExposureEvent) Bytes() []byte
Bytes writes a GraphicsExposureEvent value to a byte slice.
func (v GraphicsExposureEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the GraphicsExposure event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v GraphicsExposureEvent) String() string
String is a rudimentary string representation of GraphicsExposureEvent.
type GravityNotifyEvent struct {
Sequence uint16
// padding: 1 bytes
Event Window
Window Window
X int16
Y int16
}func (v GravityNotifyEvent) Bytes() []byte
Bytes writes a GravityNotifyEvent value to a byte slice.
func (v GravityNotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the GravityNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v GravityNotifyEvent) String() string
String is a rudimentary string representation of GravityNotifyEvent.
type Host struct {
Family byte
// padding: 1 bytes
AddressLen uint16
Address []byte // size: xgb.Pad((int(AddressLen) * 1))
}Bytes writes a Host value to a byte slice.
type IDChoiceError ValueError
func (err IDChoiceError) BadId() uint32
BadId returns the 'BadValue' number if one exists for the BadIDChoice error. If no bad value exists, 0 is returned.
func (err IDChoiceError) Error() string
Error returns a rudimentary string representation of the BadIDChoice error.
func (err IDChoiceError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadIDChoice error. This is mostly used internally.
ImageText16Cookie is a cookie used only for ImageText16 requests.
func ImageText16(c *xgb.Conn, StringLen byte, Drawable Drawable, Gc Gcontext, X int16, Y int16, String []Char2b) ImageText16Cookie
ImageText16 sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ImageText16Checked(c *xgb.Conn, StringLen byte, Drawable Drawable, Gc Gcontext, X int16, Y int16, String []Char2b) ImageText16Cookie
ImageText16Checked sends a checked request. If an error occurs, it can be retrieved using ImageText16Cookie.Check()
func (cook ImageText16Cookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
ImageText8Cookie is a cookie used only for ImageText8 requests.
func ImageText8(c *xgb.Conn, StringLen byte, Drawable Drawable, Gc Gcontext, X int16, Y int16, String string) ImageText8Cookie
ImageText8 sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ImageText8Checked(c *xgb.Conn, StringLen byte, Drawable Drawable, Gc Gcontext, X int16, Y int16, String string) ImageText8Cookie
ImageText8Checked sends a checked request. If an error occurs, it can be retrieved using ImageText8Cookie.Check()
func (cook ImageText8Cookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type ImplementationError RequestError
func (err ImplementationError) BadId() uint32
BadId returns the 'BadValue' number if one exists for the BadImplementation error. If no bad value exists, 0 is returned.
func (err ImplementationError) Error() string
Error returns a rudimentary string representation of the BadImplementation error.
func (err ImplementationError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadImplementation error. This is mostly used internally.
InstallColormapCookie is a cookie used only for InstallColormap requests.
func InstallColormap(c *xgb.Conn, Cmap Colormap) InstallColormapCookie
InstallColormap sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func InstallColormapChecked(c *xgb.Conn, Cmap Colormap) InstallColormapCookie
InstallColormapChecked sends a checked request. If an error occurs, it can be retrieved using InstallColormapCookie.Check()
func (cook InstallColormapCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
InternAtomCookie is a cookie used only for InternAtom requests.
InternAtom sends a checked request. If an error occurs, it will be returned with the reply by calling InternAtomCookie.Reply()
func InternAtomUnchecked(c *xgb.Conn, OnlyIfExists bool, NameLen uint16, Name string) InternAtomCookie
InternAtomUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook InternAtomCookie) Reply() (*InternAtomReply, error)
Reply blocks and returns the reply data for a InternAtom request.
type InternAtomReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
// padding: 1 bytes
Atom Atom
}InternAtomReply represents the data returned from a InternAtom request.
type KeyPressEvent struct {
Sequence uint16
Detail Keycode
Time Timestamp
Root Window
Event Window
Child Window
RootX int16
RootY int16
EventX int16
EventY int16
State uint16
SameScreen bool
}func (v KeyPressEvent) Bytes() []byte
Bytes writes a KeyPressEvent value to a byte slice.
func (v KeyPressEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the KeyPress event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v KeyPressEvent) String() string
String is a rudimentary string representation of KeyPressEvent.
type KeyReleaseEvent KeyPressEvent
func (v KeyReleaseEvent) Bytes() []byte
Bytes writes a KeyReleaseEvent value to a byte slice.
func (v KeyReleaseEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the KeyRelease event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v KeyReleaseEvent) String() string
func (v KeymapNotifyEvent) Bytes() []byte
Bytes writes a KeymapNotifyEvent value to a byte slice.
func (v KeymapNotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the KeymapNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v KeymapNotifyEvent) String() string
String is a rudimentary string representation of KeymapNotifyEvent.
KillClientCookie is a cookie used only for KillClient requests.
func KillClient(c *xgb.Conn, Resource uint32) KillClientCookie
KillClient sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func KillClientChecked(c *xgb.Conn, Resource uint32) KillClientCookie
KillClientChecked sends a checked request. If an error occurs, it can be retrieved using KillClientCookie.Check()
func (cook KillClientCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type LeaveNotifyEvent EnterNotifyEvent
func (v LeaveNotifyEvent) Bytes() []byte
Bytes writes a LeaveNotifyEvent value to a byte slice.
func (v LeaveNotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the LeaveNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v LeaveNotifyEvent) String() string
type LengthError RequestError
func (err LengthError) BadId() uint32
BadId returns the 'BadValue' number if one exists for the BadLength error. If no bad value exists, 0 is returned.
func (err LengthError) Error() string
Error returns a rudimentary string representation of the BadLength error.
func (err LengthError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadLength error. This is mostly used internally.
ListExtensionsCookie is a cookie used only for ListExtensions requests.
func ListExtensions(c *xgb.Conn) ListExtensionsCookie
ListExtensions sends a checked request. If an error occurs, it will be returned with the reply by calling ListExtensionsCookie.Reply()
func ListExtensionsUnchecked(c *xgb.Conn) ListExtensionsCookie
ListExtensionsUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook ListExtensionsCookie) Reply() (*ListExtensionsReply, error)
Reply blocks and returns the reply data for a ListExtensions request.
type ListExtensionsReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
NamesLen byte
// padding: 24 bytes
Names []Str // size: StrListSize(Names)
}ListExtensionsReply represents the data returned from a ListExtensions request.
ListFontsCookie is a cookie used only for ListFonts requests.
ListFonts sends a checked request. If an error occurs, it will be returned with the reply by calling ListFontsCookie.Reply()
func ListFontsUnchecked(c *xgb.Conn, MaxNames uint16, PatternLen uint16, Pattern string) ListFontsCookie
ListFontsUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook ListFontsCookie) Reply() (*ListFontsReply, error)
Reply blocks and returns the reply data for a ListFonts request.
type ListFontsReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
// padding: 1 bytes
NamesLen uint16
// padding: 22 bytes
Names []Str // size: StrListSize(Names)
}ListFontsReply represents the data returned from a ListFonts request.
ListFontsWithInfoCookie is a cookie used only for ListFontsWithInfo requests.
func ListFontsWithInfo(c *xgb.Conn, MaxNames uint16, PatternLen uint16, Pattern string) ListFontsWithInfoCookie
ListFontsWithInfo sends a checked request. If an error occurs, it will be returned with the reply by calling ListFontsWithInfoCookie.Reply()
func ListFontsWithInfoUnchecked(c *xgb.Conn, MaxNames uint16, PatternLen uint16, Pattern string) ListFontsWithInfoCookie
ListFontsWithInfoUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook ListFontsWithInfoCookie) Reply() (*ListFontsWithInfoReply, error)
Reply blocks and returns the reply data for a ListFontsWithInfo request.
type ListFontsWithInfoReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
NameLen byte
MinBounds Charinfo
// padding: 4 bytes
MaxBounds Charinfo
// padding: 4 bytes
MinCharOrByte2 uint16
MaxCharOrByte2 uint16
DefaultChar uint16
PropertiesLen uint16
DrawDirection byte
MinByte1 byte
MaxByte1 byte
AllCharsExist bool
FontAscent int16
FontDescent int16
RepliesHint uint32
Properties []Fontprop // size: xgb.Pad((int(PropertiesLen) * 8))
Name string // size: xgb.Pad((int(NameLen) * 1))
}ListFontsWithInfoReply represents the data returned from a ListFontsWithInfo request.
ListHostsCookie is a cookie used only for ListHosts requests.
func ListHosts(c *xgb.Conn) ListHostsCookie
ListHosts sends a checked request. If an error occurs, it will be returned with the reply by calling ListHostsCookie.Reply()
func ListHostsUnchecked(c *xgb.Conn) ListHostsCookie
ListHostsUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook ListHostsCookie) Reply() (*ListHostsReply, error)
Reply blocks and returns the reply data for a ListHosts request.
type ListHostsReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
Mode byte
HostsLen uint16
// padding: 22 bytes
Hosts []Host // size: HostListSize(Hosts)
}ListHostsReply represents the data returned from a ListHosts request.
ListInstalledColormapsCookie is a cookie used only for ListInstalledColormaps requests.
func ListInstalledColormaps(c *xgb.Conn, Window Window) ListInstalledColormapsCookie
ListInstalledColormaps sends a checked request. If an error occurs, it will be returned with the reply by calling ListInstalledColormapsCookie.Reply()
func ListInstalledColormapsUnchecked(c *xgb.Conn, Window Window) ListInstalledColormapsCookie
ListInstalledColormapsUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook ListInstalledColormapsCookie) Reply() (*ListInstalledColormapsReply, error)
Reply blocks and returns the reply data for a ListInstalledColormaps request.
type ListInstalledColormapsReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
// padding: 1 bytes
CmapsLen uint16
// padding: 22 bytes
Cmaps []Colormap // size: xgb.Pad((int(CmapsLen) * 4))
}ListInstalledColormapsReply represents the data returned from a ListInstalledColormaps request.
ListPropertiesCookie is a cookie used only for ListProperties requests.
func ListProperties(c *xgb.Conn, Window Window) ListPropertiesCookie
ListProperties sends a checked request. If an error occurs, it will be returned with the reply by calling ListPropertiesCookie.Reply()
func ListPropertiesUnchecked(c *xgb.Conn, Window Window) ListPropertiesCookie
ListPropertiesUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook ListPropertiesCookie) Reply() (*ListPropertiesReply, error)
Reply blocks and returns the reply data for a ListProperties request.
type ListPropertiesReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
// padding: 1 bytes
AtomsLen uint16
// padding: 22 bytes
Atoms []Atom // size: xgb.Pad((int(AtomsLen) * 4))
}ListPropertiesReply represents the data returned from a ListProperties request.
LookupColorCookie is a cookie used only for LookupColor requests.
LookupColor sends a checked request. If an error occurs, it will be returned with the reply by calling LookupColorCookie.Reply()
func LookupColorUnchecked(c *xgb.Conn, Cmap Colormap, NameLen uint16, Name string) LookupColorCookie
LookupColorUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook LookupColorCookie) Reply() (*LookupColorReply, error)
Reply blocks and returns the reply data for a LookupColor request.
type LookupColorReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
// padding: 1 bytes
ExactRed uint16
ExactGreen uint16
ExactBlue uint16
VisualRed uint16
VisualGreen uint16
VisualBlue uint16
}LookupColorReply represents the data returned from a LookupColor request.
type MapNotifyEvent struct {
Sequence uint16
// padding: 1 bytes
Event Window
Window Window
OverrideRedirect bool
}func (v MapNotifyEvent) Bytes() []byte
Bytes writes a MapNotifyEvent value to a byte slice.
func (v MapNotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the MapNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v MapNotifyEvent) String() string
String is a rudimentary string representation of MapNotifyEvent.
func (v MapRequestEvent) Bytes() []byte
Bytes writes a MapRequestEvent value to a byte slice.
func (v MapRequestEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the MapRequest event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v MapRequestEvent) String() string
String is a rudimentary string representation of MapRequestEvent.
MapSubwindowsCookie is a cookie used only for MapSubwindows requests.
func MapSubwindows(c *xgb.Conn, Window Window) MapSubwindowsCookie
MapSubwindows sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func MapSubwindowsChecked(c *xgb.Conn, Window Window) MapSubwindowsCookie
MapSubwindowsChecked sends a checked request. If an error occurs, it can be retrieved using MapSubwindowsCookie.Check()
func (cook MapSubwindowsCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
MapWindowCookie is a cookie used only for MapWindow requests.
func MapWindow(c *xgb.Conn, Window Window) MapWindowCookie
MapWindow sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func MapWindowChecked(c *xgb.Conn, Window Window) MapWindowCookie
MapWindowChecked sends a checked request. If an error occurs, it can be retrieved using MapWindowCookie.Check()
func (cook MapWindowCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type MappingNotifyEvent struct {
Sequence uint16
// padding: 1 bytes
Request byte
FirstKeycode Keycode
Count byte
}func (v MappingNotifyEvent) Bytes() []byte
Bytes writes a MappingNotifyEvent value to a byte slice.
func (v MappingNotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the MappingNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v MappingNotifyEvent) String() string
String is a rudimentary string representation of MappingNotifyEvent.
type MatchError RequestError
func (err MatchError) BadId() uint32
BadId returns the 'BadValue' number if one exists for the BadMatch error. If no bad value exists, 0 is returned.
func (err MatchError) Error() string
Error returns a rudimentary string representation of the BadMatch error.
func (err MatchError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadMatch error. This is mostly used internally.
type MotionNotifyEvent struct {
Sequence uint16
Detail byte
Time Timestamp
Root Window
Event Window
Child Window
RootX int16
RootY int16
EventX int16
EventY int16
State uint16
SameScreen bool
}func (v MotionNotifyEvent) Bytes() []byte
Bytes writes a MotionNotifyEvent value to a byte slice.
func (v MotionNotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the MotionNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v MotionNotifyEvent) String() string
String is a rudimentary string representation of MotionNotifyEvent.
type NameError RequestError
BadId returns the 'BadValue' number if one exists for the BadName error. If no bad value exists, 0 is returned.
Error returns a rudimentary string representation of the BadName error.
SequenceId returns the sequence id attached to the BadName error. This is mostly used internally.
type NoExposureEvent struct {
Sequence uint16
// padding: 1 bytes
Drawable Drawable
MinorOpcode uint16
MajorOpcode byte
}func (v NoExposureEvent) Bytes() []byte
Bytes writes a NoExposureEvent value to a byte slice.
func (v NoExposureEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the NoExposure event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v NoExposureEvent) String() string
String is a rudimentary string representation of NoExposureEvent.
NoOperationCookie is a cookie used only for NoOperation requests.
func NoOperation(c *xgb.Conn) NoOperationCookie
NoOperation sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func NoOperationChecked(c *xgb.Conn) NoOperationCookie
NoOperationChecked sends a checked request. If an error occurs, it can be retrieved using NoOperationCookie.Check()
func (cook NoOperationCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
OpenFontCookie is a cookie used only for OpenFont requests.
OpenFont sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
OpenFontChecked sends a checked request. If an error occurs, it can be retrieved using OpenFontCookie.Check()
func (cook OpenFontCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type PixmapError ValueError
func (err PixmapError) BadId() uint32
BadId returns the 'BadValue' number if one exists for the BadPixmap error. If no bad value exists, 0 is returned.
func (err PixmapError) Error() string
Error returns a rudimentary string representation of the BadPixmap error.
func (err PixmapError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadPixmap error. This is mostly used internally.
Bytes writes a Point value to a byte slice.
PolyArcCookie is a cookie used only for PolyArc requests.
PolyArc sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
PolyArcChecked sends a checked request. If an error occurs, it can be retrieved using PolyArcCookie.Check()
func (cook PolyArcCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
PolyFillArcCookie is a cookie used only for PolyFillArc requests.
PolyFillArc sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
PolyFillArcChecked sends a checked request. If an error occurs, it can be retrieved using PolyFillArcCookie.Check()
func (cook PolyFillArcCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
PolyFillRectangleCookie is a cookie used only for PolyFillRectangle requests.
func PolyFillRectangle(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Rectangles []Rectangle) PolyFillRectangleCookie
PolyFillRectangle sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PolyFillRectangleChecked(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Rectangles []Rectangle) PolyFillRectangleCookie
PolyFillRectangleChecked sends a checked request. If an error occurs, it can be retrieved using PolyFillRectangleCookie.Check()
func (cook PolyFillRectangleCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
PolyLineCookie is a cookie used only for PolyLine requests.
func PolyLine(c *xgb.Conn, CoordinateMode byte, Drawable Drawable, Gc Gcontext, Points []Point) PolyLineCookie
PolyLine sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PolyLineChecked(c *xgb.Conn, CoordinateMode byte, Drawable Drawable, Gc Gcontext, Points []Point) PolyLineCookie
PolyLineChecked sends a checked request. If an error occurs, it can be retrieved using PolyLineCookie.Check()
func (cook PolyLineCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
PolyPointCookie is a cookie used only for PolyPoint requests.
func PolyPoint(c *xgb.Conn, CoordinateMode byte, Drawable Drawable, Gc Gcontext, Points []Point) PolyPointCookie
PolyPoint sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PolyPointChecked(c *xgb.Conn, CoordinateMode byte, Drawable Drawable, Gc Gcontext, Points []Point) PolyPointCookie
PolyPointChecked sends a checked request. If an error occurs, it can be retrieved using PolyPointCookie.Check()
func (cook PolyPointCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
PolyRectangleCookie is a cookie used only for PolyRectangle requests.
func PolyRectangle(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Rectangles []Rectangle) PolyRectangleCookie
PolyRectangle sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PolyRectangleChecked(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Rectangles []Rectangle) PolyRectangleCookie
PolyRectangleChecked sends a checked request. If an error occurs, it can be retrieved using PolyRectangleCookie.Check()
func (cook PolyRectangleCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
PolySegmentCookie is a cookie used only for PolySegment requests.
func PolySegment(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Segments []Segment) PolySegmentCookie
PolySegment sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PolySegmentChecked(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Segments []Segment) PolySegmentCookie
PolySegmentChecked sends a checked request. If an error occurs, it can be retrieved using PolySegmentCookie.Check()
func (cook PolySegmentCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
PolyText16Cookie is a cookie used only for PolyText16 requests.
func PolyText16(c *xgb.Conn, Drawable Drawable, Gc Gcontext, X int16, Y int16, Items []byte) PolyText16Cookie
PolyText16 sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PolyText16Checked(c *xgb.Conn, Drawable Drawable, Gc Gcontext, X int16, Y int16, Items []byte) PolyText16Cookie
PolyText16Checked sends a checked request. If an error occurs, it can be retrieved using PolyText16Cookie.Check()
func (cook PolyText16Cookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
PolyText8Cookie is a cookie used only for PolyText8 requests.
func PolyText8(c *xgb.Conn, Drawable Drawable, Gc Gcontext, X int16, Y int16, Items []byte) PolyText8Cookie
PolyText8 sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PolyText8Checked(c *xgb.Conn, Drawable Drawable, Gc Gcontext, X int16, Y int16, Items []byte) PolyText8Cookie
PolyText8Checked sends a checked request. If an error occurs, it can be retrieved using PolyText8Cookie.Check()
func (cook PolyText8Cookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type PropertyNotifyEvent struct {
Sequence uint16
// padding: 1 bytes
Window Window
Atom Atom
Time Timestamp
State byte
}func (v PropertyNotifyEvent) Bytes() []byte
Bytes writes a PropertyNotifyEvent value to a byte slice.
func (v PropertyNotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the PropertyNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v PropertyNotifyEvent) String() string
String is a rudimentary string representation of PropertyNotifyEvent.
PutImageCookie is a cookie used only for PutImage requests.
func PutImage(c *xgb.Conn, Format byte, Drawable Drawable, Gc Gcontext, Width uint16, Height uint16, DstX int16, DstY int16, LeftPad byte, Depth byte, Data []byte) PutImageCookie
PutImage sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PutImageChecked(c *xgb.Conn, Format byte, Drawable Drawable, Gc Gcontext, Width uint16, Height uint16, DstX int16, DstY int16, LeftPad byte, Depth byte, Data []byte) PutImageCookie
PutImageChecked sends a checked request. If an error occurs, it can be retrieved using PutImageCookie.Check()
func (cook PutImageCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
QueryBestSizeCookie is a cookie used only for QueryBestSize requests.
func QueryBestSize(c *xgb.Conn, Class byte, Drawable Drawable, Width uint16, Height uint16) QueryBestSizeCookie
QueryBestSize sends a checked request. If an error occurs, it will be returned with the reply by calling QueryBestSizeCookie.Reply()
func QueryBestSizeUnchecked(c *xgb.Conn, Class byte, Drawable Drawable, Width uint16, Height uint16) QueryBestSizeCookie
QueryBestSizeUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook QueryBestSizeCookie) Reply() (*QueryBestSizeReply, error)
Reply blocks and returns the reply data for a QueryBestSize request.
type QueryBestSizeReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
// padding: 1 bytes
Width uint16
Height uint16
}QueryBestSizeReply represents the data returned from a QueryBestSize request.
QueryColorsCookie is a cookie used only for QueryColors requests.
QueryColors sends a checked request. If an error occurs, it will be returned with the reply by calling QueryColorsCookie.Reply()
QueryColorsUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook QueryColorsCookie) Reply() (*QueryColorsReply, error)
Reply blocks and returns the reply data for a QueryColors request.
type QueryColorsReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
// padding: 1 bytes
ColorsLen uint16
// padding: 22 bytes
Colors []Rgb // size: xgb.Pad((int(ColorsLen) * 8))
}QueryColorsReply represents the data returned from a QueryColors request.
QueryExtensionCookie is a cookie used only for QueryExtension requests.
QueryExtension sends a checked request. If an error occurs, it will be returned with the reply by calling QueryExtensionCookie.Reply()
QueryExtensionUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook QueryExtensionCookie) Reply() (*QueryExtensionReply, error)
Reply blocks and returns the reply data for a QueryExtension request.
type QueryExtensionReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
// padding: 1 bytes
Present bool
MajorOpcode byte
FirstEvent byte
FirstError byte
}QueryExtensionReply represents the data returned from a QueryExtension request.
QueryFontCookie is a cookie used only for QueryFont requests.
func QueryFont(c *xgb.Conn, Font Fontable) QueryFontCookie
QueryFont sends a checked request. If an error occurs, it will be returned with the reply by calling QueryFontCookie.Reply()
func QueryFontUnchecked(c *xgb.Conn, Font Fontable) QueryFontCookie
QueryFontUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook QueryFontCookie) Reply() (*QueryFontReply, error)
Reply blocks and returns the reply data for a QueryFont request.
type QueryFontReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
// padding: 1 bytes
MinBounds Charinfo
// padding: 4 bytes
MaxBounds Charinfo
// padding: 4 bytes
MinCharOrByte2 uint16
MaxCharOrByte2 uint16
DefaultChar uint16
PropertiesLen uint16
DrawDirection byte
MinByte1 byte
MaxByte1 byte
AllCharsExist bool
FontAscent int16
FontDescent int16
CharInfosLen uint32
Properties []Fontprop // size: xgb.Pad((int(PropertiesLen) * 8))
// alignment gap to multiple of 4
CharInfos []Charinfo // size: xgb.Pad((int(CharInfosLen) * 12))
}QueryFontReply represents the data returned from a QueryFont request.
QueryKeymapCookie is a cookie used only for QueryKeymap requests.
func QueryKeymap(c *xgb.Conn) QueryKeymapCookie
QueryKeymap sends a checked request. If an error occurs, it will be returned with the reply by calling QueryKeymapCookie.Reply()
func QueryKeymapUnchecked(c *xgb.Conn) QueryKeymapCookie
QueryKeymapUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook QueryKeymapCookie) Reply() (*QueryKeymapReply, error)
Reply blocks and returns the reply data for a QueryKeymap request.
type QueryKeymapReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
// padding: 1 bytes
Keys []byte // size: 32
}QueryKeymapReply represents the data returned from a QueryKeymap request.
QueryPointerCookie is a cookie used only for QueryPointer requests.
func QueryPointer(c *xgb.Conn, Window Window) QueryPointerCookie
QueryPointer sends a checked request. If an error occurs, it will be returned with the reply by calling QueryPointerCookie.Reply()
func QueryPointerUnchecked(c *xgb.Conn, Window Window) QueryPointerCookie
QueryPointerUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook QueryPointerCookie) Reply() (*QueryPointerReply, error)
Reply blocks and returns the reply data for a QueryPointer request.
type QueryPointerReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
SameScreen bool
Root Window
Child Window
RootX int16
RootY int16
WinX int16
WinY int16
Mask uint16
}QueryPointerReply represents the data returned from a QueryPointer request.
QueryTextExtentsCookie is a cookie used only for QueryTextExtents requests.
func QueryTextExtents(c *xgb.Conn, Font Fontable, String []Char2b, StringLen uint16) QueryTextExtentsCookie
QueryTextExtents sends a checked request. If an error occurs, it will be returned with the reply by calling QueryTextExtentsCookie.Reply()
func QueryTextExtentsUnchecked(c *xgb.Conn, Font Fontable, String []Char2b, StringLen uint16) QueryTextExtentsCookie
QueryTextExtentsUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook QueryTextExtentsCookie) Reply() (*QueryTextExtentsReply, error)
Reply blocks and returns the reply data for a QueryTextExtents request.
type QueryTextExtentsReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
DrawDirection byte
FontAscent int16
FontDescent int16
OverallAscent int16
OverallDescent int16
OverallWidth int32
OverallLeft int32
OverallRight int32
}QueryTextExtentsReply represents the data returned from a QueryTextExtents request.
QueryTreeCookie is a cookie used only for QueryTree requests.
func QueryTree(c *xgb.Conn, Window Window) QueryTreeCookie
QueryTree sends a checked request. If an error occurs, it will be returned with the reply by calling QueryTreeCookie.Reply()
func QueryTreeUnchecked(c *xgb.Conn, Window Window) QueryTreeCookie
QueryTreeUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook QueryTreeCookie) Reply() (*QueryTreeReply, error)
Reply blocks and returns the reply data for a QueryTree request.
type QueryTreeReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
// padding: 1 bytes
Root Window
Parent Window
ChildrenLen uint16
// padding: 14 bytes
Children []Window // size: xgb.Pad((int(ChildrenLen) * 4))
}QueryTreeReply represents the data returned from a QueryTree request.
RecolorCursorCookie is a cookie used only for RecolorCursor requests.
func RecolorCursor(c *xgb.Conn, Cursor Cursor, ForeRed uint16, ForeGreen uint16, ForeBlue uint16, BackRed uint16, BackGreen uint16, BackBlue uint16) RecolorCursorCookie
RecolorCursor sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func RecolorCursorChecked(c *xgb.Conn, Cursor Cursor, ForeRed uint16, ForeGreen uint16, ForeBlue uint16, BackRed uint16, BackGreen uint16, BackBlue uint16) RecolorCursorCookie
RecolorCursorChecked sends a checked request. If an error occurs, it can be retrieved using RecolorCursorCookie.Check()
func (cook RecolorCursorCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
Bytes writes a Rectangle value to a byte slice.
type ReparentNotifyEvent struct {
Sequence uint16
// padding: 1 bytes
Event Window
Window Window
Parent Window
X int16
Y int16
OverrideRedirect bool
}func (v ReparentNotifyEvent) Bytes() []byte
Bytes writes a ReparentNotifyEvent value to a byte slice.
func (v ReparentNotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the ReparentNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v ReparentNotifyEvent) String() string
String is a rudimentary string representation of ReparentNotifyEvent.
ReparentWindowCookie is a cookie used only for ReparentWindow requests.
func ReparentWindow(c *xgb.Conn, Window Window, Parent Window, X int16, Y int16) ReparentWindowCookie
ReparentWindow sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ReparentWindowChecked(c *xgb.Conn, Window Window, Parent Window, X int16, Y int16) ReparentWindowCookie
ReparentWindowChecked sends a checked request. If an error occurs, it can be retrieved using ReparentWindowCookie.Check()
func (cook ReparentWindowCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type RequestError struct {
Sequence uint16
NiceName string
BadValue uint32
MinorOpcode uint16
MajorOpcode byte
}func (err RequestError) BadId() uint32
BadId returns the 'BadValue' number if one exists for the BadRequest error. If no bad value exists, 0 is returned.
func (err RequestError) Error() string
func (err RequestError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadRequest error. This is mostly used internally.
type ResizeRequestEvent struct {
Sequence uint16
// padding: 1 bytes
Window Window
Width uint16
Height uint16
}func (v ResizeRequestEvent) Bytes() []byte
Bytes writes a ResizeRequestEvent value to a byte slice.
func (v ResizeRequestEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the ResizeRequest event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v ResizeRequestEvent) String() string
String is a rudimentary string representation of ResizeRequestEvent.
Bytes writes a Rgb value to a byte slice.
RotatePropertiesCookie is a cookie used only for RotateProperties requests.
func RotateProperties(c *xgb.Conn, Window Window, AtomsLen uint16, Delta int16, Atoms []Atom) RotatePropertiesCookie
RotateProperties sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func RotatePropertiesChecked(c *xgb.Conn, Window Window, AtomsLen uint16, Delta int16, Atoms []Atom) RotatePropertiesCookie
RotatePropertiesChecked sends a checked request. If an error occurs, it can be retrieved using RotatePropertiesCookie.Check()
func (cook RotatePropertiesCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type ScreenInfo struct {
Root Window
DefaultColormap Colormap
WhitePixel uint32
BlackPixel uint32
CurrentInputMasks uint32
WidthInPixels uint16
HeightInPixels uint16
WidthInMillimeters uint16
HeightInMillimeters uint16
MinInstalledMaps uint16
MaxInstalledMaps uint16
RootVisual Visualid
BackingStores byte
SaveUnders bool
RootDepth byte
AllowedDepthsLen byte
AllowedDepths []DepthInfo // size: DepthInfoListSize(AllowedDepths)
}func (v ScreenInfo) Bytes() []byte
Bytes writes a ScreenInfo value to a byte slice.
Bytes writes a Segment value to a byte slice.
type SelectionClearEvent struct {
Sequence uint16
// padding: 1 bytes
Time Timestamp
Owner Window
Selection Atom
}func (v SelectionClearEvent) Bytes() []byte
Bytes writes a SelectionClearEvent value to a byte slice.
func (v SelectionClearEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the SelectionClear event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v SelectionClearEvent) String() string
String is a rudimentary string representation of SelectionClearEvent.
type SelectionNotifyEvent struct {
Sequence uint16
// padding: 1 bytes
Time Timestamp
Requestor Window
Selection Atom
Target Atom
Property Atom
}func (v SelectionNotifyEvent) Bytes() []byte
Bytes writes a SelectionNotifyEvent value to a byte slice.
func (v SelectionNotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the SelectionNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v SelectionNotifyEvent) String() string
String is a rudimentary string representation of SelectionNotifyEvent.
type SelectionRequestEvent struct {
Sequence uint16
// padding: 1 bytes
Time Timestamp
Owner Window
Requestor Window
Selection Atom
Target Atom
Property Atom
}func (v SelectionRequestEvent) Bytes() []byte
Bytes writes a SelectionRequestEvent value to a byte slice.
func (v SelectionRequestEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the SelectionRequest event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v SelectionRequestEvent) String() string
String is a rudimentary string representation of SelectionRequestEvent.
SendEventCookie is a cookie used only for SendEvent requests.
func SendEvent(c *xgb.Conn, Propagate bool, Destination Window, EventMask uint32, Event string) SendEventCookie
SendEvent sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SendEventChecked(c *xgb.Conn, Propagate bool, Destination Window, EventMask uint32, Event string) SendEventCookie
SendEventChecked sends a checked request. If an error occurs, it can be retrieved using SendEventCookie.Check()
func (cook SendEventCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
SetAccessControlCookie is a cookie used only for SetAccessControl requests.
func SetAccessControl(c *xgb.Conn, Mode byte) SetAccessControlCookie
SetAccessControl sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetAccessControlChecked(c *xgb.Conn, Mode byte) SetAccessControlCookie
SetAccessControlChecked sends a checked request. If an error occurs, it can be retrieved using SetAccessControlCookie.Check()
func (cook SetAccessControlCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
SetClipRectanglesCookie is a cookie used only for SetClipRectangles requests.
func SetClipRectangles(c *xgb.Conn, Ordering byte, Gc Gcontext, ClipXOrigin int16, ClipYOrigin int16, Rectangles []Rectangle) SetClipRectanglesCookie
SetClipRectangles sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetClipRectanglesChecked(c *xgb.Conn, Ordering byte, Gc Gcontext, ClipXOrigin int16, ClipYOrigin int16, Rectangles []Rectangle) SetClipRectanglesCookie
SetClipRectanglesChecked sends a checked request. If an error occurs, it can be retrieved using SetClipRectanglesCookie.Check()
func (cook SetClipRectanglesCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
SetCloseDownModeCookie is a cookie used only for SetCloseDownMode requests.
func SetCloseDownMode(c *xgb.Conn, Mode byte) SetCloseDownModeCookie
SetCloseDownMode sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetCloseDownModeChecked(c *xgb.Conn, Mode byte) SetCloseDownModeCookie
SetCloseDownModeChecked sends a checked request. If an error occurs, it can be retrieved using SetCloseDownModeCookie.Check()
func (cook SetCloseDownModeCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
SetDashesCookie is a cookie used only for SetDashes requests.
func SetDashes(c *xgb.Conn, Gc Gcontext, DashOffset uint16, DashesLen uint16, Dashes []byte) SetDashesCookie
SetDashes sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetDashesChecked(c *xgb.Conn, Gc Gcontext, DashOffset uint16, DashesLen uint16, Dashes []byte) SetDashesCookie
SetDashesChecked sends a checked request. If an error occurs, it can be retrieved using SetDashesCookie.Check()
func (cook SetDashesCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
SetFontPathCookie is a cookie used only for SetFontPath requests.
SetFontPath sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
SetFontPathChecked sends a checked request. If an error occurs, it can be retrieved using SetFontPathCookie.Check()
func (cook SetFontPathCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
SetInputFocusCookie is a cookie used only for SetInputFocus requests.
SetInputFocus sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetInputFocusChecked(c *xgb.Conn, RevertTo byte, Focus Window, Time Timestamp) SetInputFocusCookie
SetInputFocusChecked sends a checked request. If an error occurs, it can be retrieved using SetInputFocusCookie.Check()
func (cook SetInputFocusCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
SetModifierMappingCookie is a cookie used only for SetModifierMapping requests.
func SetModifierMapping(c *xgb.Conn, KeycodesPerModifier byte, Keycodes []Keycode) SetModifierMappingCookie
SetModifierMapping sends a checked request. If an error occurs, it will be returned with the reply by calling SetModifierMappingCookie.Reply()
func SetModifierMappingUnchecked(c *xgb.Conn, KeycodesPerModifier byte, Keycodes []Keycode) SetModifierMappingCookie
SetModifierMappingUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook SetModifierMappingCookie) Reply() (*SetModifierMappingReply, error)
Reply blocks and returns the reply data for a SetModifierMapping request.
type SetModifierMappingReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
Status byte
}SetModifierMappingReply represents the data returned from a SetModifierMapping request.
SetPointerMappingCookie is a cookie used only for SetPointerMapping requests.
SetPointerMapping sends a checked request. If an error occurs, it will be returned with the reply by calling SetPointerMappingCookie.Reply()
SetPointerMappingUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook SetPointerMappingCookie) Reply() (*SetPointerMappingReply, error)
Reply blocks and returns the reply data for a SetPointerMapping request.
type SetPointerMappingReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
Status byte
}SetPointerMappingReply represents the data returned from a SetPointerMapping request.
SetScreenSaverCookie is a cookie used only for SetScreenSaver requests.
func SetScreenSaver(c *xgb.Conn, Timeout int16, Interval int16, PreferBlanking byte, AllowExposures byte) SetScreenSaverCookie
SetScreenSaver sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetScreenSaverChecked(c *xgb.Conn, Timeout int16, Interval int16, PreferBlanking byte, AllowExposures byte) SetScreenSaverCookie
SetScreenSaverChecked sends a checked request. If an error occurs, it can be retrieved using SetScreenSaverCookie.Check()
func (cook SetScreenSaverCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
SetSelectionOwnerCookie is a cookie used only for SetSelectionOwner requests.
func SetSelectionOwner(c *xgb.Conn, Owner Window, Selection Atom, Time Timestamp) SetSelectionOwnerCookie
SetSelectionOwner sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetSelectionOwnerChecked(c *xgb.Conn, Owner Window, Selection Atom, Time Timestamp) SetSelectionOwnerCookie
SetSelectionOwnerChecked sends a checked request. If an error occurs, it can be retrieved using SetSelectionOwnerCookie.Check()
func (cook SetSelectionOwnerCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type SetupAuthenticate struct {
Status byte
// padding: 5 bytes
Length uint16
Reason string // size: xgb.Pad(((int(Length) * 4) * 1))
}func (v SetupAuthenticate) Bytes() []byte
Bytes writes a SetupAuthenticate value to a byte slice.
type SetupFailed struct {
Status byte
ReasonLen byte
ProtocolMajorVersion uint16
ProtocolMinorVersion uint16
Length uint16
Reason string // size: xgb.Pad((int(ReasonLen) * 1))
}func (v SetupFailed) Bytes() []byte
Bytes writes a SetupFailed value to a byte slice.
type SetupInfo struct {
Status byte
// padding: 1 bytes
ProtocolMajorVersion uint16
ProtocolMinorVersion uint16
Length uint16
ReleaseNumber uint32
ResourceIdBase uint32
ResourceIdMask uint32
MotionBufferSize uint32
VendorLen uint16
MaximumRequestLength uint16
RootsLen byte
PixmapFormatsLen byte
ImageByteOrder byte
BitmapFormatBitOrder byte
BitmapFormatScanlineUnit byte
BitmapFormatScanlinePad byte
MinKeycode Keycode
MaxKeycode Keycode
// padding: 4 bytes
Vendor string // size: xgb.Pad((int(VendorLen) * 1))
// alignment gap to multiple of 4
PixmapFormats []Format // size: xgb.Pad((int(PixmapFormatsLen) * 8))
// alignment gap to multiple of 4
Roots []ScreenInfo // size: ScreenInfoListSize(Roots)
}Setup parses the setup bytes retrieved when connecting into a SetupInfo struct.
Bytes writes a SetupInfo value to a byte slice.
func (s *SetupInfo) DefaultScreen(c *xgb.Conn) *ScreenInfo
DefaultScreen gets the default screen info from SetupInfo.
type SetupRequest struct {
ByteOrder byte
// padding: 1 bytes
ProtocolMajorVersion uint16
ProtocolMinorVersion uint16
AuthorizationProtocolNameLen uint16
AuthorizationProtocolDataLen uint16
// padding: 2 bytes
AuthorizationProtocolName string // size: xgb.Pad((int(AuthorizationProtocolNameLen) * 1))
AuthorizationProtocolData string // size: xgb.Pad((int(AuthorizationProtocolDataLen) * 1))
}func (v SetupRequest) Bytes() []byte
Bytes writes a SetupRequest value to a byte slice.
StoreColorsCookie is a cookie used only for StoreColors requests.
StoreColors sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
StoreColorsChecked sends a checked request. If an error occurs, it can be retrieved using StoreColorsCookie.Check()
func (cook StoreColorsCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
StoreNamedColorCookie is a cookie used only for StoreNamedColor requests.
func StoreNamedColor(c *xgb.Conn, Flags byte, Cmap Colormap, Pixel uint32, NameLen uint16, Name string) StoreNamedColorCookie
StoreNamedColor sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func StoreNamedColorChecked(c *xgb.Conn, Flags byte, Cmap Colormap, Pixel uint32, NameLen uint16, Name string) StoreNamedColorCookie
StoreNamedColorChecked sends a checked request. If an error occurs, it can be retrieved using StoreNamedColorCookie.Check()
func (cook StoreNamedColorCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
Bytes writes a Str value to a byte slice.
Bytes writes a Timecoord value to a byte slice.
TranslateCoordinatesCookie is a cookie used only for TranslateCoordinates requests.
func TranslateCoordinates(c *xgb.Conn, SrcWindow Window, DstWindow Window, SrcX int16, SrcY int16) TranslateCoordinatesCookie
TranslateCoordinates sends a checked request. If an error occurs, it will be returned with the reply by calling TranslateCoordinatesCookie.Reply()
func TranslateCoordinatesUnchecked(c *xgb.Conn, SrcWindow Window, DstWindow Window, SrcX int16, SrcY int16) TranslateCoordinatesCookie
TranslateCoordinatesUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook TranslateCoordinatesCookie) Reply() (*TranslateCoordinatesReply, error)
Reply blocks and returns the reply data for a TranslateCoordinates request.
type TranslateCoordinatesReply struct {
Sequence uint16 // sequence number of the request for this reply
Length uint32 // number of bytes in this reply
SameScreen bool
Child Window
DstX int16
DstY int16
}TranslateCoordinatesReply represents the data returned from a TranslateCoordinates request.
UngrabButtonCookie is a cookie used only for UngrabButton requests.
func UngrabButton(c *xgb.Conn, Button byte, GrabWindow Window, Modifiers uint16) UngrabButtonCookie
UngrabButton sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func UngrabButtonChecked(c *xgb.Conn, Button byte, GrabWindow Window, Modifiers uint16) UngrabButtonCookie
UngrabButtonChecked sends a checked request. If an error occurs, it can be retrieved using UngrabButtonCookie.Check()
func (cook UngrabButtonCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
UngrabKeyCookie is a cookie used only for UngrabKey requests.
UngrabKey sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func UngrabKeyChecked(c *xgb.Conn, Key Keycode, GrabWindow Window, Modifiers uint16) UngrabKeyCookie
UngrabKeyChecked sends a checked request. If an error occurs, it can be retrieved using UngrabKeyCookie.Check()
func (cook UngrabKeyCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
UngrabKeyboardCookie is a cookie used only for UngrabKeyboard requests.
func UngrabKeyboard(c *xgb.Conn, Time Timestamp) UngrabKeyboardCookie
UngrabKeyboard sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func UngrabKeyboardChecked(c *xgb.Conn, Time Timestamp) UngrabKeyboardCookie
UngrabKeyboardChecked sends a checked request. If an error occurs, it can be retrieved using UngrabKeyboardCookie.Check()
func (cook UngrabKeyboardCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
UngrabPointerCookie is a cookie used only for UngrabPointer requests.
func UngrabPointer(c *xgb.Conn, Time Timestamp) UngrabPointerCookie
UngrabPointer sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func UngrabPointerChecked(c *xgb.Conn, Time Timestamp) UngrabPointerCookie
UngrabPointerChecked sends a checked request. If an error occurs, it can be retrieved using UngrabPointerCookie.Check()
func (cook UngrabPointerCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
UngrabServerCookie is a cookie used only for UngrabServer requests.
func UngrabServer(c *xgb.Conn) UngrabServerCookie
UngrabServer sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func UngrabServerChecked(c *xgb.Conn) UngrabServerCookie
UngrabServerChecked sends a checked request. If an error occurs, it can be retrieved using UngrabServerCookie.Check()
func (cook UngrabServerCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
UninstallColormapCookie is a cookie used only for UninstallColormap requests.
func UninstallColormap(c *xgb.Conn, Cmap Colormap) UninstallColormapCookie
UninstallColormap sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func UninstallColormapChecked(c *xgb.Conn, Cmap Colormap) UninstallColormapCookie
UninstallColormapChecked sends a checked request. If an error occurs, it can be retrieved using UninstallColormapCookie.Check()
func (cook UninstallColormapCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type UnmapNotifyEvent struct {
Sequence uint16
// padding: 1 bytes
Event Window
Window Window
FromConfigure bool
}func (v UnmapNotifyEvent) Bytes() []byte
Bytes writes a UnmapNotifyEvent value to a byte slice.
func (v UnmapNotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the UnmapNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v UnmapNotifyEvent) String() string
String is a rudimentary string representation of UnmapNotifyEvent.
UnmapSubwindowsCookie is a cookie used only for UnmapSubwindows requests.
func UnmapSubwindows(c *xgb.Conn, Window Window) UnmapSubwindowsCookie
UnmapSubwindows sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func UnmapSubwindowsChecked(c *xgb.Conn, Window Window) UnmapSubwindowsCookie
UnmapSubwindowsChecked sends a checked request. If an error occurs, it can be retrieved using UnmapSubwindowsCookie.Check()
func (cook UnmapSubwindowsCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
UnmapWindowCookie is a cookie used only for UnmapWindow requests.
func UnmapWindow(c *xgb.Conn, Window Window) UnmapWindowCookie
UnmapWindow sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func UnmapWindowChecked(c *xgb.Conn, Window Window) UnmapWindowCookie
UnmapWindowChecked sends a checked request. If an error occurs, it can be retrieved using UnmapWindowCookie.Check()
func (cook UnmapWindowCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type ValueError struct {
Sequence uint16
NiceName string
BadValue uint32
MinorOpcode uint16
MajorOpcode byte
}func (err ValueError) BadId() uint32
BadId returns the 'BadValue' number if one exists for the BadValue error. If no bad value exists, 0 is returned.
func (err ValueError) Error() string
func (err ValueError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadValue error. This is mostly used internally.
func (v VisibilityNotifyEvent) Bytes() []byte
Bytes writes a VisibilityNotifyEvent value to a byte slice.
func (v VisibilityNotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the VisibilityNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v VisibilityNotifyEvent) String() string
String is a rudimentary string representation of VisibilityNotifyEvent.
type VisualInfo struct {
VisualId Visualid
Class byte
BitsPerRgbValue byte
ColormapEntries uint16
RedMask uint32
GreenMask uint32
BlueMask uint32
}func (v VisualInfo) Bytes() []byte
Bytes writes a VisualInfo value to a byte slice.
WarpPointerCookie is a cookie used only for WarpPointer requests.
func WarpPointer(c *xgb.Conn, SrcWindow Window, DstWindow Window, SrcX int16, SrcY int16, SrcWidth uint16, SrcHeight uint16, DstX int16, DstY int16) WarpPointerCookie
WarpPointer sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func WarpPointerChecked(c *xgb.Conn, SrcWindow Window, DstWindow Window, SrcX int16, SrcY int16, SrcWidth uint16, SrcHeight uint16, DstX int16, DstY int16) WarpPointerCookie
WarpPointerChecked sends a checked request. If an error occurs, it can be retrieved using WarpPointerCookie.Check()
func (cook WarpPointerCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type WindowError ValueError
func (err WindowError) BadId() uint32
BadId returns the 'BadValue' number if one exists for the BadWindow error. If no bad value exists, 0 is returned.
func (err WindowError) Error() string
Error returns a rudimentary string representation of the BadWindow error.
func (err WindowError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadWindow error. This is mostly used internally.
Package xproto imports 1 packages (graph) and is imported by 258 packages. Updated 2016-07-23. Refresh now. Tools for package owners.