func Init(c *xgb.Conn) error
Init must be called before using the XC-MISC extension.
GetVersionCookie is a cookie used only for GetVersion requests.
type GetVersionCookie struct { *xgb.Cookie }
func GetVersion(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) GetVersionCookie
GetVersion sends a checked request. If an error occurs, it will be returned with the reply by calling GetVersionCookie.Reply()
func GetVersionUnchecked(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) GetVersionCookie
GetVersionUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetVersionCookie) Reply() (*GetVersionReply, error)
Reply blocks and returns the reply data for a GetVersion request.
GetVersionReply represents the data returned from a GetVersion request.
type GetVersionReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes ServerMajorVersion uint16 ServerMinorVersion uint16 }
GetXIDListCookie is a cookie used only for GetXIDList requests.
type GetXIDListCookie struct { *xgb.Cookie }
func GetXIDList(c *xgb.Conn, Count uint32) GetXIDListCookie
GetXIDList sends a checked request. If an error occurs, it will be returned with the reply by calling GetXIDListCookie.Reply()
func GetXIDListUnchecked(c *xgb.Conn, Count uint32) GetXIDListCookie
GetXIDListUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetXIDListCookie) Reply() (*GetXIDListReply, error)
Reply blocks and returns the reply data for a GetXIDList request.
GetXIDListReply represents the data returned from a GetXIDList request.
type GetXIDListReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes IdsLen uint32 // padding: 20 bytes Ids []uint32 // size: xgb.Pad((int(IdsLen) * 4)) }
GetXIDRangeCookie is a cookie used only for GetXIDRange requests.
type GetXIDRangeCookie struct { *xgb.Cookie }
func GetXIDRange(c *xgb.Conn) GetXIDRangeCookie
GetXIDRange sends a checked request. If an error occurs, it will be returned with the reply by calling GetXIDRangeCookie.Reply()
func GetXIDRangeUnchecked(c *xgb.Conn) GetXIDRangeCookie
GetXIDRangeUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetXIDRangeCookie) Reply() (*GetXIDRangeReply, error)
Reply blocks and returns the reply data for a GetXIDRange request.
GetXIDRangeReply represents the data returned from a GetXIDRange request.
type GetXIDRangeReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes StartId uint32 Count uint32 }