...

Package xproto

import "github.com/jezek/xgb/xproto"
Overview
Index

Overview ▾

Package xproto is the X client API for the extension.

Index ▾

Constants
func AccessErrorNew(buf []byte) xgb.Error
func AllocErrorNew(buf []byte) xgb.Error
func ArcListBytes(buf []byte, list []Arc) int
func ArcRead(buf []byte, v *Arc) int
func ArcReadList(buf []byte, dest []Arc) int
func AtomErrorNew(buf []byte) xgb.Error
func ButtonPressEventNew(buf []byte) xgb.Event
func ButtonReleaseEventNew(buf []byte) xgb.Event
func Char2bListBytes(buf []byte, list []Char2b) int
func Char2bRead(buf []byte, v *Char2b) int
func Char2bReadList(buf []byte, dest []Char2b) int
func CharinfoListBytes(buf []byte, list []Charinfo) int
func CharinfoRead(buf []byte, v *Charinfo) int
func CharinfoReadList(buf []byte, dest []Charinfo) int
func CirculateNotifyEventNew(buf []byte) xgb.Event
func CirculateRequestEventNew(buf []byte) xgb.Event
func ClientMessageDataUnionListBytes(buf []byte, list []ClientMessageDataUnion) int
func ClientMessageDataUnionRead(buf []byte, v *ClientMessageDataUnion) int
func ClientMessageDataUnionReadList(buf []byte, dest []ClientMessageDataUnion) int
func ClientMessageEventNew(buf []byte) xgb.Event
func ColoritemListBytes(buf []byte, list []Coloritem) int
func ColoritemRead(buf []byte, v *Coloritem) int
func ColoritemReadList(buf []byte, dest []Coloritem) int
func ColormapErrorNew(buf []byte) xgb.Error
func ColormapNotifyEventNew(buf []byte) xgb.Event
func ConfigureNotifyEventNew(buf []byte) xgb.Event
func ConfigureRequestEventNew(buf []byte) xgb.Event
func CreateNotifyEventNew(buf []byte) xgb.Event
func CursorErrorNew(buf []byte) xgb.Error
func DepthInfoListBytes(buf []byte, list []DepthInfo) int
func DepthInfoListSize(list []DepthInfo) int
func DepthInfoRead(buf []byte, v *DepthInfo) int
func DepthInfoReadList(buf []byte, dest []DepthInfo) int
func DestroyNotifyEventNew(buf []byte) xgb.Event
func DrawableErrorNew(buf []byte) xgb.Error
func EnterNotifyEventNew(buf []byte) xgb.Event
func ExposeEventNew(buf []byte) xgb.Event
func FocusInEventNew(buf []byte) xgb.Event
func FocusOutEventNew(buf []byte) xgb.Event
func FontErrorNew(buf []byte) xgb.Error
func FontpropListBytes(buf []byte, list []Fontprop) int
func FontpropRead(buf []byte, v *Fontprop) int
func FontpropReadList(buf []byte, dest []Fontprop) int
func FormatListBytes(buf []byte, list []Format) int
func FormatRead(buf []byte, v *Format) int
func FormatReadList(buf []byte, dest []Format) int
func GContextErrorNew(buf []byte) xgb.Error
func GeGenericEventNew(buf []byte) xgb.Event
func GraphicsExposureEventNew(buf []byte) xgb.Event
func GravityNotifyEventNew(buf []byte) xgb.Event
func HostListBytes(buf []byte, list []Host) int
func HostListSize(list []Host) int
func HostRead(buf []byte, v *Host) int
func HostReadList(buf []byte, dest []Host) int
func IDChoiceErrorNew(buf []byte) xgb.Error
func ImplementationErrorNew(buf []byte) xgb.Error
func KeyPressEventNew(buf []byte) xgb.Event
func KeyReleaseEventNew(buf []byte) xgb.Event
func KeymapNotifyEventNew(buf []byte) xgb.Event
func LeaveNotifyEventNew(buf []byte) xgb.Event
func LengthErrorNew(buf []byte) xgb.Error
func MapNotifyEventNew(buf []byte) xgb.Event
func MapRequestEventNew(buf []byte) xgb.Event
func MappingNotifyEventNew(buf []byte) xgb.Event
func MatchErrorNew(buf []byte) xgb.Error
func MotionNotifyEventNew(buf []byte) xgb.Event
func NameErrorNew(buf []byte) xgb.Error
func NoExposureEventNew(buf []byte) xgb.Event
func PixmapErrorNew(buf []byte) xgb.Error
func PointListBytes(buf []byte, list []Point) int
func PointRead(buf []byte, v *Point) int
func PointReadList(buf []byte, dest []Point) int
func PropertyNotifyEventNew(buf []byte) xgb.Event
func RectangleListBytes(buf []byte, list []Rectangle) int
func RectangleRead(buf []byte, v *Rectangle) int
func RectangleReadList(buf []byte, dest []Rectangle) int
func ReparentNotifyEventNew(buf []byte) xgb.Event
func RequestErrorNew(buf []byte) xgb.Error
func ResizeRequestEventNew(buf []byte) xgb.Event
func RgbListBytes(buf []byte, list []Rgb) int
func RgbRead(buf []byte, v *Rgb) int
func RgbReadList(buf []byte, dest []Rgb) int
func ScreenInfoListBytes(buf []byte, list []ScreenInfo) int
func ScreenInfoListSize(list []ScreenInfo) int
func ScreenInfoRead(buf []byte, v *ScreenInfo) int
func ScreenInfoReadList(buf []byte, dest []ScreenInfo) int
func SegmentListBytes(buf []byte, list []Segment) int
func SegmentRead(buf []byte, v *Segment) int
func SegmentReadList(buf []byte, dest []Segment) int
func SelectionClearEventNew(buf []byte) xgb.Event
func SelectionNotifyEventNew(buf []byte) xgb.Event
func SelectionRequestEventNew(buf []byte) xgb.Event
func SetupAuthenticateListBytes(buf []byte, list []SetupAuthenticate) int
func SetupAuthenticateListSize(list []SetupAuthenticate) int
func SetupAuthenticateRead(buf []byte, v *SetupAuthenticate) int
func SetupAuthenticateReadList(buf []byte, dest []SetupAuthenticate) int
func SetupFailedListBytes(buf []byte, list []SetupFailed) int
func SetupFailedListSize(list []SetupFailed) int
func SetupFailedRead(buf []byte, v *SetupFailed) int
func SetupFailedReadList(buf []byte, dest []SetupFailed) int
func SetupInfoListBytes(buf []byte, list []SetupInfo) int
func SetupInfoListSize(list []SetupInfo) int
func SetupInfoRead(buf []byte, v *SetupInfo) int
func SetupInfoReadList(buf []byte, dest []SetupInfo) int
func SetupRequestListBytes(buf []byte, list []SetupRequest) int
func SetupRequestListSize(list []SetupRequest) int
func SetupRequestRead(buf []byte, v *SetupRequest) int
func SetupRequestReadList(buf []byte, dest []SetupRequest) int
func StrListBytes(buf []byte, list []Str) int
func StrListSize(list []Str) int
func StrRead(buf []byte, v *Str) int
func StrReadList(buf []byte, dest []Str) int
func TimecoordListBytes(buf []byte, list []Timecoord) int
func TimecoordRead(buf []byte, v *Timecoord) int
func TimecoordReadList(buf []byte, dest []Timecoord) int
func UnmapNotifyEventNew(buf []byte) xgb.Event
func ValueErrorNew(buf []byte) xgb.Error
func VisibilityNotifyEventNew(buf []byte) xgb.Event
func VisualInfoListBytes(buf []byte, list []VisualInfo) int
func VisualInfoRead(buf []byte, v *VisualInfo) int
func VisualInfoReadList(buf []byte, dest []VisualInfo) int
func WindowErrorNew(buf []byte) xgb.Error
type AccessError
    func (err AccessError) BadId() uint32
    func (err AccessError) Error() string
    func (err AccessError) SequenceId() uint16
type AllocColorCellsCookie
    func AllocColorCells(c *xgb.Conn, Contiguous bool, Cmap Colormap, Colors uint16, Planes uint16) AllocColorCellsCookie
    func AllocColorCellsUnchecked(c *xgb.Conn, Contiguous bool, Cmap Colormap, Colors uint16, Planes uint16) AllocColorCellsCookie
    func (cook AllocColorCellsCookie) Reply() (*AllocColorCellsReply, error)
type AllocColorCellsReply
type AllocColorCookie
    func AllocColor(c *xgb.Conn, Cmap Colormap, Red uint16, Green uint16, Blue uint16) AllocColorCookie
    func AllocColorUnchecked(c *xgb.Conn, Cmap Colormap, Red uint16, Green uint16, Blue uint16) AllocColorCookie
    func (cook AllocColorCookie) Reply() (*AllocColorReply, error)
type AllocColorPlanesCookie
    func AllocColorPlanes(c *xgb.Conn, Contiguous bool, Cmap Colormap, Colors uint16, Reds uint16, Greens uint16, Blues uint16) AllocColorPlanesCookie
    func AllocColorPlanesUnchecked(c *xgb.Conn, Contiguous bool, Cmap Colormap, Colors uint16, Reds uint16, Greens uint16, Blues uint16) AllocColorPlanesCookie
    func (cook AllocColorPlanesCookie) Reply() (*AllocColorPlanesReply, error)
type AllocColorPlanesReply
type AllocColorReply
type AllocError
    func (err AllocError) BadId() uint32
    func (err AllocError) Error() string
    func (err AllocError) SequenceId() uint16
type AllocNamedColorCookie
    func AllocNamedColor(c *xgb.Conn, Cmap Colormap, NameLen uint16, Name string) AllocNamedColorCookie
    func AllocNamedColorUnchecked(c *xgb.Conn, Cmap Colormap, NameLen uint16, Name string) AllocNamedColorCookie
    func (cook AllocNamedColorCookie) Reply() (*AllocNamedColorReply, error)
type AllocNamedColorReply
type AllowEventsCookie
    func AllowEvents(c *xgb.Conn, Mode byte, Time Timestamp) AllowEventsCookie
    func AllowEventsChecked(c *xgb.Conn, Mode byte, Time Timestamp) AllowEventsCookie
    func (cook AllowEventsCookie) Check() error
type Arc
    func (v Arc) Bytes() []byte
type Atom
    func NewAtomId(c *xgb.Conn) (Atom, error)
type AtomError
    func (err AtomError) BadId() uint32
    func (err AtomError) Error() string
    func (err AtomError) SequenceId() uint16
type BellCookie
    func Bell(c *xgb.Conn, Percent int8) BellCookie
    func BellChecked(c *xgb.Conn, Percent int8) BellCookie
    func (cook BellCookie) Check() error
type Button
type ButtonPressEvent
    func (v ButtonPressEvent) Bytes() []byte
    func (v ButtonPressEvent) SequenceId() uint16
    func (v ButtonPressEvent) String() string
type ButtonReleaseEvent
    func (v ButtonReleaseEvent) Bytes() []byte
    func (v ButtonReleaseEvent) SequenceId() uint16
    func (v ButtonReleaseEvent) String() string
type ChangeActivePointerGrabCookie
    func ChangeActivePointerGrab(c *xgb.Conn, Cursor Cursor, Time Timestamp, EventMask uint16) ChangeActivePointerGrabCookie
    func ChangeActivePointerGrabChecked(c *xgb.Conn, Cursor Cursor, Time Timestamp, EventMask uint16) ChangeActivePointerGrabCookie
    func (cook ChangeActivePointerGrabCookie) Check() error
type ChangeGCCookie
    func ChangeGC(c *xgb.Conn, Gc Gcontext, ValueMask uint32, ValueList []uint32) ChangeGCCookie
    func ChangeGCChecked(c *xgb.Conn, Gc Gcontext, ValueMask uint32, ValueList []uint32) ChangeGCCookie
    func (cook ChangeGCCookie) Check() error
type ChangeHostsCookie
    func ChangeHosts(c *xgb.Conn, Mode byte, Family byte, AddressLen uint16, Address []byte) ChangeHostsCookie
    func ChangeHostsChecked(c *xgb.Conn, Mode byte, Family byte, AddressLen uint16, Address []byte) ChangeHostsCookie
    func (cook ChangeHostsCookie) Check() error
type ChangeKeyboardControlCookie
    func ChangeKeyboardControl(c *xgb.Conn, ValueMask uint32, ValueList []uint32) ChangeKeyboardControlCookie
    func ChangeKeyboardControlChecked(c *xgb.Conn, ValueMask uint32, ValueList []uint32) ChangeKeyboardControlCookie
    func (cook ChangeKeyboardControlCookie) Check() error
type ChangeKeyboardMappingCookie
    func ChangeKeyboardMapping(c *xgb.Conn, KeycodeCount byte, FirstKeycode Keycode, KeysymsPerKeycode byte, Keysyms []Keysym) ChangeKeyboardMappingCookie
    func ChangeKeyboardMappingChecked(c *xgb.Conn, KeycodeCount byte, FirstKeycode Keycode, KeysymsPerKeycode byte, Keysyms []Keysym) ChangeKeyboardMappingCookie
    func (cook ChangeKeyboardMappingCookie) Check() error
type ChangePointerControlCookie
    func ChangePointerControl(c *xgb.Conn, AccelerationNumerator int16, AccelerationDenominator int16, Threshold int16, DoAcceleration bool, DoThreshold bool) ChangePointerControlCookie
    func ChangePointerControlChecked(c *xgb.Conn, AccelerationNumerator int16, AccelerationDenominator int16, Threshold int16, DoAcceleration bool, DoThreshold bool) ChangePointerControlCookie
    func (cook ChangePointerControlCookie) Check() error
type ChangePropertyCookie
    func ChangeProperty(c *xgb.Conn, Mode byte, Window Window, Property Atom, Type Atom, Format byte, DataLen uint32, Data []byte) ChangePropertyCookie
    func ChangePropertyChecked(c *xgb.Conn, Mode byte, Window Window, Property Atom, Type Atom, Format byte, DataLen uint32, Data []byte) ChangePropertyCookie
    func (cook ChangePropertyCookie) Check() error
type ChangeSaveSetCookie
    func ChangeSaveSet(c *xgb.Conn, Mode byte, Window Window) ChangeSaveSetCookie
    func ChangeSaveSetChecked(c *xgb.Conn, Mode byte, Window Window) ChangeSaveSetCookie
    func (cook ChangeSaveSetCookie) Check() error
type ChangeWindowAttributesCookie
    func ChangeWindowAttributes(c *xgb.Conn, Window Window, ValueMask uint32, ValueList []uint32) ChangeWindowAttributesCookie
    func ChangeWindowAttributesChecked(c *xgb.Conn, Window Window, ValueMask uint32, ValueList []uint32) ChangeWindowAttributesCookie
    func (cook ChangeWindowAttributesCookie) Check() error
type Char2b
    func (v Char2b) Bytes() []byte
type Charinfo
    func (v Charinfo) Bytes() []byte
type CirculateNotifyEvent
    func (v CirculateNotifyEvent) Bytes() []byte
    func (v CirculateNotifyEvent) SequenceId() uint16
    func (v CirculateNotifyEvent) String() string
type CirculateRequestEvent
    func (v CirculateRequestEvent) Bytes() []byte
    func (v CirculateRequestEvent) SequenceId() uint16
    func (v CirculateRequestEvent) String() string
type CirculateWindowCookie
    func CirculateWindow(c *xgb.Conn, Direction byte, Window Window) CirculateWindowCookie
    func CirculateWindowChecked(c *xgb.Conn, Direction byte, Window Window) CirculateWindowCookie
    func (cook CirculateWindowCookie) Check() error
type ClearAreaCookie
    func ClearArea(c *xgb.Conn, Exposures bool, Window Window, X int16, Y int16, Width uint16, Height uint16) ClearAreaCookie
    func ClearAreaChecked(c *xgb.Conn, Exposures bool, Window Window, X int16, Y int16, Width uint16, Height uint16) ClearAreaCookie
    func (cook ClearAreaCookie) Check() error
type ClientMessageDataUnion
    func ClientMessageDataUnionData16New(Data16 []uint16) ClientMessageDataUnion
    func ClientMessageDataUnionData32New(Data32 []uint32) ClientMessageDataUnion
    func ClientMessageDataUnionData8New(Data8 []byte) ClientMessageDataUnion
    func (v ClientMessageDataUnion) Bytes() []byte
type ClientMessageEvent
    func (v ClientMessageEvent) Bytes() []byte
    func (v ClientMessageEvent) SequenceId() uint16
    func (v ClientMessageEvent) String() string
type CloseFontCookie
    func CloseFont(c *xgb.Conn, Font Font) CloseFontCookie
    func CloseFontChecked(c *xgb.Conn, Font Font) CloseFontCookie
    func (cook CloseFontCookie) Check() error
type Coloritem
    func (v Coloritem) Bytes() []byte
type Colormap
    func NewColormapId(c *xgb.Conn) (Colormap, error)
type ColormapError
    func (err ColormapError) BadId() uint32
    func (err ColormapError) Error() string
    func (err ColormapError) SequenceId() uint16
type ColormapNotifyEvent
    func (v ColormapNotifyEvent) Bytes() []byte
    func (v ColormapNotifyEvent) SequenceId() uint16
    func (v ColormapNotifyEvent) String() string
type ConfigureNotifyEvent
    func (v ConfigureNotifyEvent) Bytes() []byte
    func (v ConfigureNotifyEvent) SequenceId() uint16
    func (v ConfigureNotifyEvent) String() string
type ConfigureRequestEvent
    func (v ConfigureRequestEvent) Bytes() []byte
    func (v ConfigureRequestEvent) SequenceId() uint16
    func (v ConfigureRequestEvent) String() string
type ConfigureWindowCookie
    func ConfigureWindow(c *xgb.Conn, Window Window, ValueMask uint16, ValueList []uint32) ConfigureWindowCookie
    func ConfigureWindowChecked(c *xgb.Conn, Window Window, ValueMask uint16, ValueList []uint32) ConfigureWindowCookie
    func (cook ConfigureWindowCookie) Check() error
type ConvertSelectionCookie
    func ConvertSelection(c *xgb.Conn, Requestor Window, Selection Atom, Target Atom, Property Atom, Time Timestamp) ConvertSelectionCookie
    func ConvertSelectionChecked(c *xgb.Conn, Requestor Window, Selection Atom, Target Atom, Property Atom, Time Timestamp) ConvertSelectionCookie
    func (cook ConvertSelectionCookie) Check() error
type CopyAreaCookie
    func CopyArea(c *xgb.Conn, SrcDrawable Drawable, DstDrawable Drawable, Gc Gcontext, SrcX int16, SrcY int16, DstX int16, DstY int16, Width uint16, Height uint16) CopyAreaCookie
    func CopyAreaChecked(c *xgb.Conn, SrcDrawable Drawable, DstDrawable Drawable, Gc Gcontext, SrcX int16, SrcY int16, DstX int16, DstY int16, Width uint16, Height uint16) CopyAreaCookie
    func (cook CopyAreaCookie) Check() error
type CopyColormapAndFreeCookie
    func CopyColormapAndFree(c *xgb.Conn, Mid Colormap, SrcCmap Colormap) CopyColormapAndFreeCookie
    func CopyColormapAndFreeChecked(c *xgb.Conn, Mid Colormap, SrcCmap Colormap) CopyColormapAndFreeCookie
    func (cook CopyColormapAndFreeCookie) Check() error
type CopyGCCookie
    func CopyGC(c *xgb.Conn, SrcGc Gcontext, DstGc Gcontext, ValueMask uint32) CopyGCCookie
    func CopyGCChecked(c *xgb.Conn, SrcGc Gcontext, DstGc Gcontext, ValueMask uint32) CopyGCCookie
    func (cook CopyGCCookie) Check() error
type CopyPlaneCookie
    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
    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
    func (cook CopyPlaneCookie) Check() error
type CreateColormapCookie
    func CreateColormap(c *xgb.Conn, Alloc byte, Mid Colormap, Window Window, Visual Visualid) CreateColormapCookie
    func CreateColormapChecked(c *xgb.Conn, Alloc byte, Mid Colormap, Window Window, Visual Visualid) CreateColormapCookie
    func (cook CreateColormapCookie) Check() error
type CreateCursorCookie
    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
    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
    func (cook CreateCursorCookie) Check() error
type CreateGCCookie
    func CreateGC(c *xgb.Conn, Cid Gcontext, Drawable Drawable, ValueMask uint32, ValueList []uint32) CreateGCCookie
    func CreateGCChecked(c *xgb.Conn, Cid Gcontext, Drawable Drawable, ValueMask uint32, ValueList []uint32) CreateGCCookie
    func (cook CreateGCCookie) Check() error
type CreateGlyphCursorCookie
    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
    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
    func (cook CreateGlyphCursorCookie) Check() error
type CreateNotifyEvent
    func (v CreateNotifyEvent) Bytes() []byte
    func (v CreateNotifyEvent) SequenceId() uint16
    func (v CreateNotifyEvent) String() string
type CreatePixmapCookie
    func CreatePixmap(c *xgb.Conn, Depth byte, Pid Pixmap, Drawable Drawable, Width uint16, Height uint16) CreatePixmapCookie
    func CreatePixmapChecked(c *xgb.Conn, Depth byte, Pid Pixmap, Drawable Drawable, Width uint16, Height uint16) CreatePixmapCookie
    func (cook CreatePixmapCookie) Check() error
type CreateWindowCookie
    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
    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
    func (cook CreateWindowCookie) Check() error
type Cursor
    func NewCursorId(c *xgb.Conn) (Cursor, error)
type CursorError
    func (err CursorError) BadId() uint32
    func (err CursorError) Error() string
    func (err CursorError) SequenceId() uint16
type DeletePropertyCookie
    func DeleteProperty(c *xgb.Conn, Window Window, Property Atom) DeletePropertyCookie
    func DeletePropertyChecked(c *xgb.Conn, Window Window, Property Atom) DeletePropertyCookie
    func (cook DeletePropertyCookie) Check() error
type DepthInfo
    func (v DepthInfo) Bytes() []byte
type DestroyNotifyEvent
    func (v DestroyNotifyEvent) Bytes() []byte
    func (v DestroyNotifyEvent) SequenceId() uint16
    func (v DestroyNotifyEvent) String() string
type DestroySubwindowsCookie
    func DestroySubwindows(c *xgb.Conn, Window Window) DestroySubwindowsCookie
    func DestroySubwindowsChecked(c *xgb.Conn, Window Window) DestroySubwindowsCookie
    func (cook DestroySubwindowsCookie) Check() error
type DestroyWindowCookie
    func DestroyWindow(c *xgb.Conn, Window Window) DestroyWindowCookie
    func DestroyWindowChecked(c *xgb.Conn, Window Window) DestroyWindowCookie
    func (cook DestroyWindowCookie) Check() error
type Drawable
    func NewDrawableId(c *xgb.Conn) (Drawable, error)
type DrawableError
    func (err DrawableError) BadId() uint32
    func (err DrawableError) Error() string
    func (err DrawableError) SequenceId() uint16
type EnterNotifyEvent
    func (v EnterNotifyEvent) Bytes() []byte
    func (v EnterNotifyEvent) SequenceId() uint16
    func (v EnterNotifyEvent) String() string
type ExposeEvent
    func (v ExposeEvent) Bytes() []byte
    func (v ExposeEvent) SequenceId() uint16
    func (v ExposeEvent) String() string
type FillPolyCookie
    func FillPoly(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Shape byte, CoordinateMode byte, Points []Point) FillPolyCookie
    func FillPolyChecked(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Shape byte, CoordinateMode byte, Points []Point) FillPolyCookie
    func (cook FillPolyCookie) Check() error
type FocusInEvent
    func (v FocusInEvent) Bytes() []byte
    func (v FocusInEvent) SequenceId() uint16
    func (v FocusInEvent) String() string
type FocusOutEvent
    func (v FocusOutEvent) Bytes() []byte
    func (v FocusOutEvent) SequenceId() uint16
    func (v FocusOutEvent) String() string
type Font
    func NewFontId(c *xgb.Conn) (Font, error)
type FontError
    func (err FontError) BadId() uint32
    func (err FontError) Error() string
    func (err FontError) SequenceId() uint16
type Fontable
    func NewFontableId(c *xgb.Conn) (Fontable, error)
type Fontprop
    func (v Fontprop) Bytes() []byte
type ForceScreenSaverCookie
    func ForceScreenSaver(c *xgb.Conn, Mode byte) ForceScreenSaverCookie
    func ForceScreenSaverChecked(c *xgb.Conn, Mode byte) ForceScreenSaverCookie
    func (cook ForceScreenSaverCookie) Check() error
type Format
    func (v Format) Bytes() []byte
type FreeColormapCookie
    func FreeColormap(c *xgb.Conn, Cmap Colormap) FreeColormapCookie
    func FreeColormapChecked(c *xgb.Conn, Cmap Colormap) FreeColormapCookie
    func (cook FreeColormapCookie) Check() error
type FreeColorsCookie
    func FreeColors(c *xgb.Conn, Cmap Colormap, PlaneMask uint32, Pixels []uint32) FreeColorsCookie
    func FreeColorsChecked(c *xgb.Conn, Cmap Colormap, PlaneMask uint32, Pixels []uint32) FreeColorsCookie
    func (cook FreeColorsCookie) Check() error
type FreeCursorCookie
    func FreeCursor(c *xgb.Conn, Cursor Cursor) FreeCursorCookie
    func FreeCursorChecked(c *xgb.Conn, Cursor Cursor) FreeCursorCookie
    func (cook FreeCursorCookie) Check() error
type FreeGCCookie
    func FreeGC(c *xgb.Conn, Gc Gcontext) FreeGCCookie
    func FreeGCChecked(c *xgb.Conn, Gc Gcontext) FreeGCCookie
    func (cook FreeGCCookie) Check() error
type FreePixmapCookie
    func FreePixmap(c *xgb.Conn, Pixmap Pixmap) FreePixmapCookie
    func FreePixmapChecked(c *xgb.Conn, Pixmap Pixmap) FreePixmapCookie
    func (cook FreePixmapCookie) Check() error
type GContextError
    func (err GContextError) BadId() uint32
    func (err GContextError) Error() string
    func (err GContextError) SequenceId() uint16
type Gcontext
    func NewGcontextId(c *xgb.Conn) (Gcontext, error)
type GeGenericEvent
    func (v GeGenericEvent) Bytes() []byte
    func (v GeGenericEvent) SequenceId() uint16
    func (v GeGenericEvent) String() string
type GetAtomNameCookie
    func GetAtomName(c *xgb.Conn, Atom Atom) GetAtomNameCookie
    func GetAtomNameUnchecked(c *xgb.Conn, Atom Atom) GetAtomNameCookie
    func (cook GetAtomNameCookie) Reply() (*GetAtomNameReply, error)
type GetAtomNameReply
type GetFontPathCookie
    func GetFontPath(c *xgb.Conn) GetFontPathCookie
    func GetFontPathUnchecked(c *xgb.Conn) GetFontPathCookie
    func (cook GetFontPathCookie) Reply() (*GetFontPathReply, error)
type GetFontPathReply
type GetGeometryCookie
    func GetGeometry(c *xgb.Conn, Drawable Drawable) GetGeometryCookie
    func GetGeometryUnchecked(c *xgb.Conn, Drawable Drawable) GetGeometryCookie
    func (cook GetGeometryCookie) Reply() (*GetGeometryReply, error)
type GetGeometryReply
type GetImageCookie
    func GetImage(c *xgb.Conn, Format byte, Drawable Drawable, X int16, Y int16, Width uint16, Height uint16, PlaneMask uint32) GetImageCookie
    func GetImageUnchecked(c *xgb.Conn, Format byte, Drawable Drawable, X int16, Y int16, Width uint16, Height uint16, PlaneMask uint32) GetImageCookie
    func (cook GetImageCookie) Reply() (*GetImageReply, error)
type GetImageReply
type GetInputFocusCookie
    func GetInputFocus(c *xgb.Conn) GetInputFocusCookie
    func GetInputFocusUnchecked(c *xgb.Conn) GetInputFocusCookie
    func (cook GetInputFocusCookie) Reply() (*GetInputFocusReply, error)
type GetInputFocusReply
type GetKeyboardControlCookie
    func GetKeyboardControl(c *xgb.Conn) GetKeyboardControlCookie
    func GetKeyboardControlUnchecked(c *xgb.Conn) GetKeyboardControlCookie
    func (cook GetKeyboardControlCookie) Reply() (*GetKeyboardControlReply, error)
type GetKeyboardControlReply
type GetKeyboardMappingCookie
    func GetKeyboardMapping(c *xgb.Conn, FirstKeycode Keycode, Count byte) GetKeyboardMappingCookie
    func GetKeyboardMappingUnchecked(c *xgb.Conn, FirstKeycode Keycode, Count byte) GetKeyboardMappingCookie
    func (cook GetKeyboardMappingCookie) Reply() (*GetKeyboardMappingReply, error)
type GetKeyboardMappingReply
type GetModifierMappingCookie
    func GetModifierMapping(c *xgb.Conn) GetModifierMappingCookie
    func GetModifierMappingUnchecked(c *xgb.Conn) GetModifierMappingCookie
    func (cook GetModifierMappingCookie) Reply() (*GetModifierMappingReply, error)
type GetModifierMappingReply
type GetMotionEventsCookie
    func GetMotionEvents(c *xgb.Conn, Window Window, Start Timestamp, Stop Timestamp) GetMotionEventsCookie
    func GetMotionEventsUnchecked(c *xgb.Conn, Window Window, Start Timestamp, Stop Timestamp) GetMotionEventsCookie
    func (cook GetMotionEventsCookie) Reply() (*GetMotionEventsReply, error)
type GetMotionEventsReply
type GetPointerControlCookie
    func GetPointerControl(c *xgb.Conn) GetPointerControlCookie
    func GetPointerControlUnchecked(c *xgb.Conn) GetPointerControlCookie
    func (cook GetPointerControlCookie) Reply() (*GetPointerControlReply, error)
type GetPointerControlReply
type GetPointerMappingCookie
    func GetPointerMapping(c *xgb.Conn) GetPointerMappingCookie
    func GetPointerMappingUnchecked(c *xgb.Conn) GetPointerMappingCookie
    func (cook GetPointerMappingCookie) Reply() (*GetPointerMappingReply, error)
type GetPointerMappingReply
type GetPropertyCookie
    func GetProperty(c *xgb.Conn, Delete bool, Window Window, Property Atom, Type Atom, LongOffset uint32, LongLength uint32) GetPropertyCookie
    func GetPropertyUnchecked(c *xgb.Conn, Delete bool, Window Window, Property Atom, Type Atom, LongOffset uint32, LongLength uint32) GetPropertyCookie
    func (cook GetPropertyCookie) Reply() (*GetPropertyReply, error)
type GetPropertyReply
type GetScreenSaverCookie
    func GetScreenSaver(c *xgb.Conn) GetScreenSaverCookie
    func GetScreenSaverUnchecked(c *xgb.Conn) GetScreenSaverCookie
    func (cook GetScreenSaverCookie) Reply() (*GetScreenSaverReply, error)
type GetScreenSaverReply
type GetSelectionOwnerCookie
    func GetSelectionOwner(c *xgb.Conn, Selection Atom) GetSelectionOwnerCookie
    func GetSelectionOwnerUnchecked(c *xgb.Conn, Selection Atom) GetSelectionOwnerCookie
    func (cook GetSelectionOwnerCookie) Reply() (*GetSelectionOwnerReply, error)
type GetSelectionOwnerReply
type GetWindowAttributesCookie
    func GetWindowAttributes(c *xgb.Conn, Window Window) GetWindowAttributesCookie
    func GetWindowAttributesUnchecked(c *xgb.Conn, Window Window) GetWindowAttributesCookie
    func (cook GetWindowAttributesCookie) Reply() (*GetWindowAttributesReply, error)
type GetWindowAttributesReply
type GrabButtonCookie
    func GrabButton(c *xgb.Conn, OwnerEvents bool, GrabWindow Window, EventMask uint16, PointerMode byte, KeyboardMode byte, ConfineTo Window, Cursor Cursor, Button byte, Modifiers uint16) GrabButtonCookie
    func GrabButtonChecked(c *xgb.Conn, OwnerEvents bool, GrabWindow Window, EventMask uint16, PointerMode byte, KeyboardMode byte, ConfineTo Window, Cursor Cursor, Button byte, Modifiers uint16) GrabButtonCookie
    func (cook GrabButtonCookie) Check() error
type GrabKeyCookie
    func GrabKey(c *xgb.Conn, OwnerEvents bool, GrabWindow Window, Modifiers uint16, Key Keycode, PointerMode byte, KeyboardMode byte) GrabKeyCookie
    func GrabKeyChecked(c *xgb.Conn, OwnerEvents bool, GrabWindow Window, Modifiers uint16, Key Keycode, PointerMode byte, KeyboardMode byte) GrabKeyCookie
    func (cook GrabKeyCookie) Check() error
type GrabKeyboardCookie
    func GrabKeyboard(c *xgb.Conn, OwnerEvents bool, GrabWindow Window, Time Timestamp, PointerMode byte, KeyboardMode byte) GrabKeyboardCookie
    func GrabKeyboardUnchecked(c *xgb.Conn, OwnerEvents bool, GrabWindow Window, Time Timestamp, PointerMode byte, KeyboardMode byte) GrabKeyboardCookie
    func (cook GrabKeyboardCookie) Reply() (*GrabKeyboardReply, error)
type GrabKeyboardReply
type GrabPointerCookie
    func GrabPointer(c *xgb.Conn, OwnerEvents bool, GrabWindow Window, EventMask uint16, PointerMode byte, KeyboardMode byte, ConfineTo Window, Cursor Cursor, Time Timestamp) GrabPointerCookie
    func GrabPointerUnchecked(c *xgb.Conn, OwnerEvents bool, GrabWindow Window, EventMask uint16, PointerMode byte, KeyboardMode byte, ConfineTo Window, Cursor Cursor, Time Timestamp) GrabPointerCookie
    func (cook GrabPointerCookie) Reply() (*GrabPointerReply, error)
type GrabPointerReply
type GrabServerCookie
    func GrabServer(c *xgb.Conn) GrabServerCookie
    func GrabServerChecked(c *xgb.Conn) GrabServerCookie
    func (cook GrabServerCookie) Check() error
type GraphicsExposureEvent
    func (v GraphicsExposureEvent) Bytes() []byte
    func (v GraphicsExposureEvent) SequenceId() uint16
    func (v GraphicsExposureEvent) String() string
type GravityNotifyEvent
    func (v GravityNotifyEvent) Bytes() []byte
    func (v GravityNotifyEvent) SequenceId() uint16
    func (v GravityNotifyEvent) String() string
type Host
    func (v Host) Bytes() []byte
type IDChoiceError
    func (err IDChoiceError) BadId() uint32
    func (err IDChoiceError) Error() string
    func (err IDChoiceError) SequenceId() uint16
type ImageText16Cookie
    func ImageText16(c *xgb.Conn, StringLen byte, Drawable Drawable, Gc Gcontext, X int16, Y int16, String []Char2b) ImageText16Cookie
    func ImageText16Checked(c *xgb.Conn, StringLen byte, Drawable Drawable, Gc Gcontext, X int16, Y int16, String []Char2b) ImageText16Cookie
    func (cook ImageText16Cookie) Check() error
type ImageText8Cookie
    func ImageText8(c *xgb.Conn, StringLen byte, Drawable Drawable, Gc Gcontext, X int16, Y int16, String string) ImageText8Cookie
    func ImageText8Checked(c *xgb.Conn, StringLen byte, Drawable Drawable, Gc Gcontext, X int16, Y int16, String string) ImageText8Cookie
    func (cook ImageText8Cookie) Check() error
type ImplementationError
    func (err ImplementationError) BadId() uint32
    func (err ImplementationError) Error() string
    func (err ImplementationError) SequenceId() uint16
type InstallColormapCookie
    func InstallColormap(c *xgb.Conn, Cmap Colormap) InstallColormapCookie
    func InstallColormapChecked(c *xgb.Conn, Cmap Colormap) InstallColormapCookie
    func (cook InstallColormapCookie) Check() error
type InternAtomCookie
    func InternAtom(c *xgb.Conn, OnlyIfExists bool, NameLen uint16, Name string) InternAtomCookie
    func InternAtomUnchecked(c *xgb.Conn, OnlyIfExists bool, NameLen uint16, Name string) InternAtomCookie
    func (cook InternAtomCookie) Reply() (*InternAtomReply, error)
type InternAtomReply
type KeyPressEvent
    func (v KeyPressEvent) Bytes() []byte
    func (v KeyPressEvent) SequenceId() uint16
    func (v KeyPressEvent) String() string
type KeyReleaseEvent
    func (v KeyReleaseEvent) Bytes() []byte
    func (v KeyReleaseEvent) SequenceId() uint16
    func (v KeyReleaseEvent) String() string
type Keycode
type KeymapNotifyEvent
    func (v KeymapNotifyEvent) Bytes() []byte
    func (v KeymapNotifyEvent) SequenceId() uint16
    func (v KeymapNotifyEvent) String() string
type Keysym
type KillClientCookie
    func KillClient(c *xgb.Conn, Resource uint32) KillClientCookie
    func KillClientChecked(c *xgb.Conn, Resource uint32) KillClientCookie
    func (cook KillClientCookie) Check() error
type LeaveNotifyEvent
    func (v LeaveNotifyEvent) Bytes() []byte
    func (v LeaveNotifyEvent) SequenceId() uint16
    func (v LeaveNotifyEvent) String() string
type LengthError
    func (err LengthError) BadId() uint32
    func (err LengthError) Error() string
    func (err LengthError) SequenceId() uint16
type ListExtensionsCookie
    func ListExtensions(c *xgb.Conn) ListExtensionsCookie
    func ListExtensionsUnchecked(c *xgb.Conn) ListExtensionsCookie
    func (cook ListExtensionsCookie) Reply() (*ListExtensionsReply, error)
type ListExtensionsReply
type ListFontsCookie
    func ListFonts(c *xgb.Conn, MaxNames uint16, PatternLen uint16, Pattern string) ListFontsCookie
    func ListFontsUnchecked(c *xgb.Conn, MaxNames uint16, PatternLen uint16, Pattern string) ListFontsCookie
    func (cook ListFontsCookie) Reply() (*ListFontsReply, error)
type ListFontsReply
type ListFontsWithInfoCookie
    func ListFontsWithInfo(c *xgb.Conn, MaxNames uint16, PatternLen uint16, Pattern string) ListFontsWithInfoCookie
    func ListFontsWithInfoUnchecked(c *xgb.Conn, MaxNames uint16, PatternLen uint16, Pattern string) ListFontsWithInfoCookie
    func (cook ListFontsWithInfoCookie) Reply() (*ListFontsWithInfoReply, error)
type ListFontsWithInfoReply
type ListHostsCookie
    func ListHosts(c *xgb.Conn) ListHostsCookie
    func ListHostsUnchecked(c *xgb.Conn) ListHostsCookie
    func (cook ListHostsCookie) Reply() (*ListHostsReply, error)
type ListHostsReply
type ListInstalledColormapsCookie
    func ListInstalledColormaps(c *xgb.Conn, Window Window) ListInstalledColormapsCookie
    func ListInstalledColormapsUnchecked(c *xgb.Conn, Window Window) ListInstalledColormapsCookie
    func (cook ListInstalledColormapsCookie) Reply() (*ListInstalledColormapsReply, error)
type ListInstalledColormapsReply
type ListPropertiesCookie
    func ListProperties(c *xgb.Conn, Window Window) ListPropertiesCookie
    func ListPropertiesUnchecked(c *xgb.Conn, Window Window) ListPropertiesCookie
    func (cook ListPropertiesCookie) Reply() (*ListPropertiesReply, error)
type ListPropertiesReply
type LookupColorCookie
    func LookupColor(c *xgb.Conn, Cmap Colormap, NameLen uint16, Name string) LookupColorCookie
    func LookupColorUnchecked(c *xgb.Conn, Cmap Colormap, NameLen uint16, Name string) LookupColorCookie
    func (cook LookupColorCookie) Reply() (*LookupColorReply, error)
type LookupColorReply
type MapNotifyEvent
    func (v MapNotifyEvent) Bytes() []byte
    func (v MapNotifyEvent) SequenceId() uint16
    func (v MapNotifyEvent) String() string
type MapRequestEvent
    func (v MapRequestEvent) Bytes() []byte
    func (v MapRequestEvent) SequenceId() uint16
    func (v MapRequestEvent) String() string
type MapSubwindowsCookie
    func MapSubwindows(c *xgb.Conn, Window Window) MapSubwindowsCookie
    func MapSubwindowsChecked(c *xgb.Conn, Window Window) MapSubwindowsCookie
    func (cook MapSubwindowsCookie) Check() error
type MapWindowCookie
    func MapWindow(c *xgb.Conn, Window Window) MapWindowCookie
    func MapWindowChecked(c *xgb.Conn, Window Window) MapWindowCookie
    func (cook MapWindowCookie) Check() error
type MappingNotifyEvent
    func (v MappingNotifyEvent) Bytes() []byte
    func (v MappingNotifyEvent) SequenceId() uint16
    func (v MappingNotifyEvent) String() string
type MatchError
    func (err MatchError) BadId() uint32
    func (err MatchError) Error() string
    func (err MatchError) SequenceId() uint16
type MotionNotifyEvent
    func (v MotionNotifyEvent) Bytes() []byte
    func (v MotionNotifyEvent) SequenceId() uint16
    func (v MotionNotifyEvent) String() string
type NameError
    func (err NameError) BadId() uint32
    func (err NameError) Error() string
    func (err NameError) SequenceId() uint16
type NoExposureEvent
    func (v NoExposureEvent) Bytes() []byte
    func (v NoExposureEvent) SequenceId() uint16
    func (v NoExposureEvent) String() string
type NoOperationCookie
    func NoOperation(c *xgb.Conn) NoOperationCookie
    func NoOperationChecked(c *xgb.Conn) NoOperationCookie
    func (cook NoOperationCookie) Check() error
type OpenFontCookie
    func OpenFont(c *xgb.Conn, Fid Font, NameLen uint16, Name string) OpenFontCookie
    func OpenFontChecked(c *xgb.Conn, Fid Font, NameLen uint16, Name string) OpenFontCookie
    func (cook OpenFontCookie) Check() error
type Pixmap
    func NewPixmapId(c *xgb.Conn) (Pixmap, error)
type PixmapError
    func (err PixmapError) BadId() uint32
    func (err PixmapError) Error() string
    func (err PixmapError) SequenceId() uint16
type Point
    func (v Point) Bytes() []byte
type PolyArcCookie
    func PolyArc(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Arcs []Arc) PolyArcCookie
    func PolyArcChecked(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Arcs []Arc) PolyArcCookie
    func (cook PolyArcCookie) Check() error
type PolyFillArcCookie
    func PolyFillArc(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Arcs []Arc) PolyFillArcCookie
    func PolyFillArcChecked(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Arcs []Arc) PolyFillArcCookie
    func (cook PolyFillArcCookie) Check() error
type PolyFillRectangleCookie
    func PolyFillRectangle(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Rectangles []Rectangle) PolyFillRectangleCookie
    func PolyFillRectangleChecked(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Rectangles []Rectangle) PolyFillRectangleCookie
    func (cook PolyFillRectangleCookie) Check() error
type PolyLineCookie
    func PolyLine(c *xgb.Conn, CoordinateMode byte, Drawable Drawable, Gc Gcontext, Points []Point) PolyLineCookie
    func PolyLineChecked(c *xgb.Conn, CoordinateMode byte, Drawable Drawable, Gc Gcontext, Points []Point) PolyLineCookie
    func (cook PolyLineCookie) Check() error
type PolyPointCookie
    func PolyPoint(c *xgb.Conn, CoordinateMode byte, Drawable Drawable, Gc Gcontext, Points []Point) PolyPointCookie
    func PolyPointChecked(c *xgb.Conn, CoordinateMode byte, Drawable Drawable, Gc Gcontext, Points []Point) PolyPointCookie
    func (cook PolyPointCookie) Check() error
type PolyRectangleCookie
    func PolyRectangle(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Rectangles []Rectangle) PolyRectangleCookie
    func PolyRectangleChecked(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Rectangles []Rectangle) PolyRectangleCookie
    func (cook PolyRectangleCookie) Check() error
type PolySegmentCookie
    func PolySegment(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Segments []Segment) PolySegmentCookie
    func PolySegmentChecked(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Segments []Segment) PolySegmentCookie
    func (cook PolySegmentCookie) Check() error
type PolyText16Cookie
    func PolyText16(c *xgb.Conn, Drawable Drawable, Gc Gcontext, X int16, Y int16, Items []byte) PolyText16Cookie
    func PolyText16Checked(c *xgb.Conn, Drawable Drawable, Gc Gcontext, X int16, Y int16, Items []byte) PolyText16Cookie
    func (cook PolyText16Cookie) Check() error
type PolyText8Cookie
    func PolyText8(c *xgb.Conn, Drawable Drawable, Gc Gcontext, X int16, Y int16, Items []byte) PolyText8Cookie
    func PolyText8Checked(c *xgb.Conn, Drawable Drawable, Gc Gcontext, X int16, Y int16, Items []byte) PolyText8Cookie
    func (cook PolyText8Cookie) Check() error
type PropertyNotifyEvent
    func (v PropertyNotifyEvent) Bytes() []byte
    func (v PropertyNotifyEvent) SequenceId() uint16
    func (v PropertyNotifyEvent) String() string
type PutImageCookie
    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
    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
    func (cook PutImageCookie) Check() error
type QueryBestSizeCookie
    func QueryBestSize(c *xgb.Conn, Class byte, Drawable Drawable, Width uint16, Height uint16) QueryBestSizeCookie
    func QueryBestSizeUnchecked(c *xgb.Conn, Class byte, Drawable Drawable, Width uint16, Height uint16) QueryBestSizeCookie
    func (cook QueryBestSizeCookie) Reply() (*QueryBestSizeReply, error)
type QueryBestSizeReply
type QueryColorsCookie
    func QueryColors(c *xgb.Conn, Cmap Colormap, Pixels []uint32) QueryColorsCookie
    func QueryColorsUnchecked(c *xgb.Conn, Cmap Colormap, Pixels []uint32) QueryColorsCookie
    func (cook QueryColorsCookie) Reply() (*QueryColorsReply, error)
type QueryColorsReply
type QueryExtensionCookie
    func QueryExtension(c *xgb.Conn, NameLen uint16, Name string) QueryExtensionCookie
    func QueryExtensionUnchecked(c *xgb.Conn, NameLen uint16, Name string) QueryExtensionCookie
    func (cook QueryExtensionCookie) Reply() (*QueryExtensionReply, error)
type QueryExtensionReply
type QueryFontCookie
    func QueryFont(c *xgb.Conn, Font Fontable) QueryFontCookie
    func QueryFontUnchecked(c *xgb.Conn, Font Fontable) QueryFontCookie
    func (cook QueryFontCookie) Reply() (*QueryFontReply, error)
type QueryFontReply
type QueryKeymapCookie
    func QueryKeymap(c *xgb.Conn) QueryKeymapCookie
    func QueryKeymapUnchecked(c *xgb.Conn) QueryKeymapCookie
    func (cook QueryKeymapCookie) Reply() (*QueryKeymapReply, error)
type QueryKeymapReply
type QueryPointerCookie
    func QueryPointer(c *xgb.Conn, Window Window) QueryPointerCookie
    func QueryPointerUnchecked(c *xgb.Conn, Window Window) QueryPointerCookie
    func (cook QueryPointerCookie) Reply() (*QueryPointerReply, error)
type QueryPointerReply
type QueryTextExtentsCookie
    func QueryTextExtents(c *xgb.Conn, Font Fontable, String []Char2b, StringLen uint16) QueryTextExtentsCookie
    func QueryTextExtentsUnchecked(c *xgb.Conn, Font Fontable, String []Char2b, StringLen uint16) QueryTextExtentsCookie
    func (cook QueryTextExtentsCookie) Reply() (*QueryTextExtentsReply, error)
type QueryTextExtentsReply
type QueryTreeCookie
    func QueryTree(c *xgb.Conn, Window Window) QueryTreeCookie
    func QueryTreeUnchecked(c *xgb.Conn, Window Window) QueryTreeCookie
    func (cook QueryTreeCookie) Reply() (*QueryTreeReply, error)
type QueryTreeReply
type RecolorCursorCookie
    func RecolorCursor(c *xgb.Conn, Cursor Cursor, ForeRed uint16, ForeGreen uint16, ForeBlue uint16, BackRed uint16, BackGreen uint16, BackBlue uint16) RecolorCursorCookie
    func RecolorCursorChecked(c *xgb.Conn, Cursor Cursor, ForeRed uint16, ForeGreen uint16, ForeBlue uint16, BackRed uint16, BackGreen uint16, BackBlue uint16) RecolorCursorCookie
    func (cook RecolorCursorCookie) Check() error
type Rectangle
    func (v Rectangle) Bytes() []byte
type ReparentNotifyEvent
    func (v ReparentNotifyEvent) Bytes() []byte
    func (v ReparentNotifyEvent) SequenceId() uint16
    func (v ReparentNotifyEvent) String() string
type ReparentWindowCookie
    func ReparentWindow(c *xgb.Conn, Window Window, Parent Window, X int16, Y int16) ReparentWindowCookie
    func ReparentWindowChecked(c *xgb.Conn, Window Window, Parent Window, X int16, Y int16) ReparentWindowCookie
    func (cook ReparentWindowCookie) Check() error
type RequestError
    func (err RequestError) BadId() uint32
    func (err RequestError) Error() string
    func (err RequestError) SequenceId() uint16
type ResizeRequestEvent
    func (v ResizeRequestEvent) Bytes() []byte
    func (v ResizeRequestEvent) SequenceId() uint16
    func (v ResizeRequestEvent) String() string
type Rgb
    func (v Rgb) Bytes() []byte
type RotatePropertiesCookie
    func RotateProperties(c *xgb.Conn, Window Window, AtomsLen uint16, Delta int16, Atoms []Atom) RotatePropertiesCookie
    func RotatePropertiesChecked(c *xgb.Conn, Window Window, AtomsLen uint16, Delta int16, Atoms []Atom) RotatePropertiesCookie
    func (cook RotatePropertiesCookie) Check() error
type ScreenInfo
    func (v ScreenInfo) Bytes() []byte
type Segment
    func (v Segment) Bytes() []byte
type SelectionClearEvent
    func (v SelectionClearEvent) Bytes() []byte
    func (v SelectionClearEvent) SequenceId() uint16
    func (v SelectionClearEvent) String() string
type SelectionNotifyEvent
    func (v SelectionNotifyEvent) Bytes() []byte
    func (v SelectionNotifyEvent) SequenceId() uint16
    func (v SelectionNotifyEvent) String() string
type SelectionRequestEvent
    func (v SelectionRequestEvent) Bytes() []byte
    func (v SelectionRequestEvent) SequenceId() uint16
    func (v SelectionRequestEvent) String() string
type SendEventCookie
    func SendEvent(c *xgb.Conn, Propagate bool, Destination Window, EventMask uint32, Event string) SendEventCookie
    func SendEventChecked(c *xgb.Conn, Propagate bool, Destination Window, EventMask uint32, Event string) SendEventCookie
    func (cook SendEventCookie) Check() error
type SetAccessControlCookie
    func SetAccessControl(c *xgb.Conn, Mode byte) SetAccessControlCookie
    func SetAccessControlChecked(c *xgb.Conn, Mode byte) SetAccessControlCookie
    func (cook SetAccessControlCookie) Check() error
type SetClipRectanglesCookie
    func SetClipRectangles(c *xgb.Conn, Ordering byte, Gc Gcontext, ClipXOrigin int16, ClipYOrigin int16, Rectangles []Rectangle) SetClipRectanglesCookie
    func SetClipRectanglesChecked(c *xgb.Conn, Ordering byte, Gc Gcontext, ClipXOrigin int16, ClipYOrigin int16, Rectangles []Rectangle) SetClipRectanglesCookie
    func (cook SetClipRectanglesCookie) Check() error
type SetCloseDownModeCookie
    func SetCloseDownMode(c *xgb.Conn, Mode byte) SetCloseDownModeCookie
    func SetCloseDownModeChecked(c *xgb.Conn, Mode byte) SetCloseDownModeCookie
    func (cook SetCloseDownModeCookie) Check() error
type SetDashesCookie
    func SetDashes(c *xgb.Conn, Gc Gcontext, DashOffset uint16, DashesLen uint16, Dashes []byte) SetDashesCookie
    func SetDashesChecked(c *xgb.Conn, Gc Gcontext, DashOffset uint16, DashesLen uint16, Dashes []byte) SetDashesCookie
    func (cook SetDashesCookie) Check() error
type SetFontPathCookie
    func SetFontPath(c *xgb.Conn, FontQty uint16, Font []Str) SetFontPathCookie
    func SetFontPathChecked(c *xgb.Conn, FontQty uint16, Font []Str) SetFontPathCookie
    func (cook SetFontPathCookie) Check() error
type SetInputFocusCookie
    func SetInputFocus(c *xgb.Conn, RevertTo byte, Focus Window, Time Timestamp) SetInputFocusCookie
    func SetInputFocusChecked(c *xgb.Conn, RevertTo byte, Focus Window, Time Timestamp) SetInputFocusCookie
    func (cook SetInputFocusCookie) Check() error
type SetModifierMappingCookie
    func SetModifierMapping(c *xgb.Conn, KeycodesPerModifier byte, Keycodes []Keycode) SetModifierMappingCookie
    func SetModifierMappingUnchecked(c *xgb.Conn, KeycodesPerModifier byte, Keycodes []Keycode) SetModifierMappingCookie
    func (cook SetModifierMappingCookie) Reply() (*SetModifierMappingReply, error)
type SetModifierMappingReply
type SetPointerMappingCookie
    func SetPointerMapping(c *xgb.Conn, MapLen byte, Map []byte) SetPointerMappingCookie
    func SetPointerMappingUnchecked(c *xgb.Conn, MapLen byte, Map []byte) SetPointerMappingCookie
    func (cook SetPointerMappingCookie) Reply() (*SetPointerMappingReply, error)
type SetPointerMappingReply
type SetScreenSaverCookie
    func SetScreenSaver(c *xgb.Conn, Timeout int16, Interval int16, PreferBlanking byte, AllowExposures byte) SetScreenSaverCookie
    func SetScreenSaverChecked(c *xgb.Conn, Timeout int16, Interval int16, PreferBlanking byte, AllowExposures byte) SetScreenSaverCookie
    func (cook SetScreenSaverCookie) Check() error
type SetSelectionOwnerCookie
    func SetSelectionOwner(c *xgb.Conn, Owner Window, Selection Atom, Time Timestamp) SetSelectionOwnerCookie
    func SetSelectionOwnerChecked(c *xgb.Conn, Owner Window, Selection Atom, Time Timestamp) SetSelectionOwnerCookie
    func (cook SetSelectionOwnerCookie) Check() error
type SetupAuthenticate
    func (v SetupAuthenticate) Bytes() []byte
type SetupFailed
    func (v SetupFailed) Bytes() []byte
type SetupInfo
    func Setup(c *xgb.Conn) *SetupInfo
    func (v SetupInfo) Bytes() []byte
    func (s *SetupInfo) DefaultScreen(c *xgb.Conn) *ScreenInfo
type SetupRequest
    func (v SetupRequest) Bytes() []byte
type StoreColorsCookie
    func StoreColors(c *xgb.Conn, Cmap Colormap, Items []Coloritem) StoreColorsCookie
    func StoreColorsChecked(c *xgb.Conn, Cmap Colormap, Items []Coloritem) StoreColorsCookie
    func (cook StoreColorsCookie) Check() error
type StoreNamedColorCookie
    func StoreNamedColor(c *xgb.Conn, Flags byte, Cmap Colormap, Pixel uint32, NameLen uint16, Name string) StoreNamedColorCookie
    func StoreNamedColorChecked(c *xgb.Conn, Flags byte, Cmap Colormap, Pixel uint32, NameLen uint16, Name string) StoreNamedColorCookie
    func (cook StoreNamedColorCookie) Check() error
type Str
    func (v Str) Bytes() []byte
type Timecoord
    func (v Timecoord) Bytes() []byte
type Timestamp
type TranslateCoordinatesCookie
    func TranslateCoordinates(c *xgb.Conn, SrcWindow Window, DstWindow Window, SrcX int16, SrcY int16) TranslateCoordinatesCookie
    func TranslateCoordinatesUnchecked(c *xgb.Conn, SrcWindow Window, DstWindow Window, SrcX int16, SrcY int16) TranslateCoordinatesCookie
    func (cook TranslateCoordinatesCookie) Reply() (*TranslateCoordinatesReply, error)
type TranslateCoordinatesReply
type UngrabButtonCookie
    func UngrabButton(c *xgb.Conn, Button byte, GrabWindow Window, Modifiers uint16) UngrabButtonCookie
    func UngrabButtonChecked(c *xgb.Conn, Button byte, GrabWindow Window, Modifiers uint16) UngrabButtonCookie
    func (cook UngrabButtonCookie) Check() error
type UngrabKeyCookie
    func UngrabKey(c *xgb.Conn, Key Keycode, GrabWindow Window, Modifiers uint16) UngrabKeyCookie
    func UngrabKeyChecked(c *xgb.Conn, Key Keycode, GrabWindow Window, Modifiers uint16) UngrabKeyCookie
    func (cook UngrabKeyCookie) Check() error
type UngrabKeyboardCookie
    func UngrabKeyboard(c *xgb.Conn, Time Timestamp) UngrabKeyboardCookie
    func UngrabKeyboardChecked(c *xgb.Conn, Time Timestamp) UngrabKeyboardCookie
    func (cook UngrabKeyboardCookie) Check() error
type UngrabPointerCookie
    func UngrabPointer(c *xgb.Conn, Time Timestamp) UngrabPointerCookie
    func UngrabPointerChecked(c *xgb.Conn, Time Timestamp) UngrabPointerCookie
    func (cook UngrabPointerCookie) Check() error
type UngrabServerCookie
    func UngrabServer(c *xgb.Conn) UngrabServerCookie
    func UngrabServerChecked(c *xgb.Conn) UngrabServerCookie
    func (cook UngrabServerCookie) Check() error
type UninstallColormapCookie
    func UninstallColormap(c *xgb.Conn, Cmap Colormap) UninstallColormapCookie
    func UninstallColormapChecked(c *xgb.Conn, Cmap Colormap) UninstallColormapCookie
    func (cook UninstallColormapCookie) Check() error
type UnmapNotifyEvent
    func (v UnmapNotifyEvent) Bytes() []byte
    func (v UnmapNotifyEvent) SequenceId() uint16
    func (v UnmapNotifyEvent) String() string
type UnmapSubwindowsCookie
    func UnmapSubwindows(c *xgb.Conn, Window Window) UnmapSubwindowsCookie
    func UnmapSubwindowsChecked(c *xgb.Conn, Window Window) UnmapSubwindowsCookie
    func (cook UnmapSubwindowsCookie) Check() error
type UnmapWindowCookie
    func UnmapWindow(c *xgb.Conn, Window Window) UnmapWindowCookie
    func UnmapWindowChecked(c *xgb.Conn, Window Window) UnmapWindowCookie
    func (cook UnmapWindowCookie) Check() error
type ValueError
    func (err ValueError) BadId() uint32
    func (err ValueError) Error() string
    func (err ValueError) SequenceId() uint16
type VisibilityNotifyEvent
    func (v VisibilityNotifyEvent) Bytes() []byte
    func (v VisibilityNotifyEvent) SequenceId() uint16
    func (v VisibilityNotifyEvent) String() string
type VisualInfo
    func (v VisualInfo) Bytes() []byte
type Visualid
type WarpPointerCookie
    func WarpPointer(c *xgb.Conn, SrcWindow Window, DstWindow Window, SrcX int16, SrcY int16, SrcWidth uint16, SrcHeight uint16, DstX int16, DstY int16) WarpPointerCookie
    func WarpPointerChecked(c *xgb.Conn, SrcWindow Window, DstWindow Window, SrcX int16, SrcY int16, SrcWidth uint16, SrcHeight uint16, DstX int16, DstY int16) WarpPointerCookie
    func (cook WarpPointerCookie) Check() error
type Window
    func NewWindowId(c *xgb.Conn) (Window, error)
type WindowError
    func (err WindowError) BadId() uint32
    func (err WindowError) Error() string
    func (err WindowError) SequenceId() uint16

Package files

xproto.go

Constants

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
)

BadAccess is the error number for a BadAccess.

const BadAccess = 10

BadAlloc is the error number for a BadAlloc.

const BadAlloc = 11

BadAtom is the error number for a BadAtom.

const BadAtom = 5

BadColormap is the error number for a BadColormap.

const BadColormap = 12

BadCursor is the error number for a BadCursor.

const BadCursor = 6

BadDrawable is the error number for a BadDrawable.

const BadDrawable = 9

BadFont is the error number for a BadFont.

const BadFont = 7

BadGContext is the error number for a BadGContext.

const BadGContext = 13

BadIDChoice is the error number for a BadIDChoice.

const BadIDChoice = 14

BadImplementation is the error number for a BadImplementation.

const BadImplementation = 17

BadLength is the error number for a BadLength.

const BadLength = 16

BadMatch is the error number for a BadMatch.

const BadMatch = 8

BadName is the error number for a BadName.

const BadName = 15

BadPixmap is the error number for a BadPixmap.

const BadPixmap = 4

BadRequest is the error number for a BadRequest.

const BadRequest = 1

BadValue is the error number for a BadValue.

const BadValue = 2

BadWindow is the error number for a BadWindow.

const BadWindow = 3

ButtonPress is the event number for a ButtonPressEvent.

const ButtonPress = 4

ButtonRelease is the event number for a ButtonReleaseEvent.

const ButtonRelease = 5

CirculateNotify is the event number for a CirculateNotifyEvent.

const CirculateNotify = 26

CirculateRequest is the event number for a CirculateRequestEvent.

const CirculateRequest = 27

ClientMessage is the event number for a ClientMessageEvent.

const ClientMessage = 33
const (
    ColormapNone = 0
)

ColormapNotify is the event number for a ColormapNotifyEvent.

const ColormapNotify = 32

ConfigureNotify is the event number for a ConfigureNotifyEvent.

const ConfigureNotify = 22

ConfigureRequest is the event number for a ConfigureRequestEvent.

const ConfigureRequest = 23

CreateNotify is the event number for a CreateNotifyEvent.

const CreateNotify = 16
const (
    CursorNone = 0
)

DestroyNotify is the event number for a DestroyNotifyEvent.

const DestroyNotify = 17

EnterNotify is the event number for a EnterNotifyEvent.

const EnterNotify = 7

Expose is the event number for a ExposeEvent.

const Expose = 12

FocusIn is the event number for a FocusInEvent.

const FocusIn = 9

FocusOut is the event number for a FocusOutEvent.

const FocusOut = 10
const (
    FontNone = 0
)

GeGeneric is the event number for a GeGenericEvent.

const GeGeneric = 35
const (
    GetPropertyTypeAny = 0
)
const (
    GrabAny = 0
)

GraphicsExposure is the event number for a GraphicsExposureEvent.

const GraphicsExposure = 13

GravityNotify is the event number for a GravityNotifyEvent.

const GravityNotify = 24

KeyPress is the event number for a KeyPressEvent.

const KeyPress = 2

KeyRelease is the event number for a KeyReleaseEvent.

const KeyRelease = 3

KeymapNotify is the event number for a KeymapNotifyEvent.

const KeymapNotify = 11
const (
    KillAllTemporary = 0
)

LeaveNotify is the event number for a LeaveNotifyEvent.

const LeaveNotify = 8

MapNotify is the event number for a MapNotifyEvent.

const MapNotify = 19

MapRequest is the event number for a MapRequestEvent.

const MapRequest = 20

MappingNotify is the event number for a MappingNotifyEvent.

const MappingNotify = 34

MotionNotify is the event number for a MotionNotifyEvent.

const MotionNotify = 6

NoExposure is the event number for a NoExposureEvent.

const NoExposure = 14
const (
    PixmapNone = 0
)

PropertyNotify is the event number for a PropertyNotifyEvent.

const PropertyNotify = 28

ReparentNotify is the event number for a ReparentNotifyEvent.

const ReparentNotify = 21

ResizeRequest is the event number for a ResizeRequestEvent.

const ResizeRequest = 25

SelectionClear is the event number for a SelectionClearEvent.

const SelectionClear = 29

SelectionNotify is the event number for a SelectionNotifyEvent.

const SelectionNotify = 31

SelectionRequest is the event number for a SelectionRequestEvent.

const SelectionRequest = 30
const (
    TimeCurrentTime = 0
)

UnmapNotify is the event number for a UnmapNotifyEvent.

const UnmapNotify = 18

VisibilityNotify is the event number for a VisibilityNotifyEvent.

const VisibilityNotify = 15
const (
    WindowNone = 0
)

func AccessErrorNew

func AccessErrorNew(buf []byte) xgb.Error

AccessErrorNew constructs a AccessError value that implements xgb.Error from a byte slice.

func AllocErrorNew

func AllocErrorNew(buf []byte) xgb.Error

AllocErrorNew constructs a AllocError value that implements xgb.Error from a byte slice.

func ArcListBytes

func ArcListBytes(buf []byte, list []Arc) int

ArcListBytes writes a list of Arc values to a byte slice.

func ArcRead

func ArcRead(buf []byte, v *Arc) int

ArcRead reads a byte slice into a Arc value.

func ArcReadList

func ArcReadList(buf []byte, dest []Arc) int

ArcReadList reads a byte slice into a list of Arc values.

func AtomErrorNew

func AtomErrorNew(buf []byte) xgb.Error

AtomErrorNew constructs a AtomError value that implements xgb.Error from a byte slice.

func ButtonPressEventNew

func ButtonPressEventNew(buf []byte) xgb.Event

ButtonPressEventNew constructs a ButtonPressEvent value that implements xgb.Event from a byte slice.

func ButtonReleaseEventNew

func ButtonReleaseEventNew(buf []byte) xgb.Event

ButtonReleaseEventNew constructs a ButtonReleaseEvent value that implements xgb.Event from a byte slice.

func Char2bListBytes

func Char2bListBytes(buf []byte, list []Char2b) int

Char2bListBytes writes a list of Char2b values to a byte slice.

func Char2bRead

func Char2bRead(buf []byte, v *Char2b) int

Char2bRead reads a byte slice into a Char2b value.

func Char2bReadList

func Char2bReadList(buf []byte, dest []Char2b) int

Char2bReadList reads a byte slice into a list of Char2b values.

func CharinfoListBytes

func CharinfoListBytes(buf []byte, list []Charinfo) int

CharinfoListBytes writes a list of Charinfo values to a byte slice.

func CharinfoRead

func CharinfoRead(buf []byte, v *Charinfo) int

CharinfoRead reads a byte slice into a Charinfo value.

func CharinfoReadList

func CharinfoReadList(buf []byte, dest []Charinfo) int

CharinfoReadList reads a byte slice into a list of Charinfo values.

func CirculateNotifyEventNew

func CirculateNotifyEventNew(buf []byte) xgb.Event

CirculateNotifyEventNew constructs a CirculateNotifyEvent value that implements xgb.Event from a byte slice.

func CirculateRequestEventNew

func CirculateRequestEventNew(buf []byte) xgb.Event

CirculateRequestEventNew constructs a CirculateRequestEvent value that implements xgb.Event from a byte slice.

func ClientMessageDataUnionListBytes

func ClientMessageDataUnionListBytes(buf []byte, list []ClientMessageDataUnion) int

ClientMessageDataUnionListBytes writes a list of ClientMessageDataUnion values to a byte slice.

func ClientMessageDataUnionRead

func ClientMessageDataUnionRead(buf []byte, v *ClientMessageDataUnion) int

ClientMessageDataUnionRead reads a byte slice into a ClientMessageDataUnion value.

func ClientMessageDataUnionReadList

func ClientMessageDataUnionReadList(buf []byte, dest []ClientMessageDataUnion) int

ClientMessageDataUnionReadList reads a byte slice into a list of ClientMessageDataUnion values.

func ClientMessageEventNew

func ClientMessageEventNew(buf []byte) xgb.Event

ClientMessageEventNew constructs a ClientMessageEvent value that implements xgb.Event from a byte slice.

func ColoritemListBytes

func ColoritemListBytes(buf []byte, list []Coloritem) int

ColoritemListBytes writes a list of Coloritem values to a byte slice.

func ColoritemRead

func ColoritemRead(buf []byte, v *Coloritem) int

ColoritemRead reads a byte slice into a Coloritem value.

func ColoritemReadList

func ColoritemReadList(buf []byte, dest []Coloritem) int

ColoritemReadList reads a byte slice into a list of Coloritem values.

func ColormapErrorNew

func ColormapErrorNew(buf []byte) xgb.Error

ColormapErrorNew constructs a ColormapError value that implements xgb.Error from a byte slice.

func ColormapNotifyEventNew

func ColormapNotifyEventNew(buf []byte) xgb.Event

ColormapNotifyEventNew constructs a ColormapNotifyEvent value that implements xgb.Event from a byte slice.

func ConfigureNotifyEventNew

func ConfigureNotifyEventNew(buf []byte) xgb.Event

ConfigureNotifyEventNew constructs a ConfigureNotifyEvent value that implements xgb.Event from a byte slice.

func ConfigureRequestEventNew

func ConfigureRequestEventNew(buf []byte) xgb.Event

ConfigureRequestEventNew constructs a ConfigureRequestEvent value that implements xgb.Event from a byte slice.

func CreateNotifyEventNew

func CreateNotifyEventNew(buf []byte) xgb.Event

CreateNotifyEventNew constructs a CreateNotifyEvent value that implements xgb.Event from a byte slice.

func CursorErrorNew

func CursorErrorNew(buf []byte) xgb.Error

CursorErrorNew constructs a CursorError value that implements xgb.Error from a byte slice.

func DepthInfoListBytes

func DepthInfoListBytes(buf []byte, list []DepthInfo) int

DepthInfoListBytes writes a list of DepthInfo values to a byte slice.

func DepthInfoListSize

func DepthInfoListSize(list []DepthInfo) int

DepthInfoListSize computes the size (bytes) of a list of DepthInfo values.

func DepthInfoRead

func DepthInfoRead(buf []byte, v *DepthInfo) int

DepthInfoRead reads a byte slice into a DepthInfo value.

func DepthInfoReadList

func DepthInfoReadList(buf []byte, dest []DepthInfo) int

DepthInfoReadList reads a byte slice into a list of DepthInfo values.

func DestroyNotifyEventNew

func DestroyNotifyEventNew(buf []byte) xgb.Event

DestroyNotifyEventNew constructs a DestroyNotifyEvent value that implements xgb.Event from a byte slice.

func DrawableErrorNew

func DrawableErrorNew(buf []byte) xgb.Error

DrawableErrorNew constructs a DrawableError value that implements xgb.Error from a byte slice.

func EnterNotifyEventNew

func EnterNotifyEventNew(buf []byte) xgb.Event

EnterNotifyEventNew constructs a EnterNotifyEvent value that implements xgb.Event from a byte slice.

func ExposeEventNew

func ExposeEventNew(buf []byte) xgb.Event

ExposeEventNew constructs a ExposeEvent value that implements xgb.Event from a byte slice.

func FocusInEventNew

func FocusInEventNew(buf []byte) xgb.Event

FocusInEventNew constructs a FocusInEvent value that implements xgb.Event from a byte slice.

func FocusOutEventNew

func FocusOutEventNew(buf []byte) xgb.Event

FocusOutEventNew constructs a FocusOutEvent value that implements xgb.Event from a byte slice.

func FontErrorNew

func FontErrorNew(buf []byte) xgb.Error

FontErrorNew constructs a FontError value that implements xgb.Error from a byte slice.

func FontpropListBytes

func FontpropListBytes(buf []byte, list []Fontprop) int

FontpropListBytes writes a list of Fontprop values to a byte slice.

func FontpropRead

func FontpropRead(buf []byte, v *Fontprop) int

FontpropRead reads a byte slice into a Fontprop value.

func FontpropReadList

func FontpropReadList(buf []byte, dest []Fontprop) int

FontpropReadList reads a byte slice into a list of Fontprop values.

func FormatListBytes

func FormatListBytes(buf []byte, list []Format) int

FormatListBytes writes a list of Format values to a byte slice.

func FormatRead

func FormatRead(buf []byte, v *Format) int

FormatRead reads a byte slice into a Format value.

func FormatReadList

func FormatReadList(buf []byte, dest []Format) int

FormatReadList reads a byte slice into a list of Format values.

func GContextErrorNew

func GContextErrorNew(buf []byte) xgb.Error

GContextErrorNew constructs a GContextError value that implements xgb.Error from a byte slice.

func GeGenericEventNew

func GeGenericEventNew(buf []byte) xgb.Event

GeGenericEventNew constructs a GeGenericEvent value that implements xgb.Event from a byte slice.

func GraphicsExposureEventNew

func GraphicsExposureEventNew(buf []byte) xgb.Event

GraphicsExposureEventNew constructs a GraphicsExposureEvent value that implements xgb.Event from a byte slice.

func GravityNotifyEventNew

func GravityNotifyEventNew(buf []byte) xgb.Event

GravityNotifyEventNew constructs a GravityNotifyEvent value that implements xgb.Event from a byte slice.

func HostListBytes

func HostListBytes(buf []byte, list []Host) int

HostListBytes writes a list of Host values to a byte slice.

func HostListSize

func HostListSize(list []Host) int

HostListSize computes the size (bytes) of a list of Host values.

func HostRead

func HostRead(buf []byte, v *Host) int

HostRead reads a byte slice into a Host value.

func HostReadList

func HostReadList(buf []byte, dest []Host) int

HostReadList reads a byte slice into a list of Host values.

func IDChoiceErrorNew

func IDChoiceErrorNew(buf []byte) xgb.Error

IDChoiceErrorNew constructs a IDChoiceError value that implements xgb.Error from a byte slice.

func ImplementationErrorNew

func ImplementationErrorNew(buf []byte) xgb.Error

ImplementationErrorNew constructs a ImplementationError value that implements xgb.Error from a byte slice.

func KeyPressEventNew

func KeyPressEventNew(buf []byte) xgb.Event

KeyPressEventNew constructs a KeyPressEvent value that implements xgb.Event from a byte slice.

func KeyReleaseEventNew

func KeyReleaseEventNew(buf []byte) xgb.Event

KeyReleaseEventNew constructs a KeyReleaseEvent value that implements xgb.Event from a byte slice.

func KeymapNotifyEventNew

func KeymapNotifyEventNew(buf []byte) xgb.Event

KeymapNotifyEventNew constructs a KeymapNotifyEvent value that implements xgb.Event from a byte slice.

func LeaveNotifyEventNew

func LeaveNotifyEventNew(buf []byte) xgb.Event

LeaveNotifyEventNew constructs a LeaveNotifyEvent value that implements xgb.Event from a byte slice.

func LengthErrorNew

func LengthErrorNew(buf []byte) xgb.Error

LengthErrorNew constructs a LengthError value that implements xgb.Error from a byte slice.

func MapNotifyEventNew

func MapNotifyEventNew(buf []byte) xgb.Event

MapNotifyEventNew constructs a MapNotifyEvent value that implements xgb.Event from a byte slice.

func MapRequestEventNew

func MapRequestEventNew(buf []byte) xgb.Event

MapRequestEventNew constructs a MapRequestEvent value that implements xgb.Event from a byte slice.

func MappingNotifyEventNew

func MappingNotifyEventNew(buf []byte) xgb.Event

MappingNotifyEventNew constructs a MappingNotifyEvent value that implements xgb.Event from a byte slice.

func MatchErrorNew

func MatchErrorNew(buf []byte) xgb.Error

MatchErrorNew constructs a MatchError value that implements xgb.Error from a byte slice.

func MotionNotifyEventNew

func MotionNotifyEventNew(buf []byte) xgb.Event

MotionNotifyEventNew constructs a MotionNotifyEvent value that implements xgb.Event from a byte slice.

func NameErrorNew

func NameErrorNew(buf []byte) xgb.Error

NameErrorNew constructs a NameError value that implements xgb.Error from a byte slice.

func NoExposureEventNew

func NoExposureEventNew(buf []byte) xgb.Event

NoExposureEventNew constructs a NoExposureEvent value that implements xgb.Event from a byte slice.

func PixmapErrorNew

func PixmapErrorNew(buf []byte) xgb.Error

PixmapErrorNew constructs a PixmapError value that implements xgb.Error from a byte slice.

func PointListBytes

func PointListBytes(buf []byte, list []Point) int

PointListBytes writes a list of Point values to a byte slice.

func PointRead

func PointRead(buf []byte, v *Point) int

PointRead reads a byte slice into a Point value.

func PointReadList

func PointReadList(buf []byte, dest []Point) int

PointReadList reads a byte slice into a list of Point values.

func PropertyNotifyEventNew

func PropertyNotifyEventNew(buf []byte) xgb.Event

PropertyNotifyEventNew constructs a PropertyNotifyEvent value that implements xgb.Event from a byte slice.

func RectangleListBytes

func RectangleListBytes(buf []byte, list []Rectangle) int

RectangleListBytes writes a list of Rectangle values to a byte slice.

func RectangleRead

func RectangleRead(buf []byte, v *Rectangle) int

RectangleRead reads a byte slice into a Rectangle value.

func RectangleReadList

func RectangleReadList(buf []byte, dest []Rectangle) int

RectangleReadList reads a byte slice into a list of Rectangle values.

func ReparentNotifyEventNew

func ReparentNotifyEventNew(buf []byte) xgb.Event

ReparentNotifyEventNew constructs a ReparentNotifyEvent value that implements xgb.Event from a byte slice.

func RequestErrorNew

func RequestErrorNew(buf []byte) xgb.Error

RequestErrorNew constructs a RequestError value that implements xgb.Error from a byte slice.

func ResizeRequestEventNew

func ResizeRequestEventNew(buf []byte) xgb.Event

ResizeRequestEventNew constructs a ResizeRequestEvent value that implements xgb.Event from a byte slice.

func RgbListBytes

func RgbListBytes(buf []byte, list []Rgb) int

RgbListBytes writes a list of Rgb values to a byte slice.

func RgbRead

func RgbRead(buf []byte, v *Rgb) int

RgbRead reads a byte slice into a Rgb value.

func RgbReadList

func RgbReadList(buf []byte, dest []Rgb) int

RgbReadList reads a byte slice into a list of Rgb values.

func ScreenInfoListBytes

func ScreenInfoListBytes(buf []byte, list []ScreenInfo) int

ScreenInfoListBytes writes a list of ScreenInfo values to a byte slice.

func ScreenInfoListSize

func ScreenInfoListSize(list []ScreenInfo) int

ScreenInfoListSize computes the size (bytes) of a list of ScreenInfo values.

func ScreenInfoRead

func ScreenInfoRead(buf []byte, v *ScreenInfo) int

ScreenInfoRead reads a byte slice into a ScreenInfo value.

func ScreenInfoReadList

func ScreenInfoReadList(buf []byte, dest []ScreenInfo) int

ScreenInfoReadList reads a byte slice into a list of ScreenInfo values.

func SegmentListBytes

func SegmentListBytes(buf []byte, list []Segment) int

SegmentListBytes writes a list of Segment values to a byte slice.

func SegmentRead

func SegmentRead(buf []byte, v *Segment) int

SegmentRead reads a byte slice into a Segment value.

func SegmentReadList

func SegmentReadList(buf []byte, dest []Segment) int

SegmentReadList reads a byte slice into a list of Segment values.

func SelectionClearEventNew

func SelectionClearEventNew(buf []byte) xgb.Event

SelectionClearEventNew constructs a SelectionClearEvent value that implements xgb.Event from a byte slice.

func SelectionNotifyEventNew

func SelectionNotifyEventNew(buf []byte) xgb.Event

SelectionNotifyEventNew constructs a SelectionNotifyEvent value that implements xgb.Event from a byte slice.

func SelectionRequestEventNew

func SelectionRequestEventNew(buf []byte) xgb.Event

SelectionRequestEventNew constructs a SelectionRequestEvent value that implements xgb.Event from a byte slice.

func SetupAuthenticateListBytes

func SetupAuthenticateListBytes(buf []byte, list []SetupAuthenticate) int

SetupAuthenticateListBytes writes a list of SetupAuthenticate values to a byte slice.

func SetupAuthenticateListSize

func SetupAuthenticateListSize(list []SetupAuthenticate) int

SetupAuthenticateListSize computes the size (bytes) of a list of SetupAuthenticate values.

func SetupAuthenticateRead

func SetupAuthenticateRead(buf []byte, v *SetupAuthenticate) int

SetupAuthenticateRead reads a byte slice into a SetupAuthenticate value.

func SetupAuthenticateReadList

func SetupAuthenticateReadList(buf []byte, dest []SetupAuthenticate) int

SetupAuthenticateReadList reads a byte slice into a list of SetupAuthenticate values.

func SetupFailedListBytes

func SetupFailedListBytes(buf []byte, list []SetupFailed) int

SetupFailedListBytes writes a list of SetupFailed values to a byte slice.

func SetupFailedListSize

func SetupFailedListSize(list []SetupFailed) int

SetupFailedListSize computes the size (bytes) of a list of SetupFailed values.

func SetupFailedRead

func SetupFailedRead(buf []byte, v *SetupFailed) int

SetupFailedRead reads a byte slice into a SetupFailed value.

func SetupFailedReadList

func SetupFailedReadList(buf []byte, dest []SetupFailed) int

SetupFailedReadList reads a byte slice into a list of SetupFailed values.

func SetupInfoListBytes

func SetupInfoListBytes(buf []byte, list []SetupInfo) int

SetupInfoListBytes writes a list of SetupInfo values to a byte slice.

func SetupInfoListSize

func SetupInfoListSize(list []SetupInfo) int

SetupInfoListSize computes the size (bytes) of a list of SetupInfo values.

func SetupInfoRead

func SetupInfoRead(buf []byte, v *SetupInfo) int

SetupInfoRead reads a byte slice into a SetupInfo value.

func SetupInfoReadList

func SetupInfoReadList(buf []byte, dest []SetupInfo) int

SetupInfoReadList reads a byte slice into a list of SetupInfo values.

func SetupRequestListBytes

func SetupRequestListBytes(buf []byte, list []SetupRequest) int

SetupRequestListBytes writes a list of SetupRequest values to a byte slice.

func SetupRequestListSize

func SetupRequestListSize(list []SetupRequest) int

SetupRequestListSize computes the size (bytes) of a list of SetupRequest values.

func SetupRequestRead

func SetupRequestRead(buf []byte, v *SetupRequest) int

SetupRequestRead reads a byte slice into a SetupRequest value.

func SetupRequestReadList

func SetupRequestReadList(buf []byte, dest []SetupRequest) int

SetupRequestReadList reads a byte slice into a list of SetupRequest values.

func StrListBytes

func StrListBytes(buf []byte, list []Str) int

StrListBytes writes a list of Str values to a byte slice.

func StrListSize

func StrListSize(list []Str) int

StrListSize computes the size (bytes) of a list of Str values.

func StrRead

func StrRead(buf []byte, v *Str) int

StrRead reads a byte slice into a Str value.

func StrReadList

func StrReadList(buf []byte, dest []Str) int

StrReadList reads a byte slice into a list of Str values.

func TimecoordListBytes

func TimecoordListBytes(buf []byte, list []Timecoord) int

TimecoordListBytes writes a list of Timecoord values to a byte slice.

func TimecoordRead

func TimecoordRead(buf []byte, v *Timecoord) int

TimecoordRead reads a byte slice into a Timecoord value.

func TimecoordReadList

func TimecoordReadList(buf []byte, dest []Timecoord) int

TimecoordReadList reads a byte slice into a list of Timecoord values.

func UnmapNotifyEventNew

func UnmapNotifyEventNew(buf []byte) xgb.Event

UnmapNotifyEventNew constructs a UnmapNotifyEvent value that implements xgb.Event from a byte slice.

func ValueErrorNew

func ValueErrorNew(buf []byte) xgb.Error

ValueErrorNew constructs a ValueError value that implements xgb.Error from a byte slice.

func VisibilityNotifyEventNew

func VisibilityNotifyEventNew(buf []byte) xgb.Event

VisibilityNotifyEventNew constructs a VisibilityNotifyEvent value that implements xgb.Event from a byte slice.

func VisualInfoListBytes

func VisualInfoListBytes(buf []byte, list []VisualInfo) int

VisualInfoListBytes writes a list of VisualInfo values to a byte slice.

func VisualInfoRead

func VisualInfoRead(buf []byte, v *VisualInfo) int

VisualInfoRead reads a byte slice into a VisualInfo value.

func VisualInfoReadList

func VisualInfoReadList(buf []byte, dest []VisualInfo) int

VisualInfoReadList reads a byte slice into a list of VisualInfo values.

func WindowErrorNew

func WindowErrorNew(buf []byte) xgb.Error

WindowErrorNew constructs a WindowError value that implements xgb.Error from a byte slice.

type AccessError

type AccessError RequestError

func (AccessError) BadId

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 (AccessError) Error

func (err AccessError) Error() string

Error returns a rudimentary string representation of the BadAccess error.

func (AccessError) SequenceId

func (err AccessError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadAccess error. This is mostly used internally.

type AllocColorCellsCookie

AllocColorCellsCookie is a cookie used only for AllocColorCells requests.

type AllocColorCellsCookie struct {
    *xgb.Cookie
}

func AllocColorCells

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

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 (AllocColorCellsCookie) Reply

func (cook AllocColorCellsCookie) Reply() (*AllocColorCellsReply, error)

Reply blocks and returns the reply data for a AllocColorCells request.

type AllocColorCellsReply

AllocColorCellsReply represents the data returned from 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))
}

type AllocColorCookie

AllocColorCookie is a cookie used only for AllocColor requests.

type AllocColorCookie struct {
    *xgb.Cookie
}

func AllocColor

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

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 (AllocColorCookie) Reply

func (cook AllocColorCookie) Reply() (*AllocColorReply, error)

Reply blocks and returns the reply data for a AllocColor request.

type AllocColorPlanesCookie

AllocColorPlanesCookie is a cookie used only for AllocColorPlanes requests.

type AllocColorPlanesCookie struct {
    *xgb.Cookie
}

func AllocColorPlanes

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

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 (AllocColorPlanesCookie) Reply

func (cook AllocColorPlanesCookie) Reply() (*AllocColorPlanesReply, error)

Reply blocks and returns the reply data for a AllocColorPlanes request.

type AllocColorPlanesReply

AllocColorPlanesReply represents the data returned from 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))
}

type AllocColorReply

AllocColorReply represents the data returned from a AllocColor 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
}

type AllocError

type AllocError RequestError

func (AllocError) BadId

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 (AllocError) Error

func (err AllocError) Error() string

Error returns a rudimentary string representation of the BadAlloc error.

func (AllocError) SequenceId

func (err AllocError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadAlloc error. This is mostly used internally.

type AllocNamedColorCookie

AllocNamedColorCookie is a cookie used only for AllocNamedColor requests.

type AllocNamedColorCookie struct {
    *xgb.Cookie
}

func AllocNamedColor

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

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 (AllocNamedColorCookie) Reply

func (cook AllocNamedColorCookie) Reply() (*AllocNamedColorReply, error)

Reply blocks and returns the reply data for a AllocNamedColor request.

type AllocNamedColorReply

AllocNamedColorReply represents the data returned from 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
}

type AllowEventsCookie

AllowEventsCookie is a cookie used only for AllowEvents requests.

type AllowEventsCookie struct {
    *xgb.Cookie
}

func AllowEvents

func AllowEvents(c *xgb.Conn, Mode byte, Time Timestamp) AllowEventsCookie

AllowEvents sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func AllowEventsChecked

func AllowEventsChecked(c *xgb.Conn, Mode byte, Time Timestamp) AllowEventsCookie

AllowEventsChecked sends a checked request. If an error occurs, it can be retrieved using AllowEventsCookie.Check()

func (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.

type Arc

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

func (Arc) Bytes

func (v Arc) Bytes() []byte

Bytes writes a Arc value to a byte slice.

type Atom

type Atom uint32

func NewAtomId

func NewAtomId(c *xgb.Conn) (Atom, error)

type AtomError

type AtomError ValueError

func (AtomError) BadId

func (err AtomError) BadId() uint32

BadId returns the 'BadValue' number if one exists for the BadAtom error. If no bad value exists, 0 is returned.

func (AtomError) Error

func (err AtomError) Error() string

Error returns a rudimentary string representation of the BadAtom error.

func (AtomError) SequenceId

func (err AtomError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadAtom error. This is mostly used internally.

type BellCookie

BellCookie is a cookie used only for Bell requests.

type BellCookie struct {
    *xgb.Cookie
}

func Bell

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

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 (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 Button

type Button byte

type ButtonPressEvent

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 (ButtonPressEvent) Bytes

func (v ButtonPressEvent) Bytes() []byte

Bytes writes a ButtonPressEvent value to a byte slice.

func (ButtonPressEvent) SequenceId

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 (ButtonPressEvent) String

func (v ButtonPressEvent) String() string

String is a rudimentary string representation of ButtonPressEvent.

type ButtonReleaseEvent

type ButtonReleaseEvent ButtonPressEvent

func (ButtonReleaseEvent) Bytes

func (v ButtonReleaseEvent) Bytes() []byte

Bytes writes a ButtonReleaseEvent value to a byte slice.

func (ButtonReleaseEvent) SequenceId

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 (ButtonReleaseEvent) String

func (v ButtonReleaseEvent) String() string

type ChangeActivePointerGrabCookie

ChangeActivePointerGrabCookie is a cookie used only for ChangeActivePointerGrab requests.

type ChangeActivePointerGrabCookie struct {
    *xgb.Cookie
}

func ChangeActivePointerGrab

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

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 (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.

type ChangeGCCookie

ChangeGCCookie is a cookie used only for ChangeGC requests.

type ChangeGCCookie struct {
    *xgb.Cookie
}

func ChangeGC

func ChangeGC(c *xgb.Conn, Gc Gcontext, ValueMask uint32, ValueList []uint32) ChangeGCCookie

ChangeGC sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func ChangeGCChecked

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 (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.

type ChangeHostsCookie

ChangeHostsCookie is a cookie used only for ChangeHosts requests.

type ChangeHostsCookie struct {
    *xgb.Cookie
}

func ChangeHosts

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

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 (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.

type ChangeKeyboardControlCookie

ChangeKeyboardControlCookie is a cookie used only for ChangeKeyboardControl requests.

type ChangeKeyboardControlCookie struct {
    *xgb.Cookie
}

func ChangeKeyboardControl

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

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 (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.

type ChangeKeyboardMappingCookie

ChangeKeyboardMappingCookie is a cookie used only for ChangeKeyboardMapping requests.

type ChangeKeyboardMappingCookie struct {
    *xgb.Cookie
}

func ChangeKeyboardMapping

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

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 (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.

type ChangePointerControlCookie

ChangePointerControlCookie is a cookie used only for ChangePointerControl requests.

type ChangePointerControlCookie struct {
    *xgb.Cookie
}

func ChangePointerControl

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

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 (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.

type ChangePropertyCookie

ChangePropertyCookie is a cookie used only for ChangeProperty requests.

type ChangePropertyCookie struct {
    *xgb.Cookie
}

func ChangeProperty

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

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 (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.

type ChangeSaveSetCookie

ChangeSaveSetCookie is a cookie used only for ChangeSaveSet requests.

type ChangeSaveSetCookie struct {
    *xgb.Cookie
}

func ChangeSaveSet

func ChangeSaveSet(c *xgb.Conn, Mode byte, Window Window) ChangeSaveSetCookie

ChangeSaveSet sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func ChangeSaveSetChecked

func ChangeSaveSetChecked(c *xgb.Conn, Mode byte, Window Window) ChangeSaveSetCookie

ChangeSaveSetChecked sends a checked request. If an error occurs, it can be retrieved using ChangeSaveSetCookie.Check()

func (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.

type ChangeWindowAttributesCookie

ChangeWindowAttributesCookie is a cookie used only for ChangeWindowAttributes requests.

type ChangeWindowAttributesCookie struct {
    *xgb.Cookie
}

func ChangeWindowAttributes

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

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 (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.

type Char2b

type Char2b struct {
    Byte1 byte
    Byte2 byte
}

func (Char2b) Bytes

func (v Char2b) Bytes() []byte

Bytes writes a Char2b value to a byte slice.

type Charinfo

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

func (Charinfo) Bytes

func (v Charinfo) Bytes() []byte

Bytes writes a Charinfo value to a byte slice.

type CirculateNotifyEvent

type CirculateNotifyEvent struct {
    Sequence uint16
    // padding: 1 bytes
    Event  Window
    Window Window
    // padding: 4 bytes
    Place byte
}

func (CirculateNotifyEvent) Bytes

func (v CirculateNotifyEvent) Bytes() []byte

Bytes writes a CirculateNotifyEvent value to a byte slice.

func (CirculateNotifyEvent) SequenceId

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 (CirculateNotifyEvent) String

func (v CirculateNotifyEvent) String() string

String is a rudimentary string representation of CirculateNotifyEvent.

type CirculateRequestEvent

type CirculateRequestEvent CirculateNotifyEvent

func (CirculateRequestEvent) Bytes

func (v CirculateRequestEvent) Bytes() []byte

Bytes writes a CirculateRequestEvent value to a byte slice.

func (CirculateRequestEvent) SequenceId

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 (CirculateRequestEvent) String

func (v CirculateRequestEvent) String() string

type CirculateWindowCookie

CirculateWindowCookie is a cookie used only for CirculateWindow requests.

type CirculateWindowCookie struct {
    *xgb.Cookie
}

func CirculateWindow

func CirculateWindow(c *xgb.Conn, Direction byte, Window Window) CirculateWindowCookie

CirculateWindow sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func CirculateWindowChecked

func CirculateWindowChecked(c *xgb.Conn, Direction byte, Window Window) CirculateWindowCookie

CirculateWindowChecked sends a checked request. If an error occurs, it can be retrieved using CirculateWindowCookie.Check()

func (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.

type ClearAreaCookie

ClearAreaCookie is a cookie used only for ClearArea requests.

type ClearAreaCookie struct {
    *xgb.Cookie
}

func ClearArea

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

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 (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

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
type ClientMessageDataUnion struct {
    Data8  []byte   // size: 20
    Data16 []uint16 // size: 20
    Data32 []uint32 // size: 20
}

func ClientMessageDataUnionData16New

func ClientMessageDataUnionData16New(Data16 []uint16) ClientMessageDataUnion

ClientMessageDataUnionData16New constructs a new ClientMessageDataUnion union type with the Data16 field.

func ClientMessageDataUnionData32New

func ClientMessageDataUnionData32New(Data32 []uint32) ClientMessageDataUnion

ClientMessageDataUnionData32New constructs a new ClientMessageDataUnion union type with the Data32 field.

func ClientMessageDataUnionData8New

func ClientMessageDataUnionData8New(Data8 []byte) ClientMessageDataUnion

ClientMessageDataUnionData8New constructs a new ClientMessageDataUnion union type with the Data8 field.

func (ClientMessageDataUnion) Bytes

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

type ClientMessageEvent struct {
    Sequence uint16
    Format   byte
    Window   Window
    Type     Atom
    Data     ClientMessageDataUnion
}

func (ClientMessageEvent) Bytes

func (v ClientMessageEvent) Bytes() []byte

Bytes writes a ClientMessageEvent value to a byte slice.

func (ClientMessageEvent) SequenceId

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 (ClientMessageEvent) String

func (v ClientMessageEvent) String() string

String is a rudimentary string representation of ClientMessageEvent.

type CloseFontCookie

CloseFontCookie is a cookie used only for CloseFont requests.

type CloseFontCookie struct {
    *xgb.Cookie
}

func CloseFont

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

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 (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.

type Coloritem

type Coloritem struct {
    Pixel uint32
    Red   uint16
    Green uint16
    Blue  uint16
    Flags byte
}

func (Coloritem) Bytes

func (v Coloritem) Bytes() []byte

Bytes writes a Coloritem value to a byte slice.

type Colormap

type Colormap uint32

func NewColormapId

func NewColormapId(c *xgb.Conn) (Colormap, error)

type ColormapError

type ColormapError ValueError

func (ColormapError) BadId

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 (ColormapError) Error

func (err ColormapError) Error() string

Error returns a rudimentary string representation of the BadColormap error.

func (ColormapError) SequenceId

func (err ColormapError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadColormap error. This is mostly used internally.

type ColormapNotifyEvent

type ColormapNotifyEvent struct {
    Sequence uint16
    // padding: 1 bytes
    Window   Window
    Colormap Colormap
    New      bool
    State    byte
}

func (ColormapNotifyEvent) Bytes

func (v ColormapNotifyEvent) Bytes() []byte

Bytes writes a ColormapNotifyEvent value to a byte slice.

func (ColormapNotifyEvent) SequenceId

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 (ColormapNotifyEvent) String

func (v ColormapNotifyEvent) String() string

String is a rudimentary string representation of ColormapNotifyEvent.

type ConfigureNotifyEvent

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 (ConfigureNotifyEvent) Bytes

func (v ConfigureNotifyEvent) Bytes() []byte

Bytes writes a ConfigureNotifyEvent value to a byte slice.

func (ConfigureNotifyEvent) SequenceId

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 (ConfigureNotifyEvent) String

func (v ConfigureNotifyEvent) String() string

String is a rudimentary string representation of ConfigureNotifyEvent.

type ConfigureRequestEvent

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 (ConfigureRequestEvent) Bytes

func (v ConfigureRequestEvent) Bytes() []byte

Bytes writes a ConfigureRequestEvent value to a byte slice.

func (ConfigureRequestEvent) SequenceId

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 (ConfigureRequestEvent) String

func (v ConfigureRequestEvent) String() string

String is a rudimentary string representation of ConfigureRequestEvent.

type ConfigureWindowCookie

ConfigureWindowCookie is a cookie used only for ConfigureWindow requests.

type ConfigureWindowCookie struct {
    *xgb.Cookie
}

func ConfigureWindow

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

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 (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.

type ConvertSelectionCookie

ConvertSelectionCookie is a cookie used only for ConvertSelection requests.

type ConvertSelectionCookie struct {
    *xgb.Cookie
}

func ConvertSelection

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

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 (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.

type CopyAreaCookie

CopyAreaCookie is a cookie used only for CopyArea requests.

type CopyAreaCookie struct {
    *xgb.Cookie
}

func CopyArea

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

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 (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.

type CopyColormapAndFreeCookie

CopyColormapAndFreeCookie is a cookie used only for CopyColormapAndFree requests.

type CopyColormapAndFreeCookie struct {
    *xgb.Cookie
}

func CopyColormapAndFree

func CopyColormapAndFree(c *xgb.Conn, Mid Colormap, SrcCmap Colormap) CopyColormapAndFreeCookie

CopyColormapAndFree sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func CopyColormapAndFreeChecked

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 (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.

type CopyGCCookie

CopyGCCookie is a cookie used only for CopyGC requests.

type CopyGCCookie struct {
    *xgb.Cookie
}

func CopyGC

func CopyGC(c *xgb.Conn, SrcGc Gcontext, DstGc Gcontext, ValueMask uint32) CopyGCCookie

CopyGC sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func CopyGCChecked

func CopyGCChecked(c *xgb.Conn, SrcGc Gcontext, DstGc Gcontext, ValueMask uint32) CopyGCCookie

CopyGCChecked sends a checked request. If an error occurs, it can be retrieved using CopyGCCookie.Check()

func (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.

type CopyPlaneCookie

CopyPlaneCookie is a cookie used only for CopyPlane requests.

type CopyPlaneCookie struct {
    *xgb.Cookie
}

func CopyPlane

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

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 (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.

type CreateColormapCookie

CreateColormapCookie is a cookie used only for CreateColormap requests.

type CreateColormapCookie struct {
    *xgb.Cookie
}

func CreateColormap

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

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 (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.

type CreateCursorCookie

CreateCursorCookie is a cookie used only for CreateCursor requests.

type CreateCursorCookie struct {
    *xgb.Cookie
}

func CreateCursor

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

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 (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.

type CreateGCCookie

CreateGCCookie is a cookie used only for CreateGC requests.

type CreateGCCookie struct {
    *xgb.Cookie
}

func CreateGC

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

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 (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.

type CreateGlyphCursorCookie

CreateGlyphCursorCookie is a cookie used only for CreateGlyphCursor requests.

type CreateGlyphCursorCookie struct {
    *xgb.Cookie
}

func CreateGlyphCursor

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

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 (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

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 (CreateNotifyEvent) Bytes

func (v CreateNotifyEvent) Bytes() []byte

Bytes writes a CreateNotifyEvent value to a byte slice.

func (CreateNotifyEvent) SequenceId

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 (CreateNotifyEvent) String

func (v CreateNotifyEvent) String() string

String is a rudimentary string representation of CreateNotifyEvent.

type CreatePixmapCookie

CreatePixmapCookie is a cookie used only for CreatePixmap requests.

type CreatePixmapCookie struct {
    *xgb.Cookie
}

func CreatePixmap

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

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 (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.

type CreateWindowCookie

CreateWindowCookie is a cookie used only for CreateWindow requests.

type CreateWindowCookie struct {
    *xgb.Cookie
}

func CreateWindow

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

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 (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 Cursor

type Cursor uint32

func NewCursorId

func NewCursorId(c *xgb.Conn) (Cursor, error)

type CursorError

type CursorError ValueError

func (CursorError) BadId

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 (CursorError) Error

func (err CursorError) Error() string

Error returns a rudimentary string representation of the BadCursor error.

func (CursorError) SequenceId

func (err CursorError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadCursor error. This is mostly used internally.

type DeletePropertyCookie

DeletePropertyCookie is a cookie used only for DeleteProperty requests.

type DeletePropertyCookie struct {
    *xgb.Cookie
}

func DeleteProperty

func DeleteProperty(c *xgb.Conn, Window Window, Property Atom) DeletePropertyCookie

DeleteProperty sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func DeletePropertyChecked

func DeletePropertyChecked(c *xgb.Conn, Window Window, Property Atom) DeletePropertyCookie

DeletePropertyChecked sends a checked request. If an error occurs, it can be retrieved using DeletePropertyCookie.Check()

func (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

type DepthInfo struct {
    Depth byte
    // padding: 1 bytes
    VisualsLen uint16
    // padding: 4 bytes
    Visuals []VisualInfo // size: xgb.Pad((int(VisualsLen) * 24))
}

func (DepthInfo) Bytes

func (v DepthInfo) Bytes() []byte

Bytes writes a DepthInfo value to a byte slice.

type DestroyNotifyEvent

type DestroyNotifyEvent struct {
    Sequence uint16
    // padding: 1 bytes
    Event  Window
    Window Window
}

func (DestroyNotifyEvent) Bytes

func (v DestroyNotifyEvent) Bytes() []byte

Bytes writes a DestroyNotifyEvent value to a byte slice.

func (DestroyNotifyEvent) SequenceId

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 (DestroyNotifyEvent) String

func (v DestroyNotifyEvent) String() string

String is a rudimentary string representation of DestroyNotifyEvent.

type DestroySubwindowsCookie

DestroySubwindowsCookie is a cookie used only for DestroySubwindows requests.

type DestroySubwindowsCookie struct {
    *xgb.Cookie
}

func DestroySubwindows

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

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 (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.

type DestroyWindowCookie

DestroyWindowCookie is a cookie used only for DestroyWindow requests.

type DestroyWindowCookie struct {
    *xgb.Cookie
}

func DestroyWindow

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

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 (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 Drawable

type Drawable uint32

func NewDrawableId

func NewDrawableId(c *xgb.Conn) (Drawable, error)

type DrawableError

type DrawableError ValueError

func (DrawableError) BadId

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 (DrawableError) Error

func (err DrawableError) Error() string

Error returns a rudimentary string representation of the BadDrawable error.

func (DrawableError) SequenceId

func (err DrawableError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadDrawable error. This is mostly used internally.

type EnterNotifyEvent

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 (EnterNotifyEvent) Bytes

func (v EnterNotifyEvent) Bytes() []byte

Bytes writes a EnterNotifyEvent value to a byte slice.

func (EnterNotifyEvent) SequenceId

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 (EnterNotifyEvent) String

func (v EnterNotifyEvent) String() string

String is a rudimentary string representation of EnterNotifyEvent.

type ExposeEvent

type ExposeEvent struct {
    Sequence uint16
    // padding: 1 bytes
    Window Window
    X      uint16
    Y      uint16
    Width  uint16
    Height uint16
    Count  uint16
}

func (ExposeEvent) Bytes

func (v ExposeEvent) Bytes() []byte

Bytes writes a ExposeEvent value to a byte slice.

func (ExposeEvent) SequenceId

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 (ExposeEvent) String

func (v ExposeEvent) String() string

String is a rudimentary string representation of ExposeEvent.

type FillPolyCookie

FillPolyCookie is a cookie used only for FillPoly requests.

type FillPolyCookie struct {
    *xgb.Cookie
}

func FillPoly

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

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 (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.

type FocusInEvent

type FocusInEvent struct {
    Sequence uint16
    Detail   byte
    Event    Window
    Mode     byte
}

func (FocusInEvent) Bytes

func (v FocusInEvent) Bytes() []byte

Bytes writes a FocusInEvent value to a byte slice.

func (FocusInEvent) SequenceId

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 (FocusInEvent) String

func (v FocusInEvent) String() string

String is a rudimentary string representation of FocusInEvent.

type FocusOutEvent

type FocusOutEvent FocusInEvent

func (FocusOutEvent) Bytes

func (v FocusOutEvent) Bytes() []byte

Bytes writes a FocusOutEvent value to a byte slice.

func (FocusOutEvent) SequenceId

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 (FocusOutEvent) String

func (v FocusOutEvent) String() string

type Font

type Font uint32

func NewFontId

func NewFontId(c *xgb.Conn) (Font, error)

type FontError

type FontError ValueError

func (FontError) BadId

func (err FontError) BadId() uint32

BadId returns the 'BadValue' number if one exists for the BadFont error. If no bad value exists, 0 is returned.

func (FontError) Error

func (err FontError) Error() string

Error returns a rudimentary string representation of the BadFont error.

func (FontError) SequenceId

func (err FontError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadFont error. This is mostly used internally.

type Fontable

type Fontable uint32

func NewFontableId

func NewFontableId(c *xgb.Conn) (Fontable, error)

type Fontprop

type Fontprop struct {
    Name  Atom
    Value uint32
}

func (Fontprop) Bytes

func (v Fontprop) Bytes() []byte

Bytes writes a Fontprop value to a byte slice.

type ForceScreenSaverCookie

ForceScreenSaverCookie is a cookie used only for ForceScreenSaver requests.

type ForceScreenSaverCookie struct {
    *xgb.Cookie
}

func ForceScreenSaver

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

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 (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.

type Format

type Format struct {
    Depth        byte
    BitsPerPixel byte
    ScanlinePad  byte
}

func (Format) Bytes

func (v Format) Bytes() []byte

Bytes writes a Format value to a byte slice.

type FreeColormapCookie

FreeColormapCookie is a cookie used only for FreeColormap requests.

type FreeColormapCookie struct {
    *xgb.Cookie
}

func FreeColormap

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

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 (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.

type FreeColorsCookie

FreeColorsCookie is a cookie used only for FreeColors requests.

type FreeColorsCookie struct {
    *xgb.Cookie
}

func FreeColors

func FreeColors(c *xgb.Conn, Cmap Colormap, PlaneMask uint32, Pixels []uint32) FreeColorsCookie

FreeColors sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func FreeColorsChecked

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 (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.

type FreeCursorCookie

FreeCursorCookie is a cookie used only for FreeCursor requests.

type FreeCursorCookie struct {
    *xgb.Cookie
}

func FreeCursor

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

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 (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.

type FreeGCCookie

FreeGCCookie is a cookie used only for FreeGC requests.

type FreeGCCookie struct {
    *xgb.Cookie
}

func FreeGC

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

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 (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.

type FreePixmapCookie

FreePixmapCookie is a cookie used only for FreePixmap requests.

type FreePixmapCookie struct {
    *xgb.Cookie
}

func FreePixmap

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

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 (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

type GContextError ValueError

func (GContextError) BadId

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 (GContextError) Error

func (err GContextError) Error() string

Error returns a rudimentary string representation of the BadGContext error.

func (GContextError) SequenceId

func (err GContextError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadGContext error. This is mostly used internally.

type Gcontext

type Gcontext uint32

func NewGcontextId

func NewGcontextId(c *xgb.Conn) (Gcontext, error)

type GeGenericEvent

type GeGenericEvent struct {
    Sequence uint16
}

func (GeGenericEvent) Bytes

func (v GeGenericEvent) Bytes() []byte

Bytes writes a GeGenericEvent value to a byte slice.

func (GeGenericEvent) SequenceId

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 (GeGenericEvent) String

func (v GeGenericEvent) String() string

String is a rudimentary string representation of GeGenericEvent.

type GetAtomNameCookie

GetAtomNameCookie is a cookie used only for GetAtomName requests.

type GetAtomNameCookie struct {
    *xgb.Cookie
}

func GetAtomName

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

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 (GetAtomNameCookie) Reply

func (cook GetAtomNameCookie) Reply() (*GetAtomNameReply, error)

Reply blocks and returns the reply data for a GetAtomName request.

type GetAtomNameReply

GetAtomNameReply represents the data returned from 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))
}

type GetFontPathCookie

GetFontPathCookie is a cookie used only for GetFontPath requests.

type GetFontPathCookie struct {
    *xgb.Cookie
}

func GetFontPath

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

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 (GetFontPathCookie) Reply

func (cook GetFontPathCookie) Reply() (*GetFontPathReply, error)

Reply blocks and returns the reply data for a GetFontPath request.

type GetFontPathReply

GetFontPathReply represents the data returned from 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)
}

type GetGeometryCookie

GetGeometryCookie is a cookie used only for GetGeometry requests.

type GetGeometryCookie struct {
    *xgb.Cookie
}

func GetGeometry

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

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 (GetGeometryCookie) Reply

func (cook GetGeometryCookie) Reply() (*GetGeometryReply, error)

Reply blocks and returns the reply data for a GetGeometry request.

type GetGeometryReply

GetGeometryReply represents the data returned from 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
}

type GetImageCookie

GetImageCookie is a cookie used only for GetImage requests.

type GetImageCookie struct {
    *xgb.Cookie
}

func GetImage

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

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 (GetImageCookie) Reply

func (cook GetImageCookie) Reply() (*GetImageReply, error)

Reply blocks and returns the reply data for a GetImage request.

type GetImageReply

GetImageReply represents the data returned from 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))
}

type GetInputFocusCookie

GetInputFocusCookie is a cookie used only for GetInputFocus requests.

type GetInputFocusCookie struct {
    *xgb.Cookie
}

func GetInputFocus

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

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 (GetInputFocusCookie) Reply

func (cook GetInputFocusCookie) Reply() (*GetInputFocusReply, error)

Reply blocks and returns the reply data for a GetInputFocus request.

type GetInputFocusReply

GetInputFocusReply represents the data returned from 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
}

type GetKeyboardControlCookie

GetKeyboardControlCookie is a cookie used only for GetKeyboardControl requests.

type GetKeyboardControlCookie struct {
    *xgb.Cookie
}

func GetKeyboardControl

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

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 (GetKeyboardControlCookie) Reply

func (cook GetKeyboardControlCookie) Reply() (*GetKeyboardControlReply, error)

Reply blocks and returns the reply data for a GetKeyboardControl request.

type GetKeyboardControlReply

GetKeyboardControlReply represents the data returned from 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
}

type GetKeyboardMappingCookie

GetKeyboardMappingCookie is a cookie used only for GetKeyboardMapping requests.

type GetKeyboardMappingCookie struct {
    *xgb.Cookie
}

func GetKeyboardMapping

func GetKeyboardMapping(c *xgb.Conn, FirstKeycode Keycode, Count byte) GetKeyboardMappingCookie

GetKeyboardMapping sends a checked request. If an error occurs, it will be returned with the reply by calling GetKeyboardMappingCookie.Reply()

func GetKeyboardMappingUnchecked

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 (GetKeyboardMappingCookie) Reply

func (cook GetKeyboardMappingCookie) Reply() (*GetKeyboardMappingReply, error)

Reply blocks and returns the reply data for a GetKeyboardMapping request.

type GetKeyboardMappingReply

GetKeyboardMappingReply represents the data returned from 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))
}

type GetModifierMappingCookie

GetModifierMappingCookie is a cookie used only for GetModifierMapping requests.

type GetModifierMappingCookie struct {
    *xgb.Cookie
}

func GetModifierMapping

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

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 (GetModifierMappingCookie) Reply

func (cook GetModifierMappingCookie) Reply() (*GetModifierMappingReply, error)

Reply blocks and returns the reply data for a GetModifierMapping request.

type GetModifierMappingReply

GetModifierMappingReply represents the data returned from 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))
}

type GetMotionEventsCookie

GetMotionEventsCookie is a cookie used only for GetMotionEvents requests.

type GetMotionEventsCookie struct {
    *xgb.Cookie
}

func GetMotionEvents

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

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 (GetMotionEventsCookie) Reply

func (cook GetMotionEventsCookie) Reply() (*GetMotionEventsReply, error)

Reply blocks and returns the reply data for a GetMotionEvents request.

type GetMotionEventsReply

GetMotionEventsReply represents the data returned from 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))
}

type GetPointerControlCookie

GetPointerControlCookie is a cookie used only for GetPointerControl requests.

type GetPointerControlCookie struct {
    *xgb.Cookie
}

func GetPointerControl

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

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 (GetPointerControlCookie) Reply

func (cook GetPointerControlCookie) Reply() (*GetPointerControlReply, error)

Reply blocks and returns the reply data for a GetPointerControl request.

type GetPointerControlReply

GetPointerControlReply represents the data returned from 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
}

type GetPointerMappingCookie

GetPointerMappingCookie is a cookie used only for GetPointerMapping requests.

type GetPointerMappingCookie struct {
    *xgb.Cookie
}

func GetPointerMapping

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

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 (GetPointerMappingCookie) Reply

func (cook GetPointerMappingCookie) Reply() (*GetPointerMappingReply, error)

Reply blocks and returns the reply data for a GetPointerMapping request.

type GetPointerMappingReply

GetPointerMappingReply represents the data returned from 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))
}

type GetPropertyCookie

GetPropertyCookie is a cookie used only for GetProperty requests.

type GetPropertyCookie struct {
    *xgb.Cookie
}

func GetProperty

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

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 (GetPropertyCookie) Reply

func (cook GetPropertyCookie) Reply() (*GetPropertyReply, error)

Reply blocks and returns the reply data for a GetProperty request.

type GetPropertyReply

GetPropertyReply represents the data returned from 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))
}

type GetScreenSaverCookie

GetScreenSaverCookie is a cookie used only for GetScreenSaver requests.

type GetScreenSaverCookie struct {
    *xgb.Cookie
}

func GetScreenSaver

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

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 (GetScreenSaverCookie) Reply

func (cook GetScreenSaverCookie) Reply() (*GetScreenSaverReply, error)

Reply blocks and returns the reply data for a GetScreenSaver request.

type GetScreenSaverReply

GetScreenSaverReply represents the data returned from 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
}

type GetSelectionOwnerCookie

GetSelectionOwnerCookie is a cookie used only for GetSelectionOwner requests.

type GetSelectionOwnerCookie struct {
    *xgb.Cookie
}

func GetSelectionOwner

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

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 (GetSelectionOwnerCookie) Reply

func (cook GetSelectionOwnerCookie) Reply() (*GetSelectionOwnerReply, error)

Reply blocks and returns the reply data for a GetSelectionOwner request.

type GetSelectionOwnerReply

GetSelectionOwnerReply represents the data returned from 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
}

type GetWindowAttributesCookie

GetWindowAttributesCookie is a cookie used only for GetWindowAttributes requests.

type GetWindowAttributesCookie struct {
    *xgb.Cookie
}

func GetWindowAttributes

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

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 (GetWindowAttributesCookie) Reply

func (cook GetWindowAttributesCookie) Reply() (*GetWindowAttributesReply, error)

Reply blocks and returns the reply data for a GetWindowAttributes request.

type GetWindowAttributesReply

GetWindowAttributesReply represents the data returned from 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
}

type GrabButtonCookie

GrabButtonCookie is a cookie used only for GrabButton requests.

type GrabButtonCookie struct {
    *xgb.Cookie
}

func GrabButton

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

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 (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.

type GrabKeyCookie

GrabKeyCookie is a cookie used only for GrabKey requests.

type GrabKeyCookie struct {
    *xgb.Cookie
}

func GrabKey

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

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 (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.

type GrabKeyboardCookie

GrabKeyboardCookie is a cookie used only for GrabKeyboard requests.

type GrabKeyboardCookie struct {
    *xgb.Cookie
}

func GrabKeyboard

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

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 (GrabKeyboardCookie) Reply

func (cook GrabKeyboardCookie) Reply() (*GrabKeyboardReply, error)

Reply blocks and returns the reply data for a GrabKeyboard request.

type GrabKeyboardReply

GrabKeyboardReply represents the data returned from 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
}

type GrabPointerCookie

GrabPointerCookie is a cookie used only for GrabPointer requests.

type GrabPointerCookie struct {
    *xgb.Cookie
}

func GrabPointer

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

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 (GrabPointerCookie) Reply

func (cook GrabPointerCookie) Reply() (*GrabPointerReply, error)

Reply blocks and returns the reply data for a GrabPointer request.

type GrabPointerReply

GrabPointerReply represents the data returned from 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
}

type GrabServerCookie

GrabServerCookie is a cookie used only for GrabServer requests.

type GrabServerCookie struct {
    *xgb.Cookie
}

func GrabServer

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

func GrabServerChecked(c *xgb.Conn) GrabServerCookie

GrabServerChecked sends a checked request. If an error occurs, it can be retrieved using GrabServerCookie.Check()

func (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

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 (GraphicsExposureEvent) Bytes

func (v GraphicsExposureEvent) Bytes() []byte

Bytes writes a GraphicsExposureEvent value to a byte slice.

func (GraphicsExposureEvent) SequenceId

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 (GraphicsExposureEvent) String

func (v GraphicsExposureEvent) String() string

String is a rudimentary string representation of GraphicsExposureEvent.

type GravityNotifyEvent

type GravityNotifyEvent struct {
    Sequence uint16
    // padding: 1 bytes
    Event  Window
    Window Window
    X      int16
    Y      int16
}

func (GravityNotifyEvent) Bytes

func (v GravityNotifyEvent) Bytes() []byte

Bytes writes a GravityNotifyEvent value to a byte slice.

func (GravityNotifyEvent) SequenceId

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 (GravityNotifyEvent) String

func (v GravityNotifyEvent) String() string

String is a rudimentary string representation of GravityNotifyEvent.

type Host

type Host struct {
    Family byte
    // padding: 1 bytes
    AddressLen uint16
    Address    []byte // size: xgb.Pad((int(AddressLen) * 1))
}

func (Host) Bytes

func (v Host) Bytes() []byte

Bytes writes a Host value to a byte slice.

type IDChoiceError

type IDChoiceError ValueError

func (IDChoiceError) BadId

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 (IDChoiceError) Error

func (err IDChoiceError) Error() string

Error returns a rudimentary string representation of the BadIDChoice error.

func (IDChoiceError) SequenceId

func (err IDChoiceError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadIDChoice error. This is mostly used internally.

type ImageText16Cookie

ImageText16Cookie is a cookie used only for ImageText16 requests.

type ImageText16Cookie struct {
    *xgb.Cookie
}

func ImageText16

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

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 (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.

type ImageText8Cookie

ImageText8Cookie is a cookie used only for ImageText8 requests.

type ImageText8Cookie struct {
    *xgb.Cookie
}

func ImageText8

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

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 (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

type ImplementationError RequestError

func (ImplementationError) BadId

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 (ImplementationError) Error

func (err ImplementationError) Error() string

Error returns a rudimentary string representation of the BadImplementation error.

func (ImplementationError) SequenceId

func (err ImplementationError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadImplementation error. This is mostly used internally.

type InstallColormapCookie

InstallColormapCookie is a cookie used only for InstallColormap requests.

type InstallColormapCookie struct {
    *xgb.Cookie
}

func InstallColormap

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

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 (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.

type InternAtomCookie

InternAtomCookie is a cookie used only for InternAtom requests.

type InternAtomCookie struct {
    *xgb.Cookie
}

func InternAtom

func InternAtom(c *xgb.Conn, OnlyIfExists bool, NameLen uint16, Name string) InternAtomCookie

InternAtom sends a checked request. If an error occurs, it will be returned with the reply by calling InternAtomCookie.Reply()

func InternAtomUnchecked

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 (InternAtomCookie) Reply

func (cook InternAtomCookie) Reply() (*InternAtomReply, error)

Reply blocks and returns the reply data for a InternAtom request.

type InternAtomReply

InternAtomReply represents the data returned from 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
}

type KeyPressEvent

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 (KeyPressEvent) Bytes

func (v KeyPressEvent) Bytes() []byte

Bytes writes a KeyPressEvent value to a byte slice.

func (KeyPressEvent) SequenceId

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 (KeyPressEvent) String

func (v KeyPressEvent) String() string

String is a rudimentary string representation of KeyPressEvent.

type KeyReleaseEvent

type KeyReleaseEvent KeyPressEvent

func (KeyReleaseEvent) Bytes

func (v KeyReleaseEvent) Bytes() []byte

Bytes writes a KeyReleaseEvent value to a byte slice.

func (KeyReleaseEvent) SequenceId

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 (KeyReleaseEvent) String

func (v KeyReleaseEvent) String() string

type Keycode

type Keycode byte

type KeymapNotifyEvent

type KeymapNotifyEvent struct {
    Keys []byte // size: 32
}

func (KeymapNotifyEvent) Bytes

func (v KeymapNotifyEvent) Bytes() []byte

Bytes writes a KeymapNotifyEvent value to a byte slice.

func (KeymapNotifyEvent) SequenceId

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 (KeymapNotifyEvent) String

func (v KeymapNotifyEvent) String() string

String is a rudimentary string representation of KeymapNotifyEvent.

type Keysym

type Keysym uint32

type KillClientCookie

KillClientCookie is a cookie used only for KillClient requests.

type KillClientCookie struct {
    *xgb.Cookie
}

func KillClient

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

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 (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

type LeaveNotifyEvent EnterNotifyEvent

func (LeaveNotifyEvent) Bytes

func (v LeaveNotifyEvent) Bytes() []byte

Bytes writes a LeaveNotifyEvent value to a byte slice.

func (LeaveNotifyEvent) SequenceId

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 (LeaveNotifyEvent) String

func (v LeaveNotifyEvent) String() string

type LengthError

type LengthError RequestError

func (LengthError) BadId

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 (LengthError) Error

func (err LengthError) Error() string

Error returns a rudimentary string representation of the BadLength error.

func (LengthError) SequenceId

func (err LengthError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadLength error. This is mostly used internally.

type ListExtensionsCookie

ListExtensionsCookie is a cookie used only for ListExtensions requests.

type ListExtensionsCookie struct {
    *xgb.Cookie
}

func ListExtensions

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

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 (ListExtensionsCookie) Reply

func (cook ListExtensionsCookie) Reply() (*ListExtensionsReply, error)

Reply blocks and returns the reply data for a ListExtensions request.

type ListExtensionsReply

ListExtensionsReply represents the data returned from 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)
}

type ListFontsCookie

ListFontsCookie is a cookie used only for ListFonts requests.

type ListFontsCookie struct {
    *xgb.Cookie
}

func ListFonts

func ListFonts(c *xgb.Conn, MaxNames uint16, PatternLen uint16, Pattern string) ListFontsCookie

ListFonts sends a checked request. If an error occurs, it will be returned with the reply by calling ListFontsCookie.Reply()

func ListFontsUnchecked

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 (ListFontsCookie) Reply

func (cook ListFontsCookie) Reply() (*ListFontsReply, error)

Reply blocks and returns the reply data for a ListFonts request.

type ListFontsReply

ListFontsReply represents the data returned from 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)
}

type ListFontsWithInfoCookie

ListFontsWithInfoCookie is a cookie used only for ListFontsWithInfo requests.

type ListFontsWithInfoCookie struct {
    *xgb.Cookie
}

func ListFontsWithInfo

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

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 (ListFontsWithInfoCookie) Reply

func (cook ListFontsWithInfoCookie) Reply() (*ListFontsWithInfoReply, error)

Reply blocks and returns the reply data for a ListFontsWithInfo request.

type ListFontsWithInfoReply

ListFontsWithInfoReply represents the data returned from 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))
}

type ListHostsCookie

ListHostsCookie is a cookie used only for ListHosts requests.

type ListHostsCookie struct {
    *xgb.Cookie
}

func ListHosts

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

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 (ListHostsCookie) Reply

func (cook ListHostsCookie) Reply() (*ListHostsReply, error)

Reply blocks and returns the reply data for a ListHosts request.

type ListHostsReply

ListHostsReply represents the data returned from 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)
}

type ListInstalledColormapsCookie

ListInstalledColormapsCookie is a cookie used only for ListInstalledColormaps requests.

type ListInstalledColormapsCookie struct {
    *xgb.Cookie
}

func ListInstalledColormaps

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

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 (ListInstalledColormapsCookie) Reply

func (cook ListInstalledColormapsCookie) Reply() (*ListInstalledColormapsReply, error)

Reply blocks and returns the reply data for a ListInstalledColormaps request.

type ListInstalledColormapsReply

ListInstalledColormapsReply represents the data returned from 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))
}

type ListPropertiesCookie

ListPropertiesCookie is a cookie used only for ListProperties requests.

type ListPropertiesCookie struct {
    *xgb.Cookie
}

func ListProperties

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

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 (ListPropertiesCookie) Reply

func (cook ListPropertiesCookie) Reply() (*ListPropertiesReply, error)

Reply blocks and returns the reply data for a ListProperties request.

type ListPropertiesReply

ListPropertiesReply represents the data returned from 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))
}

type LookupColorCookie

LookupColorCookie is a cookie used only for LookupColor requests.

type LookupColorCookie struct {
    *xgb.Cookie
}

func LookupColor

func LookupColor(c *xgb.Conn, Cmap Colormap, NameLen uint16, Name string) LookupColorCookie

LookupColor sends a checked request. If an error occurs, it will be returned with the reply by calling LookupColorCookie.Reply()

func LookupColorUnchecked

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 (LookupColorCookie) Reply

func (cook LookupColorCookie) Reply() (*LookupColorReply, error)

Reply blocks and returns the reply data for a LookupColor request.

type LookupColorReply

LookupColorReply represents the data returned from 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
}

type MapNotifyEvent

type MapNotifyEvent struct {
    Sequence uint16
    // padding: 1 bytes
    Event            Window
    Window           Window
    OverrideRedirect bool
}

func (MapNotifyEvent) Bytes

func (v MapNotifyEvent) Bytes() []byte

Bytes writes a MapNotifyEvent value to a byte slice.

func (MapNotifyEvent) SequenceId

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 (MapNotifyEvent) String

func (v MapNotifyEvent) String() string

String is a rudimentary string representation of MapNotifyEvent.

type MapRequestEvent

type MapRequestEvent struct {
    Sequence uint16
    // padding: 1 bytes
    Parent Window
    Window Window
}

func (MapRequestEvent) Bytes

func (v MapRequestEvent) Bytes() []byte

Bytes writes a MapRequestEvent value to a byte slice.

func (MapRequestEvent) SequenceId

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 (MapRequestEvent) String

func (v MapRequestEvent) String() string

String is a rudimentary string representation of MapRequestEvent.

type MapSubwindowsCookie

MapSubwindowsCookie is a cookie used only for MapSubwindows requests.

type MapSubwindowsCookie struct {
    *xgb.Cookie
}

func MapSubwindows

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

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 (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.

type MapWindowCookie

MapWindowCookie is a cookie used only for MapWindow requests.

type MapWindowCookie struct {
    *xgb.Cookie
}

func MapWindow

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

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 (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

type MappingNotifyEvent struct {
    Sequence uint16
    // padding: 1 bytes
    Request      byte
    FirstKeycode Keycode
    Count        byte
}

func (MappingNotifyEvent) Bytes

func (v MappingNotifyEvent) Bytes() []byte

Bytes writes a MappingNotifyEvent value to a byte slice.

func (MappingNotifyEvent) SequenceId

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 (MappingNotifyEvent) String

func (v MappingNotifyEvent) String() string

String is a rudimentary string representation of MappingNotifyEvent.

type MatchError

type MatchError RequestError

func (MatchError) BadId

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 (MatchError) Error

func (err MatchError) Error() string

Error returns a rudimentary string representation of the BadMatch error.

func (MatchError) SequenceId

func (err MatchError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadMatch error. This is mostly used internally.

type MotionNotifyEvent

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 (MotionNotifyEvent) Bytes

func (v MotionNotifyEvent) Bytes() []byte

Bytes writes a MotionNotifyEvent value to a byte slice.

func (MotionNotifyEvent) SequenceId

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 (MotionNotifyEvent) String

func (v MotionNotifyEvent) String() string

String is a rudimentary string representation of MotionNotifyEvent.

type NameError

type NameError RequestError

func (NameError) BadId

func (err NameError) BadId() uint32

BadId returns the 'BadValue' number if one exists for the BadName error. If no bad value exists, 0 is returned.

func (NameError) Error

func (err NameError) Error() string

Error returns a rudimentary string representation of the BadName error.

func (NameError) SequenceId

func (err NameError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadName error. This is mostly used internally.

type NoExposureEvent

type NoExposureEvent struct {
    Sequence uint16
    // padding: 1 bytes
    Drawable    Drawable
    MinorOpcode uint16
    MajorOpcode byte
}

func (NoExposureEvent) Bytes

func (v NoExposureEvent) Bytes() []byte

Bytes writes a NoExposureEvent value to a byte slice.

func (NoExposureEvent) SequenceId

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 (NoExposureEvent) String

func (v NoExposureEvent) String() string

String is a rudimentary string representation of NoExposureEvent.

type NoOperationCookie

NoOperationCookie is a cookie used only for NoOperation requests.

type NoOperationCookie struct {
    *xgb.Cookie
}

func NoOperation

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

func NoOperationChecked(c *xgb.Conn) NoOperationCookie

NoOperationChecked sends a checked request. If an error occurs, it can be retrieved using NoOperationCookie.Check()

func (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.

type OpenFontCookie

OpenFontCookie is a cookie used only for OpenFont requests.

type OpenFontCookie struct {
    *xgb.Cookie
}

func OpenFont

func OpenFont(c *xgb.Conn, Fid Font, NameLen uint16, Name string) OpenFontCookie

OpenFont sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func OpenFontChecked

func OpenFontChecked(c *xgb.Conn, Fid Font, NameLen uint16, Name string) OpenFontCookie

OpenFontChecked sends a checked request. If an error occurs, it can be retrieved using OpenFontCookie.Check()

func (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 Pixmap

type Pixmap uint32

func NewPixmapId

func NewPixmapId(c *xgb.Conn) (Pixmap, error)

type PixmapError

type PixmapError ValueError

func (PixmapError) BadId

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 (PixmapError) Error

func (err PixmapError) Error() string

Error returns a rudimentary string representation of the BadPixmap error.

func (PixmapError) SequenceId

func (err PixmapError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadPixmap error. This is mostly used internally.

type Point

type Point struct {
    X int16
    Y int16
}

func (Point) Bytes

func (v Point) Bytes() []byte

Bytes writes a Point value to a byte slice.

type PolyArcCookie

PolyArcCookie is a cookie used only for PolyArc requests.

type PolyArcCookie struct {
    *xgb.Cookie
}

func PolyArc

func PolyArc(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Arcs []Arc) PolyArcCookie

PolyArc sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func PolyArcChecked

func PolyArcChecked(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Arcs []Arc) PolyArcCookie

PolyArcChecked sends a checked request. If an error occurs, it can be retrieved using PolyArcCookie.Check()

func (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.

type PolyFillArcCookie

PolyFillArcCookie is a cookie used only for PolyFillArc requests.

type PolyFillArcCookie struct {
    *xgb.Cookie
}

func PolyFillArc

func PolyFillArc(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Arcs []Arc) PolyFillArcCookie

PolyFillArc sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func PolyFillArcChecked

func PolyFillArcChecked(c *xgb.Conn, Drawable Drawable, Gc Gcontext, Arcs []Arc) PolyFillArcCookie

PolyFillArcChecked sends a checked request. If an error occurs, it can be retrieved using PolyFillArcCookie.Check()

func (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.

type PolyFillRectangleCookie

PolyFillRectangleCookie is a cookie used only for PolyFillRectangle requests.

type PolyFillRectangleCookie struct {
    *xgb.Cookie
}

func PolyFillRectangle

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

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 (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.

type PolyLineCookie

PolyLineCookie is a cookie used only for PolyLine requests.

type PolyLineCookie struct {
    *xgb.Cookie
}

func PolyLine

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

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 (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.

type PolyPointCookie

PolyPointCookie is a cookie used only for PolyPoint requests.

type PolyPointCookie struct {
    *xgb.Cookie
}

func PolyPoint

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

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 (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.

type PolyRectangleCookie

PolyRectangleCookie is a cookie used only for PolyRectangle requests.

type PolyRectangleCookie struct {
    *xgb.Cookie
}

func PolyRectangle

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

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 (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.

type PolySegmentCookie

PolySegmentCookie is a cookie used only for PolySegment requests.

type PolySegmentCookie struct {
    *xgb.Cookie
}

func PolySegment

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

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 (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.

type PolyText16Cookie

PolyText16Cookie is a cookie used only for PolyText16 requests.

type PolyText16Cookie struct {
    *xgb.Cookie
}

func PolyText16

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

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 (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.

type PolyText8Cookie

PolyText8Cookie is a cookie used only for PolyText8 requests.

type PolyText8Cookie struct {
    *xgb.Cookie
}

func PolyText8

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

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 (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

type PropertyNotifyEvent struct {
    Sequence uint16
    // padding: 1 bytes
    Window Window
    Atom   Atom
    Time   Timestamp
    State  byte
}

func (PropertyNotifyEvent) Bytes

func (v PropertyNotifyEvent) Bytes() []byte

Bytes writes a PropertyNotifyEvent value to a byte slice.

func (PropertyNotifyEvent) SequenceId

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 (PropertyNotifyEvent) String

func (v PropertyNotifyEvent) String() string

String is a rudimentary string representation of PropertyNotifyEvent.

type PutImageCookie

PutImageCookie is a cookie used only for PutImage requests.

type PutImageCookie struct {
    *xgb.Cookie
}

func PutImage

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

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 (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.

type QueryBestSizeCookie

QueryBestSizeCookie is a cookie used only for QueryBestSize requests.

type QueryBestSizeCookie struct {
    *xgb.Cookie
}

func QueryBestSize

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

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 (QueryBestSizeCookie) Reply

func (cook QueryBestSizeCookie) Reply() (*QueryBestSizeReply, error)

Reply blocks and returns the reply data for a QueryBestSize request.

type QueryBestSizeReply

QueryBestSizeReply represents the data returned from 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
}

type QueryColorsCookie

QueryColorsCookie is a cookie used only for QueryColors requests.

type QueryColorsCookie struct {
    *xgb.Cookie
}

func QueryColors

func QueryColors(c *xgb.Conn, Cmap Colormap, Pixels []uint32) QueryColorsCookie

QueryColors sends a checked request. If an error occurs, it will be returned with the reply by calling QueryColorsCookie.Reply()

func QueryColorsUnchecked

func QueryColorsUnchecked(c *xgb.Conn, Cmap Colormap, Pixels []uint32) QueryColorsCookie

QueryColorsUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (QueryColorsCookie) Reply

func (cook QueryColorsCookie) Reply() (*QueryColorsReply, error)

Reply blocks and returns the reply data for a QueryColors request.

type QueryColorsReply

QueryColorsReply represents the data returned from 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))
}

type QueryExtensionCookie

QueryExtensionCookie is a cookie used only for QueryExtension requests.

type QueryExtensionCookie struct {
    *xgb.Cookie
}

func QueryExtension

func QueryExtension(c *xgb.Conn, NameLen uint16, Name string) QueryExtensionCookie

QueryExtension sends a checked request. If an error occurs, it will be returned with the reply by calling QueryExtensionCookie.Reply()

func QueryExtensionUnchecked

func QueryExtensionUnchecked(c *xgb.Conn, NameLen uint16, Name string) QueryExtensionCookie

QueryExtensionUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (QueryExtensionCookie) Reply

func (cook QueryExtensionCookie) Reply() (*QueryExtensionReply, error)

Reply blocks and returns the reply data for a QueryExtension request.

type QueryExtensionReply

QueryExtensionReply represents the data returned from 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
}

type QueryFontCookie

QueryFontCookie is a cookie used only for QueryFont requests.

type QueryFontCookie struct {
    *xgb.Cookie
}

func QueryFont

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

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 (QueryFontCookie) Reply

func (cook QueryFontCookie) Reply() (*QueryFontReply, error)

Reply blocks and returns the reply data for a QueryFont request.

type QueryFontReply

QueryFontReply represents the data returned from 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))
}

type QueryKeymapCookie

QueryKeymapCookie is a cookie used only for QueryKeymap requests.

type QueryKeymapCookie struct {
    *xgb.Cookie
}

func QueryKeymap

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

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 (QueryKeymapCookie) Reply

func (cook QueryKeymapCookie) Reply() (*QueryKeymapReply, error)

Reply blocks and returns the reply data for a QueryKeymap request.

type QueryKeymapReply

QueryKeymapReply represents the data returned from 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
}

type QueryPointerCookie

QueryPointerCookie is a cookie used only for QueryPointer requests.

type QueryPointerCookie struct {
    *xgb.Cookie
}

func QueryPointer

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

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 (QueryPointerCookie) Reply

func (cook QueryPointerCookie) Reply() (*QueryPointerReply, error)

Reply blocks and returns the reply data for a QueryPointer request.

type QueryPointerReply

QueryPointerReply represents the data returned from 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
}

type QueryTextExtentsCookie

QueryTextExtentsCookie is a cookie used only for QueryTextExtents requests.

type QueryTextExtentsCookie struct {
    *xgb.Cookie
}

func QueryTextExtents

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

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 (QueryTextExtentsCookie) Reply

func (cook QueryTextExtentsCookie) Reply() (*QueryTextExtentsReply, error)

Reply blocks and returns the reply data for a QueryTextExtents request.

type QueryTextExtentsReply

QueryTextExtentsReply represents the data returned from 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
}

type QueryTreeCookie

QueryTreeCookie is a cookie used only for QueryTree requests.

type QueryTreeCookie struct {
    *xgb.Cookie
}

func QueryTree

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

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 (QueryTreeCookie) Reply

func (cook QueryTreeCookie) Reply() (*QueryTreeReply, error)

Reply blocks and returns the reply data for a QueryTree request.

type QueryTreeReply

QueryTreeReply represents the data returned from 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))
}

type RecolorCursorCookie

RecolorCursorCookie is a cookie used only for RecolorCursor requests.

type RecolorCursorCookie struct {
    *xgb.Cookie
}

func RecolorCursor

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

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 (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.

type Rectangle

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

func (Rectangle) Bytes

func (v Rectangle) Bytes() []byte

Bytes writes a Rectangle value to a byte slice.

type ReparentNotifyEvent

type ReparentNotifyEvent struct {
    Sequence uint16
    // padding: 1 bytes
    Event            Window
    Window           Window
    Parent           Window
    X                int16
    Y                int16
    OverrideRedirect bool
}

func (ReparentNotifyEvent) Bytes

func (v ReparentNotifyEvent) Bytes() []byte

Bytes writes a ReparentNotifyEvent value to a byte slice.

func (ReparentNotifyEvent) SequenceId

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 (ReparentNotifyEvent) String

func (v ReparentNotifyEvent) String() string

String is a rudimentary string representation of ReparentNotifyEvent.

type ReparentWindowCookie

ReparentWindowCookie is a cookie used only for ReparentWindow requests.

type ReparentWindowCookie struct {
    *xgb.Cookie
}

func ReparentWindow

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

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 (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

type RequestError struct {
    Sequence    uint16
    NiceName    string
    BadValue    uint32
    MinorOpcode uint16
    MajorOpcode byte
}

func (RequestError) BadId

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 (RequestError) Error

func (err RequestError) Error() string

func (RequestError) SequenceId

func (err RequestError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadRequest error. This is mostly used internally.

type ResizeRequestEvent

type ResizeRequestEvent struct {
    Sequence uint16
    // padding: 1 bytes
    Window Window
    Width  uint16
    Height uint16
}

func (ResizeRequestEvent) Bytes

func (v ResizeRequestEvent) Bytes() []byte

Bytes writes a ResizeRequestEvent value to a byte slice.

func (ResizeRequestEvent) SequenceId

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 (ResizeRequestEvent) String

func (v ResizeRequestEvent) String() string

String is a rudimentary string representation of ResizeRequestEvent.

type Rgb

type Rgb struct {
    Red   uint16
    Green uint16
    Blue  uint16
}

func (Rgb) Bytes

func (v Rgb) Bytes() []byte

Bytes writes a Rgb value to a byte slice.

type RotatePropertiesCookie

RotatePropertiesCookie is a cookie used only for RotateProperties requests.

type RotatePropertiesCookie struct {
    *xgb.Cookie
}

func RotateProperties

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

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 (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

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 (ScreenInfo) Bytes

func (v ScreenInfo) Bytes() []byte

Bytes writes a ScreenInfo value to a byte slice.

type Segment

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

func (Segment) Bytes

func (v Segment) Bytes() []byte

Bytes writes a Segment value to a byte slice.

type SelectionClearEvent

type SelectionClearEvent struct {
    Sequence uint16
    // padding: 1 bytes
    Time      Timestamp
    Owner     Window
    Selection Atom
}

func (SelectionClearEvent) Bytes

func (v SelectionClearEvent) Bytes() []byte

Bytes writes a SelectionClearEvent value to a byte slice.

func (SelectionClearEvent) SequenceId

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 (SelectionClearEvent) String

func (v SelectionClearEvent) String() string

String is a rudimentary string representation of SelectionClearEvent.

type SelectionNotifyEvent

type SelectionNotifyEvent struct {
    Sequence uint16
    // padding: 1 bytes
    Time      Timestamp
    Requestor Window
    Selection Atom
    Target    Atom
    Property  Atom
}

func (SelectionNotifyEvent) Bytes

func (v SelectionNotifyEvent) Bytes() []byte

Bytes writes a SelectionNotifyEvent value to a byte slice.

func (SelectionNotifyEvent) SequenceId

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 (SelectionNotifyEvent) String

func (v SelectionNotifyEvent) String() string

String is a rudimentary string representation of SelectionNotifyEvent.

type SelectionRequestEvent

type SelectionRequestEvent struct {
    Sequence uint16
    // padding: 1 bytes
    Time      Timestamp
    Owner     Window
    Requestor Window
    Selection Atom
    Target    Atom
    Property  Atom
}

func (SelectionRequestEvent) Bytes

func (v SelectionRequestEvent) Bytes() []byte

Bytes writes a SelectionRequestEvent value to a byte slice.

func (SelectionRequestEvent) SequenceId

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 (SelectionRequestEvent) String

func (v SelectionRequestEvent) String() string

String is a rudimentary string representation of SelectionRequestEvent.

type SendEventCookie

SendEventCookie is a cookie used only for SendEvent requests.

type SendEventCookie struct {
    *xgb.Cookie
}

func SendEvent

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

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 (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.

type SetAccessControlCookie

SetAccessControlCookie is a cookie used only for SetAccessControl requests.

type SetAccessControlCookie struct {
    *xgb.Cookie
}

func SetAccessControl

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

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 (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.

type SetClipRectanglesCookie

SetClipRectanglesCookie is a cookie used only for SetClipRectangles requests.

type SetClipRectanglesCookie struct {
    *xgb.Cookie
}

func SetClipRectangles

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

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 (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.

type SetCloseDownModeCookie

SetCloseDownModeCookie is a cookie used only for SetCloseDownMode requests.

type SetCloseDownModeCookie struct {
    *xgb.Cookie
}

func SetCloseDownMode

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

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 (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.

type SetDashesCookie

SetDashesCookie is a cookie used only for SetDashes requests.

type SetDashesCookie struct {
    *xgb.Cookie
}

func SetDashes

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

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 (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.

type SetFontPathCookie

SetFontPathCookie is a cookie used only for SetFontPath requests.

type SetFontPathCookie struct {
    *xgb.Cookie
}

func SetFontPath

func SetFontPath(c *xgb.Conn, FontQty uint16, Font []Str) SetFontPathCookie

SetFontPath sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SetFontPathChecked

func SetFontPathChecked(c *xgb.Conn, FontQty uint16, Font []Str) SetFontPathCookie

SetFontPathChecked sends a checked request. If an error occurs, it can be retrieved using SetFontPathCookie.Check()

func (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.

type SetInputFocusCookie

SetInputFocusCookie is a cookie used only for SetInputFocus requests.

type SetInputFocusCookie struct {
    *xgb.Cookie
}

func SetInputFocus

func SetInputFocus(c *xgb.Conn, RevertTo byte, Focus Window, Time Timestamp) SetInputFocusCookie

SetInputFocus sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SetInputFocusChecked

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 (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.

type SetModifierMappingCookie

SetModifierMappingCookie is a cookie used only for SetModifierMapping requests.

type SetModifierMappingCookie struct {
    *xgb.Cookie
}

func SetModifierMapping

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

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 (SetModifierMappingCookie) Reply

func (cook SetModifierMappingCookie) Reply() (*SetModifierMappingReply, error)

Reply blocks and returns the reply data for a SetModifierMapping request.

type SetModifierMappingReply

SetModifierMappingReply represents the data returned from 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
}

type SetPointerMappingCookie

SetPointerMappingCookie is a cookie used only for SetPointerMapping requests.

type SetPointerMappingCookie struct {
    *xgb.Cookie
}

func SetPointerMapping

func SetPointerMapping(c *xgb.Conn, MapLen byte, Map []byte) SetPointerMappingCookie

SetPointerMapping sends a checked request. If an error occurs, it will be returned with the reply by calling SetPointerMappingCookie.Reply()

func SetPointerMappingUnchecked

func SetPointerMappingUnchecked(c *xgb.Conn, MapLen byte, Map []byte) SetPointerMappingCookie

SetPointerMappingUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (SetPointerMappingCookie) Reply

func (cook SetPointerMappingCookie) Reply() (*SetPointerMappingReply, error)

Reply blocks and returns the reply data for a SetPointerMapping request.

type SetPointerMappingReply

SetPointerMappingReply represents the data returned from 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
}

type SetScreenSaverCookie

SetScreenSaverCookie is a cookie used only for SetScreenSaver requests.

type SetScreenSaverCookie struct {
    *xgb.Cookie
}

func SetScreenSaver

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

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 (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.

type SetSelectionOwnerCookie

SetSelectionOwnerCookie is a cookie used only for SetSelectionOwner requests.

type SetSelectionOwnerCookie struct {
    *xgb.Cookie
}

func SetSelectionOwner

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

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 (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

type SetupAuthenticate struct {
    Status byte
    // padding: 5 bytes
    Length uint16
    Reason string // size: xgb.Pad(((int(Length) * 4) * 1))
}

func (SetupAuthenticate) Bytes

func (v SetupAuthenticate) Bytes() []byte

Bytes writes a SetupAuthenticate value to a byte slice.

type SetupFailed

type SetupFailed struct {
    Status               byte
    ReasonLen            byte
    ProtocolMajorVersion uint16
    ProtocolMinorVersion uint16
    Length               uint16
    Reason               string // size: xgb.Pad((int(ReasonLen) * 1))
}

func (SetupFailed) Bytes

func (v SetupFailed) Bytes() []byte

Bytes writes a SetupFailed value to a byte slice.

type SetupInfo

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)
}

func Setup

func Setup(c *xgb.Conn) *SetupInfo

Setup parses the setup bytes retrieved when connecting into a SetupInfo struct.

func (SetupInfo) Bytes

func (v SetupInfo) Bytes() []byte

Bytes writes a SetupInfo value to a byte slice.

func (*SetupInfo) DefaultScreen

func (s *SetupInfo) DefaultScreen(c *xgb.Conn) *ScreenInfo

DefaultScreen gets the default screen info from SetupInfo.

type SetupRequest

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 (SetupRequest) Bytes

func (v SetupRequest) Bytes() []byte

Bytes writes a SetupRequest value to a byte slice.

type StoreColorsCookie

StoreColorsCookie is a cookie used only for StoreColors requests.

type StoreColorsCookie struct {
    *xgb.Cookie
}

func StoreColors

func StoreColors(c *xgb.Conn, Cmap Colormap, Items []Coloritem) StoreColorsCookie

StoreColors sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func StoreColorsChecked

func StoreColorsChecked(c *xgb.Conn, Cmap Colormap, Items []Coloritem) StoreColorsCookie

StoreColorsChecked sends a checked request. If an error occurs, it can be retrieved using StoreColorsCookie.Check()

func (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.

type StoreNamedColorCookie

StoreNamedColorCookie is a cookie used only for StoreNamedColor requests.

type StoreNamedColorCookie struct {
    *xgb.Cookie
}

func StoreNamedColor

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

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 (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.

type Str

type Str struct {
    NameLen byte
    Name    string // size: xgb.Pad((int(NameLen) * 1))
}

func (Str) Bytes

func (v Str) Bytes() []byte

Bytes writes a Str value to a byte slice.

type Timecoord

type Timecoord struct {
    Time Timestamp
    X    int16
    Y    int16
}

func (Timecoord) Bytes

func (v Timecoord) Bytes() []byte

Bytes writes a Timecoord value to a byte slice.

type Timestamp

type Timestamp uint32

type TranslateCoordinatesCookie

TranslateCoordinatesCookie is a cookie used only for TranslateCoordinates requests.

type TranslateCoordinatesCookie struct {
    *xgb.Cookie
}

func TranslateCoordinates

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

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 (TranslateCoordinatesCookie) Reply

func (cook TranslateCoordinatesCookie) Reply() (*TranslateCoordinatesReply, error)

Reply blocks and returns the reply data for a TranslateCoordinates request.

type TranslateCoordinatesReply

TranslateCoordinatesReply represents the data returned from 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
}

type UngrabButtonCookie

UngrabButtonCookie is a cookie used only for UngrabButton requests.

type UngrabButtonCookie struct {
    *xgb.Cookie
}

func UngrabButton

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

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 (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.

type UngrabKeyCookie

UngrabKeyCookie is a cookie used only for UngrabKey requests.

type UngrabKeyCookie struct {
    *xgb.Cookie
}

func UngrabKey

func UngrabKey(c *xgb.Conn, Key Keycode, GrabWindow Window, Modifiers uint16) UngrabKeyCookie

UngrabKey sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func UngrabKeyChecked

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 (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.

type UngrabKeyboardCookie

UngrabKeyboardCookie is a cookie used only for UngrabKeyboard requests.

type UngrabKeyboardCookie struct {
    *xgb.Cookie
}

func UngrabKeyboard

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

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 (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.

type UngrabPointerCookie

UngrabPointerCookie is a cookie used only for UngrabPointer requests.

type UngrabPointerCookie struct {
    *xgb.Cookie
}

func UngrabPointer

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

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 (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.

type UngrabServerCookie

UngrabServerCookie is a cookie used only for UngrabServer requests.

type UngrabServerCookie struct {
    *xgb.Cookie
}

func UngrabServer

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

func UngrabServerChecked(c *xgb.Conn) UngrabServerCookie

UngrabServerChecked sends a checked request. If an error occurs, it can be retrieved using UngrabServerCookie.Check()

func (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.

type UninstallColormapCookie

UninstallColormapCookie is a cookie used only for UninstallColormap requests.

type UninstallColormapCookie struct {
    *xgb.Cookie
}

func UninstallColormap

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

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 (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

type UnmapNotifyEvent struct {
    Sequence uint16
    // padding: 1 bytes
    Event         Window
    Window        Window
    FromConfigure bool
}

func (UnmapNotifyEvent) Bytes

func (v UnmapNotifyEvent) Bytes() []byte

Bytes writes a UnmapNotifyEvent value to a byte slice.

func (UnmapNotifyEvent) SequenceId

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 (UnmapNotifyEvent) String

func (v UnmapNotifyEvent) String() string

String is a rudimentary string representation of UnmapNotifyEvent.

type UnmapSubwindowsCookie

UnmapSubwindowsCookie is a cookie used only for UnmapSubwindows requests.

type UnmapSubwindowsCookie struct {
    *xgb.Cookie
}

func UnmapSubwindows

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

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 (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.

type UnmapWindowCookie

UnmapWindowCookie is a cookie used only for UnmapWindow requests.

type UnmapWindowCookie struct {
    *xgb.Cookie
}

func UnmapWindow

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

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 (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

type ValueError struct {
    Sequence    uint16
    NiceName    string
    BadValue    uint32
    MinorOpcode uint16
    MajorOpcode byte
}

func (ValueError) BadId

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 (ValueError) Error

func (err ValueError) Error() string

func (ValueError) SequenceId

func (err ValueError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadValue error. This is mostly used internally.

type VisibilityNotifyEvent

type VisibilityNotifyEvent struct {
    Sequence uint16
    // padding: 1 bytes
    Window Window
    State  byte
}

func (VisibilityNotifyEvent) Bytes

func (v VisibilityNotifyEvent) Bytes() []byte

Bytes writes a VisibilityNotifyEvent value to a byte slice.

func (VisibilityNotifyEvent) SequenceId

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 (VisibilityNotifyEvent) String

func (v VisibilityNotifyEvent) String() string

String is a rudimentary string representation of VisibilityNotifyEvent.

type VisualInfo

type VisualInfo struct {
    VisualId        Visualid
    Class           byte
    BitsPerRgbValue byte
    ColormapEntries uint16
    RedMask         uint32
    GreenMask       uint32
    BlueMask        uint32
}

func (VisualInfo) Bytes

func (v VisualInfo) Bytes() []byte

Bytes writes a VisualInfo value to a byte slice.

type Visualid

type Visualid uint32

type WarpPointerCookie

WarpPointerCookie is a cookie used only for WarpPointer requests.

type WarpPointerCookie struct {
    *xgb.Cookie
}

func WarpPointer

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

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 (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 Window

type Window uint32

func NewWindowId

func NewWindowId(c *xgb.Conn) (Window, error)

type WindowError

type WindowError ValueError

func (WindowError) BadId

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 (WindowError) Error

func (err WindowError) Error() string

Error returns a rudimentary string representation of the BadWindow error.

func (WindowError) SequenceId

func (err WindowError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadWindow error. This is mostly used internally.