x

package
v0.0.0-...-17244d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResponseTypeError = 0
	ResponseTypeReply = 1
)
View Source
const (
	RequestChecked      = 1 << 0
	RequestRaw          = 1 << 1 // ?
	RequestDiscardReply = 1 << 2
	RequestReplyFds     = 1 << 3 // ?
)

enum xcb_send_request_flags_t { XCB_REQUEST_CHECKED = 1 << 0, XCB_REQUEST_RAW = 1 << 1, XCB_REQUEST_DISCARD_REPLY = 1 << 2, XCB_REQUEST_REPLY_FDS = 1 << 3 };

View Source
const (
	// None is the universal null resource or null atom parameter value for many core X requests
	None = 0

	// CurrentTime can be used in most requests that take an Timestamp
	CurrentTime = 0

	// NoSymbol fills in unused entries in Keysym tables
	NoSymbol = 0

	// CopyFromParent can be used for many CreateWindow parameters */
	CopyFromParent = 0

	True  = 1
	False = 0
)
View Source
const (
	VisualClassStaticGray  = 0
	VisualClassGrayScale   = 1
	VisualClassStaticColor = 2
	VisualClassPseudoColor = 3
	VisualClassTrueColor   = 4
	VisualClassDirectColor = 5
)

enum VisualClass

View Source
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
)

enum EventMask

View Source
const (
	BackingStoreNotUseful  = 0
	BackingStoreWhenMapped = 1
	BackingStoreAlways     = 2
)

enum BackingStore

View Source
const (
	ImageOrderLSBFirst = 0
	ImageOrderMSBFirst = 1
)

enum ImageOrder

View Source
const (
	ModMaskShift   = 1
	ModMaskLock    = 2
	ModMaskControl = 4
	ModMask1       = 8
	ModMask2       = 16
	ModMask3       = 32
	ModMask4       = 64
	ModMask5       = 128
	ModMaskAny     = 32768
)

enum ModMask

View Source
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
)

enum KeyButMask

View Source
const (
	ButtonMask1   = 256
	ButtonMask2   = 512
	ButtonMask3   = 1024
	ButtonMask4   = 2048
	ButtonMask5   = 4096
	ButtonMaskAny = 32768
)

enum ButtonMask

View Source
const (
	MotionNormal = 0
	MotionHint   = 1
)

enum Motion

View Source
const (
	NotifyDetailAncestor         = 0
	NotifyDetailVirtual          = 1
	NotifyDetailInferior         = 2
	NotifyDetailNonlinear        = 3
	NotifyDetailNonlinearVirtual = 4
	NotifyDetailPointer          = 5
	NotifyDetailPointerRoot      = 6
	NotifyDetailNone             = 7
)

enum NotifyDetail

View Source
const (
	NotifyModeNormal       = 0
	NotifyModeGrab         = 1
	NotifyModeUngrab       = 2
	NotifyModeWhileGrabbed = 3
)

enum NotifyMode

View Source
const (
	VisibilityUnobscured        = 0
	VisibilityPartiallyObscured = 1
	VisibilityFullyObscured     = 2
)

enum Visibility

View Source
const (
	PlaceOnTop    = 0
	PlaceOnBottom = 1
)

enum Place

View Source
const (
	PropertyNewValue = 0
	PropertyDelete   = 1
)

enum Property

View Source
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
)

enum Atom

View Source
const (
	ColormapStateUninstalled = 0
	ColormapStateInstalled   = 1
)

enum ColormapState

View Source
const (
	MappingModifier = 0
	MappingKeyboard = 1
	MappingPointer  = 2
)

enum Mapping

View Source
const (
	WindowClassCopyFromParent = 0
	WindowClassInputOutput    = 1
	WindowClassInputOnly      = 2
)

enum WindowClass

View Source
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
)

enum CW

View Source
const (
	BackPixmapNone           = 0
	BackPixmapParentRelative = 1
)

enum BackPixmap

View Source
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
)

enum Gravity

View Source
const (
	MapStateUnmapped   = 0
	MapStateUnviewable = 1
	MapStateViewable   = 2
)

enum MapState

View Source
const (
	SetModeInsert = 0
	SetModeDelete = 1
)

enum SetMode

View Source
const (
	ConfigWindowX           = 1
	ConfigWindowY           = 2
	ConfigWindowWidth       = 4
	ConfigWindowHeight      = 8
	ConfigWindowBorderWidth = 16
	ConfigWindowSibling     = 32
	ConfigWindowStackMode   = 64
)

enum ConfigWindow

View Source
const (
	StackModeAbove    = 0
	StackModeBelow    = 1
	StackModeTopIf    = 2
	StackModeBottomIf = 3
	StackModeOpposite = 4
)

enum StackMode

View Source
const (
	CirculateRaiseLowest  = 0
	CirculateLowerHighest = 1
)

enum Circulate

View Source
const (
	PropModeReplace = 0
	PropModePrepend = 1
	PropModeAppend  = 2
)

enum PropMode

View Source
const (
	SendEventDestPointerWindow = 0
	SendEventDestItemFocus     = 1
)

enum SendEventDest

View Source
const (
	GrabModeSync  = 0
	GrabModeAsync = 1
)

enum GrabMode

View Source
const (
	GrabStatusSuccess        = 0
	GrabStatusAlreadyGrabbed = 1
	GrabStatusInvalidTime    = 2
	GrabStatusNotViewable    = 3
	GrabStatusFrozen         = 4
)

enum GrabStatus

View Source
const (
	ButtonIndexAny = 0
	ButtonIndex1   = 1
	ButtonIndex2   = 2
	ButtonIndex3   = 3
	ButtonIndex4   = 4
	ButtonIndex5   = 5
)

enum ButtonIndex

View Source
const (
	AllowAsyncPointer   = 0
	AllowSyncPointer    = 1
	AllowReplayPointer  = 2
	AllowAsyncKeyboard  = 3
	AllowSyncKeyboard   = 4
	AllowReplayKeyboard = 5
	AllowAsyncBoth      = 6
	AllowSyncBoth       = 7
)

enum Allow

View Source
const (
	InputFocusNone           = 0
	InputFocusPointerRoot    = 1
	InputFocusParent         = 2
	InputFocusFollowKeyboard = 3
)

enum InputFocus

View Source
const (
	FontDrawLeftToRight = 0
	FontDrawRightToLeft = 1
)

enum FontDraw

View Source
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
)

enum GC

View Source
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
)

enum GX

View Source
const (
	LineStyleSolid      = 0
	LineStyleOnOffDash  = 1
	LineStyleDoubleDash = 2
)

enum LineStyle

View Source
const (
	CapStyleNotLast    = 0
	CapStyleButt       = 1
	CapStyleRound      = 2
	CapStyleProjecting = 3
)

enum CapStyle

View Source
const (
	JoinStyleMiter = 0
	JoinStyleRound = 1
	JoinStyleBevel = 2
)

enum JoinStyle

View Source
const (
	FillStyleSolid          = 0
	FillStyleTiled          = 1
	FillStyleStippled       = 2
	FillStyleOpaqueStippled = 3
)

enum FillStyle

View Source
const (
	FillRuleEvenOdd = 0
	FillRuleWinding = 1
)

enum FillRule

View Source
const (
	SubwindowModeClipByChildren   = 0
	SubwindowModeIncludeInferiors = 1
)

enum SubwindowMode

View Source
const (
	ArcModeChord    = 0
	ArcModePieSlice = 1
)

enum ArcMode

View Source
const (
	ClipOrderingUnsorted = 0
	ClipOrderingYSorted  = 1
	ClipOrderingYXSorted = 2
	ClipOrderingYXBanded = 3
)

enum ClipOrdering

View Source
const (
	CoordModeOrigin   = 0
	CoordModePrevious = 1
)

enum CoordMode

View Source
const (
	PolyShapeComplex   = 0
	PolyShapeNonconvex = 1
	PolyShapeConvex    = 2
)

enum PolyShape

View Source
const (
	ImageFormatXYBitmap = 0
	ImageFormatXYPixmap = 1
	ImageFormatZPixmap  = 2
)

enum ImageFormat

View Source
const (
	ColormapAllocNone = 0
	ColormapAllocAll  = 1
)

enum ColormapAlloc

View Source
const (
	ColorFlagRed   = 1
	ColorFlagGreen = 2
	ColorFlagBlue  = 4
)

enum ColorFlag

View Source
const (
	QueryShapeOfLargestCursor  = 0
	QueryShapeOfFastestTile    = 1
	QueryShapeOfFastestStipple = 2
)

enum QueryShapeOf

View Source
const (
	KBKeyClickPercent = 1
	KBBellPercent     = 2
	KBBellPitch       = 4
	KBBellDuration    = 8
	KBLed             = 16
	KBLedMode         = 32
	KBKey             = 64
	KBAutoRepeatMode  = 128
)

enum KB

View Source
const (
	LedModeOff = 0
	LedModeOn  = 1
)

enum LedMode

View Source
const (
	AutoRepeatModeOff     = 0
	AutoRepeatModeOn      = 1
	AutoRepeatModeDefault = 2
)

enum AutoRepeatMode

View Source
const (
	BlankingNotPreferred = 0
	BlankingPreferred    = 1
	BlankingDefault      = 2
)

enum Blanking

View Source
const (
	ExposuresNotAllowed = 0
	ExposuresAllowed    = 1
	ExposuresDefault    = 2
)

enum Exposures

View Source
const (
	HostModeInsert = 0
	HostModeDelete = 1
)

enum HostMode

View Source
const (
	FamilyInternet          = 0
	FamilyDECnet            = 1
	FamilyChaos             = 2
	FamilyServerInterpreted = 5
	FamilyInternet6         = 6
)

enum Family

View Source
const (
	AccessControlDisable = 0
	AccessControlEnable  = 1
)

enum AccessControl

View Source
const (
	CloseDownDestroyAll      = 0
	CloseDownRetainPermanent = 1
	CloseDownRetainTemporary = 2
)

enum CloseDown

View Source
const (
	ScreenSaverReset  = 0
	ScreenSaverActive = 1
)

enum ScreenSaver

View Source
const (
	MappingStatusSuccess = 0
	MappingStatusBusy    = 1
	MappingStatusFailure = 2
)

enum MappingStatus

View Source
const (
	MapIndexShift   = 0
	MapIndexLock    = 1
	MapIndexControl = 2
	MapIndex1       = 3
	MapIndex2       = 4
	MapIndex3       = 5
	MapIndex4       = 6
	MapIndex5       = 7
)

enum MapIndex

View Source
const AccessErrorCode = 10
View Source
const AllocColorCellsOpcode = 86
View Source
const AllocColorOpcode = 84
View Source
const AllocColorPlanesOpcode = 87
View Source
const AllocErrorCode = 11
View Source
const AllocNamedColorOpcode = 85
View Source
const AllowEventsOpcode = 35
View Source
const AtomErrorCode = 5
View Source
const BellOpcode = 104
View Source
const ButtonPressEventCode = 4
View Source
const ButtonReleaseEventCode = 5
View Source
const ChangeActivePointerGrabOpcode = 30
View Source
const ChangeGCOpcode = 56
View Source
const ChangeHostsOpcode = 109
View Source
const ChangeKeyboardControlOpcode = 102
View Source
const ChangeKeyboardMappingOpcode = 100
View Source
const ChangePointerControlOpcode = 105
View Source
const ChangePropertyOpcode = 18
View Source
const ChangeSaveSetOpcode = 6
View Source
const ChangeWindowAttributesOpcode = 2
View Source
const CirculateNotifyEventCode = 26
View Source
const CirculateRequestEventCode = 27
View Source
const CirculateWindowOpcode = 13
View Source
const ClearAreaOpcode = 61
View Source
const ClientMessageEventCode = 33
View Source
const CloseFontOpcode = 46
View Source
const ColormapErrorCode = 12
View Source
const (
	ColormapNone = 0
)

enum Colormap

View Source
const ColormapNotifyEventCode = 32
View Source
const ConfigureNotifyEventCode = 22
View Source
const ConfigureRequestEventCode = 23
View Source
const ConfigureWindowOpcode = 12
View Source
const ConvertSelectionOpcode = 24
View Source
const CopyAreaOpcode = 62
View Source
const CopyColormapAndFreeOpcode = 80
View Source
const CopyGCOpcode = 57
View Source
const CopyPlaneOpcode = 63
View Source
const CreateColormapOpcode = 78
View Source
const CreateCursorOpcode = 93
View Source
const CreateGCOpcode = 55
View Source
const CreateGlyphCursorOpcode = 94
View Source
const CreateNotifyEventCode = 16
View Source
const CreatePixmapOpcode = 53
View Source
const CreateWindowOpcode = 1
View Source
const CursorErrorCode = 6
View Source
const (
	CursorNone = 0
)

enum Cursor

View Source
const DeletePropertyOpcode = 19
View Source
const DestroyNotifyEventCode = 17
View Source
const DestroySubwindowsOpcode = 5
View Source
const DestroyWindowOpcode = 4
View Source
const DrawableErrorCode = 9
View Source
const EnterNotifyEventCode = 7
View Source
const ExposeEventCode = 12
View Source
const FillPolyOpcode = 69
View Source
const FocusInEventCode = 9
View Source
const FocusOutEventCode = 10
View Source
const FontErrorCode = 7
View Source
const (
	FontNone = 0
)

enum Font

View Source
const ForceScreenSaverOpcode = 115
View Source
const FreeColormapOpcode = 79
View Source
const FreeColorsOpcode = 88
View Source
const FreeCursorOpcode = 95
View Source
const FreeGCOpcode = 60
View Source
const FreePixmapOpcode = 54
View Source
const GContextErrorCode = 13
View Source
const GeGenericEventCode = 35
View Source
const GetAtomNameOpcode = 17
View Source
const GetFontPathOpcode = 52
View Source
const GetGeometryOpcode = 14
View Source
const GetImageOpcode = 73
View Source
const GetInputFocusOpcode = 43
View Source
const GetKeyboardControlOpcode = 103
View Source
const GetKeyboardMappingOpcode = 101
View Source
const GetModifierMappingOpcode = 119
View Source
const GetMotionEventsOpcode = 39
View Source
const GetPointerControlOpcode = 106
View Source
const GetPointerMappingOpcode = 117
View Source
const GetPropertyOpcode = 20
View Source
const (
	GetPropertyTypeAny = 0
)

enum GetPropertyType

View Source
const GetScreenSaverOpcode = 108
View Source
const GetSelectionOwnerOpcode = 23
View Source
const GetWindowAttributesOpcode = 3
View Source
const (
	GrabAny = 0
)

enum Grab

View Source
const GrabButtonOpcode = 28
View Source
const GrabKeyOpcode = 33
View Source
const GrabKeyboardOpcode = 31
View Source
const GrabPointerOpcode = 26
View Source
const GrabServerOpcode = 36
View Source
const GraphicsExposureEventCode = 13
View Source
const GravityNotifyEventCode = 24
View Source
const IdChoiceErrorCode = 14
View Source
const ImageText16Opcode = 77
View Source
const ImageText8Opcode = 76
View Source
const ImplementationErrorCode = 17
View Source
const InstallColormapOpcode = 81
View Source
const InternAtomOpcode = 16
View Source
const KeyPressEventCode = 2
View Source
const KeyReleaseEventCode = 3
View Source
const KeymapNotifyEventCode = 11
View Source
const (
	KillAllTemporary = 0
)

enum Kill

View Source
const KillClientOpcode = 113
View Source
const LeaveNotifyEventCode = 8
View Source
const LengthErrorCode = 16
View Source
const ListExtensionsOpcode = 99
View Source
const ListFontsOpcode = 49
View Source
const ListFontsWithInfoOpcode = 50
View Source
const ListHostsOpcode = 110
View Source
const ListInstalledColormapsOpcode = 83
View Source
const ListPropertiesOpcode = 21
View Source
const LookupColorOpcode = 92
View Source
const MapNotifyEventCode = 19
View Source
const MapRequestEventCode = 20
View Source
const MapSubwindowsOpcode = 9
View Source
const MapWindowOpcode = 8
View Source
const MappingNotifyEventCode = 34
View Source
const MatchErrorCode = 8
View Source
const MotionNotifyEventCode = 6
View Source
const NameErrorCode = 15
View Source
const NoExposureEventCode = 14
View Source
const NoOperationOpcode = 127
View Source
const OpenFontOpcode = 45
View Source
const PixmapErrorCode = 4
View Source
const (
	PixmapNone = 0
)

enum Pixmap

View Source
const PolyArcOpcode = 68
View Source
const PolyFillArcOpcode = 71
View Source
const PolyFillRectangleOpcode = 70
View Source
const PolyLineOpcode = 65
View Source
const PolyPointOpcode = 64
View Source
const PolyRectangleOpcode = 67
View Source
const PolySegmentOpcode = 66
View Source
const PolyText16Opcode = 75
View Source
const PolyText8Opcode = 74
View Source
const PropertyNotifyEventCode = 28
View Source
const PutImageOpcode = 72
View Source
const QueryBestSizeOpcode = 97
View Source
const QueryColorsOpcode = 91
View Source
const QueryExtensionOpcode = 98
View Source
const QueryFontOpcode = 47
View Source
const QueryKeymapOpcode = 44
View Source
const QueryPointerOpcode = 38
View Source
const QueryTextExtentsOpcode = 48
View Source
const QueryTreeOpcode = 15
View Source
const RecolorCursorOpcode = 96
View Source
const ReparentNotifyEventCode = 21
View Source
const ReparentWindowOpcode = 7
View Source
const RequestErrorCode = 1
View Source
const ResizeRequestEventCode = 25
View Source
const RotatePropertiesOpcode = 114
View Source
const SelectionClearEventCode = 29
View Source
const SelectionNotifyEventCode = 31
View Source
const SelectionRequestEventCode = 30
View Source
const SendEventOpcode = 25
View Source
const SetAccessControlOpcode = 111
View Source
const SetClipRectanglesOpcode = 59
View Source
const SetCloseDownModeOpcode = 112
View Source
const SetDashesOpcode = 58
View Source
const SetFontPathOpcode = 51
View Source
const SetInputFocusOpcode = 42
View Source
const SetModifierMappingOpcode = 118
View Source
const SetPointerMappingOpcode = 116
View Source
const SetScreenSaverOpcode = 107
View Source
const SetSelectionOwnerOpcode = 22
View Source
const StoreColorsOpcode = 89
View Source
const StoreNamedColorOpcode = 90
View Source
const (
	TimeCurrentTime = 0
)

enum Time

View Source
const TranslateCoordinatesOpcode = 40
View Source
const UngrabButtonOpcode = 29
View Source
const UngrabKeyOpcode = 34
View Source
const UngrabKeyboardOpcode = 32
View Source
const UngrabPointerOpcode = 27
View Source
const UngrabServerOpcode = 37
View Source
const UninstallColormapOpcode = 82
View Source
const UnmapNotifyEventCode = 18
View Source
const UnmapSubwindowsOpcode = 11
View Source
const UnmapWindowOpcode = 10
View Source
const ValueErrorCode = 2
View Source
const VisibilityNotifyEventCode = 15
View Source
const WarpPointerOpcode = 41
View Source
const WindowErrorCode = 3
View Source
const (
	WindowNone = 0
)

enum Window

Variables

View Source
var ErrDataLenShort = errors.New("data length is short")
View Source
var Logger *log.Logger

Functions

func AllowEvents

func AllowEvents(conn *Conn, mode uint8, time Timestamp)

func BoolToUint8

func BoolToUint8(b bool) uint8

func ChangeActivePointerGrab

func ChangeActivePointerGrab(conn *Conn, cursor Cursor, time Timestamp, eventMask uint16)

func ChangeGC

func ChangeGC(conn *Conn, gc GContext, valueMask uint32, valueList []uint32)

func ChangeProperty

func ChangeProperty(conn *Conn, mode uint8, window Window, property, type0 Atom, format uint8, data []byte)

func ChangeSaveSet

func ChangeSaveSet(conn *Conn, mode uint8, window Window)

func ChangeWindowAttributes

func ChangeWindowAttributes(conn *Conn, window Window, valueMask uint32, valueList []uint32)

func CirculateWindow

func CirculateWindow(conn *Conn, direction uint8, window Window)

func ClearArea

func ClearArea(conn *Conn, exposures bool, window Window, x, y int16, width, height uint16)

func ClientMessageDataRead

func ClientMessageDataRead(r *Reader, v *ClientMessageData) int

func CloseFont

func CloseFont(conn *Conn, font Font)

func ConfigureWindow

func ConfigureWindow(conn *Conn, window Window, valueMask uint16, valueList []uint32)

func ConvertSelection

func ConvertSelection(conn *Conn, requestor Window, selection, target, property Atom, time Timestamp)

func CopyArea

func CopyArea(conn *Conn, srcDrawable, dstDrawable Drawable, gc GContext, srcX, srcY, dstX, dstY int16, width, height uint16)

func CopyGC

func CopyGC(conn *Conn, srcGC, dstGC GContext, valueMask uint32)

func CopyPlane

func CopyPlane(conn *Conn, srcDrawable, dstDrawable Drawable, gc GContext, srcX, srcY, dstX, dstY int16, width, height uint16, bitPlane uint32)

func CreateGC

func CreateGC(conn *Conn, cid GContext, drawable Drawable, valueMask uint32, valueList []uint32)

func CreatePixmap

func CreatePixmap(conn *Conn, depth uint8, pid Pixmap, drawable Drawable, width, height uint16)

func CreateWindow

func CreateWindow(conn *Conn, depth uint8, wid, parent Window, x, y int16, width, height, borderWidth uint16, class uint16, visual VisualID, valueMask uint32, valueList []uint32)

func DeleteProperty

func DeleteProperty(conn *Conn, window Window, property Atom)

func DestroySubwindows

func DestroySubwindows(conn *Conn, window Window)

func DestroyWindow

func DestroyWindow(conn *Conn, window Window)

func Errorf

func Errorf(format string, v ...interface{}) error

Errorf is just a wrapper for fmt.Errorf. Exists for the same reason that 'stringsJoin' and 'sprintf' exists.

func FillPoly

func FillPoly(conn *Conn, drawable Drawable, gc GContext, shape uint8, coordinateMode uint8, points []Point)

func ForceScreenSaver

func ForceScreenSaver(conn *Conn, mode uint8)

func FreeCursor

func FreeCursor(conn *Conn, cursor Cursor)

func FreeGC

func FreeGC(conn *Conn, gc GContext)

func FreePixmap

func FreePixmap(conn *Conn, pixmap Pixmap)

func Get16

func Get16(buf []byte) uint16

Get16 constructs a 16 bit integer from the beginning of a byte slice.

func Get32

func Get32(buf []byte) uint32

Get32 constructs a 32 bit integer from the beginning of a byte slice.

func Get64

func Get64(buf []byte) uint64

Get64 constructs a 64 bit integer from the beginning of a byte slice.

func GrabButton

func GrabButton(conn *Conn, ownerEvents bool, grabWindow Window, eventMask uint16, pointerMode, keyboardMode uint8, confineTo Window, cursor Cursor, button uint8, modifiers uint16)

func GrabKey

func GrabKey(conn *Conn, ownerEvents bool, grabWindow Window, modifiers uint16, key Keycode, pointerMode, keyboardMode uint8)

func GrabServer

func GrabServer(conn *Conn)

func KillClient

func KillClient(conn *Conn, resource uint32)

func MapSubwindows

func MapSubwindows(conn *Conn, window Window)

func MapWindow

func MapWindow(conn *Conn, window Window)

func NoOperation

func NoOperation(conn *Conn, n int)

func OpenFont

func OpenFont(conn *Conn, fid Font, name string)

func Pad

func Pad(e int) int

func PolyArc

func PolyArc(conn *Conn, drawable Drawable, gc GContext, arcs []Arc)

func PolyFillArc

func PolyFillArc(conn *Conn, drawable Drawable, gc GContext, arcs []Arc)

func PolyFillRectangle

func PolyFillRectangle(conn *Conn, drawable Drawable, gc GContext, rectangles []Rectangle)

func PolyLine

func PolyLine(conn *Conn, coordinateMode uint8, drawable Drawable, gc GContext, points []Point)

func PolyPoint

func PolyPoint(conn *Conn, coordinateMode uint8, drawable Drawable, gc GContext, points []Point)

func PolyRectangle

func PolyRectangle(conn *Conn, drawable Drawable, gc GContext, rectangles []Rectangle)

func PolySegment

func PolySegment(conn *Conn, drawable Drawable, gc GContext, segments []Segment)

func PopCount

func PopCount(mask0 int) int

PopCount counts the number of bits set in a value list mask.

func Put16

func Put16(buf []byte, v uint16)

Put16 takes a 16 bit integer and copies it into a byte slice.

func Put32

func Put32(buf []byte, v uint32)

Put32 takes a 32 bit integer and copies it into a byte slice.

func Put64

func Put64(buf []byte, v uint64)

Put64 takes a 64 bit integer and copies it into a byte slice.

func PutImage

func PutImage(conn *Conn, format uint8, drawable Drawable, gc GContext, width, height uint16, dstX, dstY int16, leftPad, depth uint8, data []byte)

func ReadStr

func ReadStr(r *Reader) (string, error)

func ReparentWindow

func ReparentWindow(conn *Conn, window, parent Window, x, y int16)

func SendEvent

func SendEvent(conn *Conn, propagate bool, destination Window, eventMask uint32, event []byte)

func SetClipRectangles

func SetClipRectangles(conn *Conn, ordering uint8, gc GContext, clipXOrigin, clipYOrigin int16, rectangles []Rectangle)

func SetDashes

func SetDashes(conn *Conn, gc GContext, dashOffset uint16, dashes []uint8)

func SetFontPath

func SetFontPath(conn *Conn, paths []string)

func SetInputFocus

func SetInputFocus(conn *Conn, revertTo uint8, focus Window, time Timestamp)

func SetScreenSaver

func SetScreenSaver(conn *Conn, timeout, interval int16, preferBlanking, allowExposures uint8)

func SetSelectionOwner

func SetSelectionOwner(conn *Conn, owner Window, selection Atom, time Timestamp)

func SizeIn4bWithPad

func SizeIn4bWithPad(length int) int

func Sprintf

func Sprintf(format string, v ...interface{}) string

Sprintf is so we don't need to import 'fmt' in the generated Go files.

func StringsJoin

func StringsJoin(ss []string, sep string) string

StringsJoin is an alias to strings.Join. It allows us to avoid having to import 'strings' in each of the generated Go files.

func TruncateStr

func TruncateStr(s string, n int) string

func Uint8ToBool

func Uint8ToBool(v uint8) bool

func UngrabButton

func UngrabButton(conn *Conn, button uint8, grabWindow Window, modifiers uint16)

func UngrabKey

func UngrabKey(conn *Conn, key Keycode, grabWindow Window, modifiers uint16)

func UngrabKeyboard

func UngrabKeyboard(conn *Conn, time Timestamp)

func UngrabPointer

func UngrabPointer(conn *Conn, time Timestamp)

func UngrabServer

func UngrabServer(conn *Conn)

func UnmapSubwindows

func UnmapSubwindows(conn *Conn, window Window)

func UnmapWindow

func UnmapWindow(conn *Conn, window Window)

func WarpPointer

func WarpPointer(conn *Conn, srcWindow, dstWindow Window, srcX, srcY int16, srcWidth, srcHeight uint16, dstX, dstY int16)

func WriteClientMessageEvent

func WriteClientMessageEvent(w *Writer, v *ClientMessageEvent)

func WriteRectangle

func WriteRectangle(b *FixedSizeBuf, v Rectangle)

func WriteSelectionNotifyEvent

func WriteSelectionNotifyEvent(w *Writer, v *SelectionNotifyEvent)

Types

type AllocColorCellsCookie

type AllocColorCellsCookie SeqNum

type AllocColorCookie

type AllocColorCookie SeqNum

type AllocColorPlanesCookie

type AllocColorPlanesCookie SeqNum

type AllocNamedColorCookie

type AllocNamedColorCookie SeqNum

type Arc

type Arc struct {
	X, Y           int16
	Width, Height  uint16
	Angle1, Angle2 int16
}

type Atom

type Atom uint32

simple ('xcb', 'ATOM')

type AtomCache

type AtomCache struct {
	// contains filtered or unexported fields
}

func NewAtomCache

func NewAtomCache() *AtomCache

type Bool32

type Bool32 uint32

simple ('xcb', 'BOOL32')

type Button

type Button uint8

simple ('xcb', 'BUTTON')

type ButtonEvent

type ButtonEvent struct {
	Detail     Button
	Sequence   uint16
	Time       Timestamp
	Root       Window
	Event      Window
	Child      Window
	RootX      int16
	RootY      int16
	EventX     int16
	EventY     int16
	State      uint16
	SameScreen bool
}

type ButtonPressEvent

type ButtonPressEvent struct {
	ButtonEvent
}

func NewButtonPressEvent

func NewButtonPressEvent(data []byte) (*ButtonPressEvent, error)

type ButtonReleaseEvent

type ButtonReleaseEvent struct {
	ButtonEvent
}

func NewButtonReleaseEvent

func NewButtonReleaseEvent(data []byte) (*ButtonReleaseEvent, error)

type CharInfo

type CharInfo struct {
	LeftSideBearing  int16
	RightSideBearing int16
	CharacterWidth   int16
	Ascent           int16
	Descent          int16
	Attributes       uint16
}

size: 3 * 4b

type CirculateEvent

type CirculateEvent struct {
	Sequence uint16
	Event    Window
	Window   Window
	Place    uint8
}

type CirculateNotifyEvent

type CirculateNotifyEvent struct {
	CirculateEvent
}

func NewCirculateNotifyEvent

func NewCirculateNotifyEvent(data []byte) (*CirculateNotifyEvent, error)

type CirculateRequestEvent

type CirculateRequestEvent struct {
	CirculateEvent
}

func NewCirculateRequestEvent

func NewCirculateRequestEvent(data []byte) (*CirculateRequestEvent, error)

type ClientMessageData

type ClientMessageData struct {
	// contains filtered or unexported fields
}

func (*ClientMessageData) GetData16

func (v *ClientMessageData) GetData16() []uint16

func (*ClientMessageData) GetData32

func (v *ClientMessageData) GetData32() []uint32

func (*ClientMessageData) GetData8

func (v *ClientMessageData) GetData8() []byte

func (*ClientMessageData) SetData16

func (v *ClientMessageData) SetData16(p *[10]uint16)

func (*ClientMessageData) SetData32

func (v *ClientMessageData) SetData32(p *[5]uint32)

func (*ClientMessageData) SetData8

func (v *ClientMessageData) SetData8(p *[20]byte)

type ClientMessageEvent

type ClientMessageEvent struct {
	Format   uint8
	Sequence uint16
	Window   Window
	Type     Atom
	Data     ClientMessageData
}

func NewClientMessageEvent

func NewClientMessageEvent(data []byte) (*ClientMessageEvent, error)

type Colormap

type Colormap uint32

simple ('xcb', 'COLORMAP')

type ColormapNotifyEvent

type ColormapNotifyEvent struct {
	Sequence uint16
	Window   Window
	Colormap Colormap
	New      bool
	State    uint8
}

func NewColormapNotifyEvent

func NewColormapNotifyEvent(data []byte) (*ColormapNotifyEvent, error)

type ConfigureNotifyEvent

type ConfigureNotifyEvent struct {
	Sequence         uint16
	Event            Window
	Window           Window
	AboveSibling     Window
	X                int16
	Y                int16
	Width            uint16
	Height           uint16
	BorderWidth      uint16
	OverrideRedirect bool
}

func NewConfigureNotifyEvent

func NewConfigureNotifyEvent(data []byte) (*ConfigureNotifyEvent, error)

type ConfigureRequestEvent

type ConfigureRequestEvent struct {
	StackMode   uint8
	Sequence    uint16
	Parent      Window
	Window      Window
	Sibling     Window
	X           int16
	Y           int16
	Width       uint16
	Height      uint16
	BorderWidth uint16
	ValueMask   uint16
}

func NewConfigureRequestEvent

func NewConfigureRequestEvent(data []byte) (*ConfigureRequestEvent, error)

type Conn

type Conn struct {
	DisplayNumber int
	ScreenNumber  int
	// contains filtered or unexported fields
}

func NewConn

func NewConn() (*Conn, error)

func NewConnDisplay

func NewConnDisplay(display string) (*Conn, error)

func (*Conn) AddEventChan

func (c *Conn) AddEventChan(eventChan chan<- GenericEvent)

func (*Conn) AllocID

func (c *Conn) AllocID() (uint32, error)

func (*Conn) Close

func (c *Conn) Close()

func (*Conn) Flush

func (c *Conn) Flush() (err error)

func (*Conn) FreeID

func (c *Conn) FreeID(rid uint32) error

func (*Conn) GetAtom

func (c *Conn) GetAtom(name string) (Atom, error)

func (*Conn) GetAtomCache

func (c *Conn) GetAtomCache() (ac *AtomCache)

func (*Conn) GetAtomExisting

func (c *Conn) GetAtomExisting(name string) (Atom, error)

func (*Conn) GetAtomName

func (c *Conn) GetAtomName(atom Atom) (string, error)

func (*Conn) GetDefaultScreen

func (c *Conn) GetDefaultScreen() *Screen

func (*Conn) GetExtensionData

func (c *Conn) GetExtensionData(ext *Extension) *QueryExtensionReply

func (*Conn) GetSetup

func (c *Conn) GetSetup() *Setup

func (*Conn) IDUsedCount

func (c *Conn) IDUsedCount() int

func (*Conn) MakeAndAddEventChan

func (c *Conn) MakeAndAddEventChan(bufSize int) chan GenericEvent

func (*Conn) NewError

func (c *Conn) NewError(data []byte) *Error

func (*Conn) PrefetchExtensionData

func (c *Conn) PrefetchExtensionData(ext *Extension)

func (*Conn) RemoveEventChan

func (c *Conn) RemoveEventChan(eventChan chan<- GenericEvent)

func (*Conn) SendRequest

func (c *Conn) SendRequest(flags uint, req *ProtocolRequest) SeqNum

return sequence id

func (*Conn) SendSync

func (c *Conn) SendSync()

func (*Conn) SetAtomCache

func (c *Conn) SetAtomCache(ac *AtomCache)

func (*Conn) SetErrorCallback

func (c *Conn) SetErrorCallback(fn func(err *Error))

func (*Conn) WaitForReply

func (c *Conn) WaitForReply(request SeqNum) (replyBuf []byte, err error)

type CreateNotifyEvent

type CreateNotifyEvent struct {
	Sequence         uint16
	Parent           Window
	Window           Window
	X                int16
	Y                int16
	Width            uint16
	Height           uint16
	BorderWidth      uint16
	OverrideRedirect bool
}

func NewCreateNotifyEvent

func NewCreateNotifyEvent(data []byte) (*CreateNotifyEvent, error)

type Cursor

type Cursor uint32

simple ('xcb', 'CURSOR')

type Depth

type Depth struct {
	Depth   uint8
	Visuals []VisualType
}

type DestroyNotifyEvent

type DestroyNotifyEvent struct {
	Sequence uint16
	Event    Window
	Window   Window
}

func NewDestroyNotifyEvent

func NewDestroyNotifyEvent(data []byte) (*DestroyNotifyEvent, error)

type Drawable

type Drawable uint32

simple ('xcb', 'DRAWABLE')

type EnterNotifyEvent

type EnterNotifyEvent struct {
	PointerWindowEvent
}

func NewEnterNotifyEvent

func NewEnterNotifyEvent(data []byte) (*EnterNotifyEvent, error)

type Error

type Error struct {
	Code       uint8  // ErrorCode
	Sequence   uint16 // Sequence number
	ResourceID uint32 // Resource ID for requests with side effects only
	MinorCode  uint16 // Minor opcode of the failed request
	MajorCode  uint8  // Major opcode of the faield request
	// contains filtered or unexported fields
}

func (*Error) Error

func (err *Error) Error() string

type ExposeEvent

type ExposeEvent struct {
	Sequence uint16
	Window   Window
	X        uint16
	Y        uint16
	Width    uint16
	Height   uint16
	Count    uint16
}

func NewExposeEvent

func NewExposeEvent(data []byte) (*ExposeEvent, error)

type Extension

type Extension struct {
	// contains filtered or unexported fields
}

func NewExtension

func NewExtension(name string, maxErrCode uint8,
	errCodeNameMap map[uint8]string, reqOpcodeNameMap map[uint]string) *Extension

only call it in init() func

func (*Extension) Name

func (ext *Extension) Name() string

type FixedSizeBuf

type FixedSizeBuf struct {
	// contains filtered or unexported fields
}

func NewFixedSizeBuf

func NewFixedSizeBuf(size int) *FixedSizeBuf

func (*FixedSizeBuf) Bytes

func (b *FixedSizeBuf) Bytes() []byte

func (*FixedSizeBuf) End

func (b *FixedSizeBuf) End()

func (*FixedSizeBuf) Write1b

func (b *FixedSizeBuf) Write1b(v uint8) *FixedSizeBuf

func (*FixedSizeBuf) Write2b

func (b *FixedSizeBuf) Write2b(v uint16) *FixedSizeBuf

func (*FixedSizeBuf) Write4b

func (b *FixedSizeBuf) Write4b(v uint32) *FixedSizeBuf

func (*FixedSizeBuf) Write8b

func (b *FixedSizeBuf) Write8b(v uint64) *FixedSizeBuf

func (*FixedSizeBuf) WriteBool

func (b *FixedSizeBuf) WriteBool(v bool) *FixedSizeBuf

func (*FixedSizeBuf) WriteBytes

func (b *FixedSizeBuf) WriteBytes(p []byte) *FixedSizeBuf

func (*FixedSizeBuf) WritePad

func (b *FixedSizeBuf) WritePad(n int) *FixedSizeBuf

func (*FixedSizeBuf) WriteString

func (b *FixedSizeBuf) WriteString(s string) *FixedSizeBuf

type FocusEvent

type FocusEvent struct {
	Detail   uint8
	Sequence uint16
	Event    Window
	Mode     uint8
}

type FocusInEvent

type FocusInEvent struct {
	FocusEvent
}

func NewFocusInEvent

func NewFocusInEvent(data []byte) (*FocusInEvent, error)

type FocusOutEvent

type FocusOutEvent struct {
	FocusEvent
}

func NewFocusOutEvent

func NewFocusOutEvent(data []byte) (*FocusOutEvent, error)

type Font

type Font uint32

simple ('xcb', 'FONT')

type FontProp

type FontProp struct {
	Name  Atom
	Value uint32
}

size: 2 * 4b

type Fontable

type Fontable uint32

simple ('xcb', 'FONTABLE')

type Format

type Format struct {
	Depth        uint8
	BitsPerPixel uint8
	ScanlinePad  uint8
}

size: 2 * 4b

type GContext

type GContext uint32

simple ('xcb', 'GCONTEXT')

type GeGenericEvent

type GeGenericEvent struct {
	Extension uint8
	Sequence  uint16
	Length    uint32
	EventType uint16
	Data      []byte
}

func NewGeGenericEvent

func NewGeGenericEvent(data []byte) (*GeGenericEvent, error)

type GenericEvent

type GenericEvent []byte

func (GenericEvent) GetEventCode

func (ge GenericEvent) GetEventCode() uint8

func (GenericEvent) Real

func (ge GenericEvent) Real() bool

func (GenericEvent) String

func (ge GenericEvent) String() string

type GenericReply

type GenericReply struct {
	// contains filtered or unexported fields
}

func NewGenericReply

func NewGenericReply(buf []byte) *GenericReply

type GetAtomNameCookie

type GetAtomNameCookie SeqNum

func GetAtomName

func GetAtomName(conn *Conn, atom Atom) GetAtomNameCookie

func (GetAtomNameCookie) Reply

func (cookie GetAtomNameCookie) Reply(conn *Conn) (*GetAtomNameReply, error)

type GetAtomNameReply

type GetAtomNameReply struct {
	Name string
}

type GetFontPathCookie

type GetFontPathCookie SeqNum

func GetFontPath

func GetFontPath(conn *Conn) GetFontPathCookie

func (GetFontPathCookie) Reply

func (cookie GetFontPathCookie) Reply(conn *Conn) (*GetFontPathReply, error)

type GetFontPathReply

type GetFontPathReply struct {
	Paths []string
}

type GetGeometryCookie

type GetGeometryCookie SeqNum

func GetGeometry

func GetGeometry(conn *Conn, drawable Drawable) GetGeometryCookie

func (GetGeometryCookie) Reply

func (cookie GetGeometryCookie) Reply(conn *Conn) (*GetGeometryReply, error)

type GetGeometryReply

type GetGeometryReply struct {
	Depth       uint8
	Root        Window
	X           int16
	Y           int16
	Width       uint16
	Height      uint16
	BorderWidth uint16
}

type GetImageCookie

type GetImageCookie SeqNum

func GetImage

func GetImage(conn *Conn, format uint8, drawable Drawable, x, y int16, width, height uint16, planeMask uint32) GetImageCookie

func (GetImageCookie) Reply

func (cookie GetImageCookie) Reply(conn *Conn) (*GetImageReply, error)

type GetImageReply

type GetImageReply struct {
	Depth  uint8
	Visual VisualID
	Data   []byte
}

type GetInputFocusCookie

type GetInputFocusCookie SeqNum

func GetInputFocus

func GetInputFocus(conn *Conn) GetInputFocusCookie

func (GetInputFocusCookie) Reply

func (cookie GetInputFocusCookie) Reply(conn *Conn) (*GetInputFocusReply, error)

type GetInputFocusReply

type GetInputFocusReply struct {
	RevertTo uint8
	Focus    Window
}

type GetKeyboardControlCookie

type GetKeyboardControlCookie SeqNum

type GetKeyboardMappingCookie

type GetKeyboardMappingCookie SeqNum

func GetKeyboardMapping

func GetKeyboardMapping(conn *Conn, firstKeycode Keycode, count uint8) GetKeyboardMappingCookie

func (GetKeyboardMappingCookie) Reply

type GetKeyboardMappingReply

type GetKeyboardMappingReply struct {
	KeysymsPerKeycode uint8
	Keysyms           []Keysym
}

type GetModifierMappingCookie

type GetModifierMappingCookie SeqNum

type GetMotionEventsCookie

type GetMotionEventsCookie SeqNum

func GetMotionEvents

func GetMotionEvents(conn *Conn, window Window, start, stop Timestamp) GetMotionEventsCookie

func (GetMotionEventsCookie) Reply

func (cookie GetMotionEventsCookie) Reply(conn *Conn) (*GetMotionEventsReply, error)

type GetMotionEventsReply

type GetMotionEventsReply struct {
	Events []TimeCoord
}

type GetPointerControlCookie

type GetPointerControlCookie SeqNum

type GetPointerMappingCookie

type GetPointerMappingCookie SeqNum

type GetPropertyCookie

type GetPropertyCookie SeqNum

func GetProperty

func GetProperty(conn *Conn, delete bool, window Window, property, type0 Atom, longOffset, longLength uint32) GetPropertyCookie

func (GetPropertyCookie) Reply

func (cookie GetPropertyCookie) Reply(conn *Conn) (*GetPropertyReply, error)

type GetPropertyReply

type GetPropertyReply struct {
	Format     uint8
	Type       Atom
	BytesAfter uint32
	ValueLen   uint32
	Value      []byte
}

type GetScreenSaverCookie

type GetScreenSaverCookie SeqNum

func GetScreenSaver

func GetScreenSaver(conn *Conn) GetScreenSaverCookie

func (GetScreenSaverCookie) Reply

func (cookie GetScreenSaverCookie) Reply(conn *Conn) (*GetScreenSaverReply, error)

type GetScreenSaverReply

type GetScreenSaverReply struct {
	Timeout        uint16
	Interval       uint16
	PreferBlanking uint8
	AllowExposures uint8
}

type GetSelectionOwnerCookie

type GetSelectionOwnerCookie SeqNum

func GetSelectionOwner

func GetSelectionOwner(conn *Conn, selection Atom) GetSelectionOwnerCookie

func (GetSelectionOwnerCookie) Reply

func (cookie GetSelectionOwnerCookie) Reply(conn *Conn) (*GetSelectionOwnerReply, error)

type GetSelectionOwnerReply

type GetSelectionOwnerReply struct {
	Owner Window
}

type GetWindowAttributesCookie

type GetWindowAttributesCookie SeqNum

func GetWindowAttributes

func GetWindowAttributes(conn *Conn, window Window) GetWindowAttributesCookie

func (GetWindowAttributesCookie) Reply

type GetWindowAttributesReply

type GetWindowAttributesReply struct {
	BackingStore       uint8
	Visual             VisualID
	Class              uint16
	BitGravity         uint8
	WinGravity         uint8
	BackingPlanes      uint32
	BackingPixel       uint32
	SaveUnder          bool
	MapIsInstalled     bool
	MapState           uint8
	OverrideRedirect   bool
	Colormap           Colormap
	AllEventMasks      uint32
	YourEventMask      uint32
	DoNotPropagateMask uint16
}

type GrabKeyboardCookie

type GrabKeyboardCookie SeqNum

func GrabKeyboard

func GrabKeyboard(conn *Conn, ownerEvents bool, grabWindow Window, time Timestamp, pointerMode, keyboardMode uint8) GrabKeyboardCookie

func (GrabKeyboardCookie) Reply

func (cookie GrabKeyboardCookie) Reply(conn *Conn) (*GrabKeyboardReply, error)

type GrabKeyboardReply

type GrabKeyboardReply struct {
	Status uint8
}

type GrabPointerCookie

type GrabPointerCookie SeqNum

func GrabPointer

func GrabPointer(conn *Conn, ownerEvents bool, grabWindow Window, eventMask uint16, pointerMode, keyboardMode uint8, confineTo Window, cursor Cursor, time Timestamp) GrabPointerCookie

func (GrabPointerCookie) Reply

func (cookie GrabPointerCookie) Reply(conn *Conn) (*GrabPointerReply, error)

type GrabPointerReply

type GrabPointerReply struct {
	Status uint8
}

type GraphicsExposureEvent

type GraphicsExposureEvent struct {
	Sequence    uint16
	Drawable    Drawable
	X           uint16
	Y           uint16
	Width       uint16
	Height      uint16
	MinorOpcode uint16
	Count       uint16
	MajorOpcode uint8
}

func NewGraphicsExposureEvent

func NewGraphicsExposureEvent(data []byte) (*GraphicsExposureEvent, error)

type GravityNotifyEvent

type GravityNotifyEvent struct {
	Sequence uint16
	Event    Window
	Window   Window
	X        int16
	Y        int16
}

func NewGravityNotifyEvent

func NewGravityNotifyEvent(data []byte) (*GravityNotifyEvent, error)

type InternAtomCookie

type InternAtomCookie SeqNum

func InternAtom

func InternAtom(conn *Conn, onlyIfExists bool, name string) InternAtomCookie

func (InternAtomCookie) Reply

func (cookie InternAtomCookie) Reply(conn *Conn) (*InternAtomReply, error)

type InternAtomReply

type InternAtomReply struct {
	Atom Atom
}

type KeyEvent

type KeyEvent struct {
	Detail     Keycode
	Sequence   uint16
	Time       Timestamp
	Root       Window
	Event      Window
	Child      Window
	RootX      int16
	RootY      int16
	EventX     int16
	EventY     int16
	State      uint16
	SameScreen bool
}

type KeyPressEvent

type KeyPressEvent struct {
	KeyEvent
}

func NewKeyPressEvent

func NewKeyPressEvent(data []byte) (*KeyPressEvent, error)

type KeyReleaseEvent

type KeyReleaseEvent struct {
	KeyEvent
}

func NewKeyReleaseEvent

func NewKeyReleaseEvent(data []byte) (*KeyReleaseEvent, error)

type Keycode

type Keycode uint8

simple ('xcb', 'KEYCODE')

type Keycode32

type Keycode32 uint32

simple ('xcb', 'KEYCODE32')

type KeymapNotifyEvent

type KeymapNotifyEvent struct {
	Keys []byte
}

func NewKeymapNotifyEvent

func NewKeymapNotifyEvent(data []byte) (*KeymapNotifyEvent, error)

type Keysym

type Keysym uint32

simple ('xcb', 'KEYSYM')

type LeaveNotifyEvent

type LeaveNotifyEvent struct {
	PointerWindowEvent
}

func NewLeaveNotifyEvent

func NewLeaveNotifyEvent(data []byte) (*LeaveNotifyEvent, error)

type ListExtensionsCookie

type ListExtensionsCookie SeqNum

func ListExtensions

func ListExtensions(conn *Conn) ListExtensionsCookie

func (ListExtensionsCookie) Reply

func (cookie ListExtensionsCookie) Reply(conn *Conn) (*ListExtensionsReply, error)

type ListExtensionsReply

type ListExtensionsReply struct {
	Names []string
}

type ListFontsCookie

type ListFontsCookie SeqNum

func ListFonts

func ListFonts(conn *Conn, maxNames uint16, pattern string) ListFontsCookie

func (ListFontsCookie) Reply

func (cookie ListFontsCookie) Reply(conn *Conn) (*ListFontsReply, error)

type ListFontsReply

type ListFontsReply struct {
	Names []string
}

type ListFontsWithInfoCookie

type ListFontsWithInfoCookie SeqNum

func ListFontsWithInfo

func ListFontsWithInfo(conn *Conn, maxNames uint16, pattern string) ListFontsWithInfoCookie

func (ListFontsWithInfoCookie) Reply

func (cookie ListFontsWithInfoCookie) Reply(conn *Conn) (*ListFontsWithInfoReply, error)

type ListFontsWithInfoReply

type ListFontsWithInfoReply struct {
	LastReply      bool
	MinBounds      CharInfo
	MaxBounds      CharInfo
	MinCharOrByte2 uint16
	MaxCharOrByte2 uint16
	DefaultChar    uint16
	PropertiesLen  uint16
	DrawDirection  uint8
	MinByte1       uint8
	MaxByte1       uint8
	AllCharsExist  bool
	FontAscent     int16
	FontDescent    int16
	RepliesHint    uint32
	Properties     []FontProp
	Name           string
}

type ListHostsCookie

type ListHostsCookie SeqNum

type ListInstalledColormapsCookie

type ListInstalledColormapsCookie SeqNum

type ListPropertiesCookie

type ListPropertiesCookie SeqNum

func ListProperties

func ListProperties(conn *Conn, window Window) ListPropertiesCookie

func (ListPropertiesCookie) Reply

func (cookie ListPropertiesCookie) Reply(conn *Conn) (*ListPropertiesReply, error)

type ListPropertiesReply

type ListPropertiesReply struct {
	Atoms []Atom
}

type LookupColorCookie

type LookupColorCookie SeqNum

type MapNotifyEvent

type MapNotifyEvent struct {
	Sequence         uint16
	Event            Window
	Window           Window
	OverrideRedirect bool
}

func NewMapNotifyEvent

func NewMapNotifyEvent(data []byte) (*MapNotifyEvent, error)

type MapRequestEvent

type MapRequestEvent struct {
	Sequence uint16
	Parent   Window
	Window   Window
}

func NewMapRequestEvent

func NewMapRequestEvent(data []byte) (*MapRequestEvent, error)

type MappingNotifyEvent

type MappingNotifyEvent struct {
	Sequence     uint16
	Request      uint8
	FirstKeycode Keycode
	Count        uint8
}

func NewMappingNotifyEvent

func NewMappingNotifyEvent(data []byte) (*MappingNotifyEvent, error)

type MotionNotifyEvent

type MotionNotifyEvent struct {
	Detail     uint8
	Sequence   uint16
	Time       Timestamp
	Root       Window
	Event      Window
	Child      Window
	RootX      int16
	RootY      int16
	EventX     int16
	EventY     int16
	State      uint16
	SameScreen bool
}

func NewMotionNotifyEvent

func NewMotionNotifyEvent(data []byte) (*MotionNotifyEvent, error)

type NoExposureEvent

type NoExposureEvent struct {
	Sequence    uint16
	Drawable    Drawable
	MinorOpcode uint16
	MajorOpcode uint8
}

func NewNoExposureEvent

func NewNoExposureEvent(data []byte) (*NoExposureEvent, error)

type PendingReply

type PendingReply struct {
	// contains filtered or unexported fields
}

type Pixmap

type Pixmap uint32

simple ('xcb', 'PIXMAP')

type Point

type Point struct {
	X, Y int16
}

type PointerWindowEvent

type PointerWindowEvent struct {
	Detail          uint8
	Sequence        uint16
	Time            Timestamp
	Root            Window
	Event           Window
	Child           Window
	RootX           int16
	RootY           int16
	EventX          int16
	EventY          int16
	State           uint16
	Mode            uint8
	SameScreenFocus uint8
}

type PropertyNotifyEvent

type PropertyNotifyEvent struct {
	Sequence uint16
	Window   Window
	Atom     Atom
	Time     Timestamp
	State    uint8
}

func NewPropertyNotifyEvent

func NewPropertyNotifyEvent(data []byte) (*PropertyNotifyEvent, error)

type ProtocolRequest

type ProtocolRequest struct {
	Ext     *Extension
	NoReply bool
	Header  RequestHeader
	Body    RequestBody
}

type QueryBestSizeCookie

type QueryBestSizeCookie SeqNum

type QueryColorsCookie

type QueryColorsCookie SeqNum

type QueryExtensionCookie

type QueryExtensionCookie SeqNum

func QueryExtension

func QueryExtension(conn *Conn, name string) QueryExtensionCookie

func (QueryExtensionCookie) Reply

func (cookie QueryExtensionCookie) Reply(conn *Conn) (*QueryExtensionReply, error)

type QueryExtensionReply

type QueryExtensionReply struct {
	Present     bool
	MajorOpcode uint8
	FirstEvent  uint8
	FirstError  uint8
}

type QueryFontCookie

type QueryFontCookie SeqNum

func QueryFont

func QueryFont(conn *Conn, font Fontable) QueryFontCookie

func (QueryFontCookie) Reply

func (cookie QueryFontCookie) Reply(conn *Conn) (*QueryFontReply, error)

type QueryFontReply

type QueryFontReply struct {
	MinBounds      CharInfo
	MaxBounds      CharInfo
	MinCharOrByte2 uint16
	MaxCharOrByte2 uint16
	DefaultChar    uint16
	PropertiesLen  uint16
	DrawDirection  uint8
	MinByte1       uint8
	MaxByte1       uint8
	AllCharsExist  bool
	FontAscent     int16
	FontDescent    int16
	CharInfosLen   uint32
	Properties     []FontProp
	CharInfos      []CharInfo
}

type QueryKeymapCookie

type QueryKeymapCookie SeqNum

func QueryKeymap

func QueryKeymap(conn *Conn) QueryKeymapCookie

func (QueryKeymapCookie) Reply

func (cookie QueryKeymapCookie) Reply(conn *Conn) (*QueryKeymapReply, error)

type QueryKeymapReply

type QueryKeymapReply struct {
	Keys []byte
}

type QueryPointerCookie

type QueryPointerCookie SeqNum

func QueryPointer

func QueryPointer(conn *Conn, window Window) QueryPointerCookie

func (QueryPointerCookie) Reply

func (cookie QueryPointerCookie) Reply(conn *Conn) (*QueryPointerReply, error)

type QueryPointerReply

type QueryPointerReply struct {
	SameScreen bool
	Root       Window
	Child      Window
	RootX      int16
	RootY      int16
	WinX       int16
	WinY       int16
	Mask       uint16
}

type QueryTextExtentsCookie

type QueryTextExtentsCookie SeqNum

type QueryTreeCookie

type QueryTreeCookie SeqNum

func QueryTree

func QueryTree(conn *Conn, window Window) QueryTreeCookie

func (QueryTreeCookie) Reply

func (cookie QueryTreeCookie) Reply(conn *Conn) (*QueryTreeReply, error)

type QueryTreeReply

type QueryTreeReply struct {
	Root, Parent Window
	Children     []Window
}

type ReadErrorFunc

type ReadErrorFunc func(*Reader) Error

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReaderFromData

func NewReaderFromData(data []byte) *Reader

func (*Reader) MustReadBytes

func (r *Reader) MustReadBytes(n int) []byte

func (*Reader) Pos

func (r *Reader) Pos() int

func (*Reader) Read1b

func (r *Reader) Read1b() uint8

func (*Reader) Read2b

func (r *Reader) Read2b() uint16

func (*Reader) Read4b

func (r *Reader) Read4b() uint32

func (*Reader) ReadBool

func (r *Reader) ReadBool() bool

func (*Reader) ReadBytes

func (r *Reader) ReadBytes(n int) ([]byte, error)

func (*Reader) ReadBytesWithPad

func (r *Reader) ReadBytesWithPad(n int) ([]byte, error)

func (*Reader) ReadEventHeader

func (r *Reader) ReadEventHeader() (data uint8, seq uint16)

func (*Reader) ReadNulTermStr

func (r *Reader) ReadNulTermStr() string

func (*Reader) ReadPad

func (r *Reader) ReadPad(n int)

func (*Reader) ReadReplyHeader

func (r *Reader) ReadReplyHeader() (data uint8, length uint32)

func (*Reader) ReadStrWithPad

func (r *Reader) ReadStrWithPad(n int) (string, error)

func (*Reader) ReadString

func (r *Reader) ReadString(n int) (string, error)

func (*Reader) RemainAtLeast

func (r *Reader) RemainAtLeast(n int) bool

func (*Reader) RemainAtLeast4b

func (r *Reader) RemainAtLeast4b(n int) bool

func (*Reader) Reset

func (r *Reader) Reset()

type Rectangle

type Rectangle struct {
	X, Y          int16
	Width, Height uint16
}

size: 2 * 4b

func ReadRectangle

func ReadRectangle(r *Reader) Rectangle

type ReparentNotifyEvent

type ReparentNotifyEvent struct {
	Sequence         uint16
	Event            Window
	Window           Window
	Parent           Window
	X                int16
	Y                int16
	OverrideRedirect bool
}

func NewReparentNotifyEvent

func NewReparentNotifyEvent(data []byte) (*ReparentNotifyEvent, error)

type ReplyReader

type ReplyReader struct {
	// contains filtered or unexported fields
}

type RequestBody

type RequestBody [][]byte

func (*RequestBody) AddBlock

func (rb *RequestBody) AddBlock(n int) *FixedSizeBuf

func (*RequestBody) AddBytes

func (rb *RequestBody) AddBytes(data []byte)

type RequestHeader

type RequestHeader struct {
	Opcode uint8  // major opcode
	Data   uint8  // data or minor opcode
	Length uint64 // unit is byte
}

type ResizeRequestEvent

type ResizeRequestEvent struct {
	Sequence uint16
	Window   Window
	Width    uint16
	Height   uint16
}

func NewResizeRequestEvent

func NewResizeRequestEvent(data []byte) (*ResizeRequestEvent, error)

type Screen

type Screen struct {
	Root                Window
	DefaultColorMap     Colormap
	WhitePixel          uint32
	BlackPixel          uint32
	CurrentInputMask    uint32
	WidthInPixels       uint16
	HeightInPixels      uint16
	WidthInMillimeters  uint16
	HeightInMillimeters uint16
	MinInstalledMaps    uint16
	MaxInstalledMaps    uint16
	RootVisual          VisualID
	BackingStores       uint8
	SaveUnders          bool
	RootDepth           uint8
	AllowedDepths       []Depth
}

type Segment

type Segment struct {
	X1, Y1, X2, Y2 int16
}

type SelectionClearEvent

type SelectionClearEvent struct {
	Sequence  uint16
	Time      Timestamp
	Owner     Window
	Selection Atom
}

func NewSelectionClearEvent

func NewSelectionClearEvent(data []byte) (*SelectionClearEvent, error)

type SelectionNotifyEvent

type SelectionNotifyEvent struct {
	Sequence  uint16
	Time      Timestamp
	Requestor Window
	Selection Atom
	Target    Atom
	Property  Atom
}

func NewSelectionNotifyEvent

func NewSelectionNotifyEvent(data []byte) (*SelectionNotifyEvent, error)

type SelectionRequestEvent

type SelectionRequestEvent struct {
	Sequence  uint16
	Time      Timestamp
	Owner     Window
	Requestor Window
	Selection Atom
	Target    Atom
	Property  Atom
}

func NewSelectionRequestEvent

func NewSelectionRequestEvent(data []byte) (*SelectionRequestEvent, error)

type SeqNum

type SeqNum uint64

sequence number

type SetModifierMappingCookie

type SetModifierMappingCookie SeqNum

type SetPointerMappingCookie

type SetPointerMappingCookie SeqNum

type Setup

type Setup struct {
	ProtocolMajorVersion     uint16
	ProtocolMinorVersion     uint16
	ReleaseNumber            uint32
	ResourceIdBase           uint32
	ResourceIdMask           uint32
	MonitorBufferSize        uint32
	MaximumRequestLength     uint16
	ImageByteOrder           uint8
	BitmapFormatBitOrder     uint8
	BitmapFormatScanlineUint uint8
	BitmapFormatScanlinePad  uint8
	MinKeycode               Keycode
	MaxKeycode               Keycode
	Vendor                   string
	PixmapFormats            []Format
	Roots                    []Screen
}

type Str

type Str struct {
	Value string
}

type TimeCoord

type TimeCoord struct {
	Time Timestamp
	X, Y int16
}

size: 2 * 4b

type Timestamp

type Timestamp uint32

simple ('xcb', 'TIMESTAMP')

type TranslateCoordinatesCookie

type TranslateCoordinatesCookie SeqNum

func TranslateCoordinates

func TranslateCoordinates(conn *Conn, srcWindow, dstWindow Window, srcX, srcY int16) TranslateCoordinatesCookie

func (TranslateCoordinatesCookie) Reply

type TranslateCoordinatesReply

type TranslateCoordinatesReply struct {
	SameScreen bool
	Child      Window
	DstX       int16
	DstY       int16
}

type UnmapNotifyEvent

type UnmapNotifyEvent struct {
	Sequence      uint16
	Event         Window
	Window        Window
	FromConfigure bool
}

func NewUnmapNotifyEvent

func NewUnmapNotifyEvent(data []byte) (*UnmapNotifyEvent, error)

type VisibilityNotifyEvent

type VisibilityNotifyEvent struct {
	Sequence uint16
	Window   Window
	State    uint8
}

func NewVisibilityNotifyEvent

func NewVisibilityNotifyEvent(data []byte) (*VisibilityNotifyEvent, error)

type VisualID

type VisualID uint32

simple ('xcb', 'VISUALID')

type VisualType

type VisualType struct {
	Id              VisualID
	Class           uint8
	BitsPerRGBValue uint8
	ColorMapEntries uint16
	RedMask         uint32
	GreenMask       uint32
	BlueMask        uint32
}

size: 6 * 4b

type VoidCookie

type VoidCookie SeqNum

func AllowEventsChecked

func AllowEventsChecked(conn *Conn, mode uint8, time Timestamp) VoidCookie

func ChangeActivePointerGrabChecked

func ChangeActivePointerGrabChecked(conn *Conn, cursor Cursor, time Timestamp, eventMask uint16) VoidCookie

func ChangeGCChecked

func ChangeGCChecked(conn *Conn, gc GContext, valueMask uint32, valueList []uint32) VoidCookie

func ChangePropertyChecked

func ChangePropertyChecked(conn *Conn, mode uint8, window Window, property, type0 Atom, format uint8, data []byte) VoidCookie

func ChangeSaveSetChecked

func ChangeSaveSetChecked(conn *Conn, mode uint8, window Window) VoidCookie

func ChangeWindowAttributesChecked

func ChangeWindowAttributesChecked(conn *Conn, window Window, valueMask uint32, valueList []uint32) VoidCookie

func CirculateWindowChecked

func CirculateWindowChecked(conn *Conn, direction uint8, window Window) VoidCookie

func ClearAreaChecked

func ClearAreaChecked(conn *Conn, exposures bool, window Window, x, y int16, width, height uint16) VoidCookie

func CloseFontChecked

func CloseFontChecked(conn *Conn, font Font) VoidCookie

func ConfigureWindowChecked

func ConfigureWindowChecked(conn *Conn, window Window, valueMask uint16, valueList []uint32) VoidCookie

func ConvertSelectionChecked

func ConvertSelectionChecked(conn *Conn, requestor Window, selection, target, property Atom, time Timestamp) VoidCookie

func CopyAreaChecked

func CopyAreaChecked(conn *Conn, srcDrawable, dstDrawable Drawable, gc GContext, srcX, srcY, dstX, dstY int16, width, height uint16) VoidCookie

func CopyGCChecked

func CopyGCChecked(conn *Conn, srcGC, dstGC GContext, valueMask uint32) VoidCookie

func CopyPlaneChecked

func CopyPlaneChecked(conn *Conn, srcDrawable, dstDrawable Drawable, gc GContext, srcX, srcY, dstX, dstY int16, width, height uint16, bitPlane uint32) VoidCookie

func CreateGCChecked

func CreateGCChecked(conn *Conn, cid GContext, drawable Drawable, valueMask uint32, valueList []uint32) VoidCookie

func CreatePixmapChecked

func CreatePixmapChecked(conn *Conn, depth uint8, pid Pixmap, drawable Drawable, width, height uint16) VoidCookie

func CreateWindowChecked

func CreateWindowChecked(conn *Conn, depth uint8, wid, parent Window, x, y int16, width, height, borderWidth uint16, class uint16, visual VisualID, valueMask uint32, valueList []uint32) VoidCookie

func DeletePropertyChecked

func DeletePropertyChecked(conn *Conn, window Window, property Atom) VoidCookie

func DestroySubwindowsChecked

func DestroySubwindowsChecked(conn *Conn, window Window) VoidCookie

func DestroyWindowChecked

func DestroyWindowChecked(conn *Conn, window Window) VoidCookie

func FillPolyChecked

func FillPolyChecked(conn *Conn, drawable Drawable, gc GContext, shape uint8, coordinateMode uint8, points []Point) VoidCookie

func ForceScreenSaverChecked

func ForceScreenSaverChecked(conn *Conn, mode uint8) VoidCookie

func FreeCursorChecked

func FreeCursorChecked(conn *Conn, cursor Cursor) VoidCookie

func FreeGCChecked

func FreeGCChecked(conn *Conn, gc GContext) VoidCookie

func FreePixmapChecked

func FreePixmapChecked(conn *Conn, pixmap Pixmap) VoidCookie

func GrabButtonChecked

func GrabButtonChecked(conn *Conn, ownerEvents bool, grabWindow Window, eventMask uint16, pointerMode, keyboardMode uint8, confineTo Window, cursor Cursor, button uint8, modifiers uint16) VoidCookie

func GrabKeyChecked

func GrabKeyChecked(conn *Conn, ownerEvents bool, grabWindow Window, modifiers uint16, key Keycode, pointerMode, keyboardMode uint8) VoidCookie

func GrabServerChecked

func GrabServerChecked(conn *Conn) VoidCookie

func KillClientChecked

func KillClientChecked(conn *Conn, resource uint32) VoidCookie

func MapSubwindowsChecked

func MapSubwindowsChecked(conn *Conn, window Window) VoidCookie

func MapWindowChecked

func MapWindowChecked(conn *Conn, window Window) VoidCookie

func NoOperationChecked

func NoOperationChecked(conn *Conn, n int) VoidCookie

func OpenFontChecked

func OpenFontChecked(conn *Conn, fid Font, name string) VoidCookie

func PolyArcChecked

func PolyArcChecked(conn *Conn, drawable Drawable, gc GContext, arcs []Arc) VoidCookie

func PolyFillArcChecked

func PolyFillArcChecked(conn *Conn, drawable Drawable, gc GContext, arcs []Arc) VoidCookie

func PolyFillRectangleChecked

func PolyFillRectangleChecked(conn *Conn, drawable Drawable, gc GContext, rectangles []Rectangle) VoidCookie

func PolyLineChecked

func PolyLineChecked(conn *Conn, coordinateMode uint8, drawable Drawable, gc GContext, points []Point) VoidCookie

func PolyPointChecked

func PolyPointChecked(conn *Conn, coordinateMode uint8, drawable Drawable, gc GContext, points []Point) VoidCookie

func PolyRectangleChecked

func PolyRectangleChecked(conn *Conn, drawable Drawable, gc GContext, rectangles []Rectangle) VoidCookie

func PolySegmentChecked

func PolySegmentChecked(conn *Conn, drawable Drawable, gc GContext, segments []Segment) VoidCookie

func PutImageChecked

func PutImageChecked(conn *Conn, format uint8, drawable Drawable, gc GContext, width, height uint16, dstX, dstY int16, leftPad, depth uint8, data []byte) VoidCookie

func ReparentWindowChecked

func ReparentWindowChecked(conn *Conn, window, parent Window, x, y int16) VoidCookie

func SendEventChecked

func SendEventChecked(conn *Conn, propagate bool, destination Window, eventMask uint32, event []byte) VoidCookie

func SetClipRectanglesChecked

func SetClipRectanglesChecked(conn *Conn, ordering uint8, gc GContext, clipXOrigin, clipYOrigin int16, rectangles []Rectangle) VoidCookie

func SetDashesChecked

func SetDashesChecked(conn *Conn, gc GContext, dashOffset uint16, dashes []uint8) VoidCookie

func SetFontPathChecked

func SetFontPathChecked(conn *Conn, paths []string) VoidCookie

func SetInputFocusChecked

func SetInputFocusChecked(conn *Conn, revertTo uint8, focus Window, time Timestamp) VoidCookie

func SetScreenSaverChecked

func SetScreenSaverChecked(conn *Conn, timeout, interval int16, preferBlanking, allowExposures uint8) VoidCookie

func SetSelectionOwnerChecked

func SetSelectionOwnerChecked(conn *Conn, owner Window, selection Atom, time Timestamp) VoidCookie

func UngrabButtonChecked

func UngrabButtonChecked(conn *Conn, button uint8, grabWindow Window, modifiers uint16) VoidCookie

func UngrabKeyChecked

func UngrabKeyChecked(conn *Conn, key Keycode, grabWindow Window, modifiers uint16) VoidCookie

func UngrabKeyboardChecked

func UngrabKeyboardChecked(conn *Conn, time Timestamp) VoidCookie

func UngrabPointerChecked

func UngrabPointerChecked(conn *Conn, time Timestamp) VoidCookie

func UngrabServerChecked

func UngrabServerChecked(conn *Conn) VoidCookie

func UnmapSubwindowsChecked

func UnmapSubwindowsChecked(conn *Conn, window Window) VoidCookie

func UnmapWindowChecked

func UnmapWindowChecked(conn *Conn, window Window) VoidCookie

func WarpPointerChecked

func WarpPointerChecked(conn *Conn, srcWindow, dstWindow Window, srcX, srcY int16, srcWidth, srcHeight uint16, dstX, dstY int16) VoidCookie

func (VoidCookie) Check

func (cookie VoidCookie) Check(c *Conn) error

type Window

type Window uint32

simple ('xcb', 'WINDOW')

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter() *Writer

func (*Writer) Bytes

func (w *Writer) Bytes() []byte

func (*Writer) Reset

func (w *Writer) Reset()

func (*Writer) Write1b

func (w *Writer) Write1b(v uint8)

func (*Writer) Write2b

func (w *Writer) Write2b(v uint16)

func (*Writer) Write4b

func (w *Writer) Write4b(v uint32)

func (*Writer) Write8b

func (w *Writer) Write8b(v uint64)

func (*Writer) WriteBytes

func (w *Writer) WriteBytes(p []byte)

func (*Writer) WriteNBytes

func (w *Writer) WriteNBytes(n int, p []byte)

func (*Writer) WritePad

func (w *Writer) WritePad(n int)

func (*Writer) WriteString

func (w *Writer) WriteString(s string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL