Documentation ¶
Overview ¶
Package xcmisc is the X client API for the XC-MISC extension.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GetVersionCookie ¶
GetVersionCookie is a cookie used only for GetVersion requests.
func GetVersion ¶
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 ¶
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 (GetVersionCookie) Reply ¶
func (cook GetVersionCookie) Reply() (*GetVersionReply, error)
Reply blocks and returns the reply data for a GetVersion request.
type GetVersionReply ¶
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 }
GetVersionReply represents the data returned from a GetVersion request.
type GetXIDListCookie ¶
GetXIDListCookie is a cookie used only for GetXIDList requests.
func GetXIDList ¶
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 ¶
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 (GetXIDListCookie) Reply ¶
func (cook GetXIDListCookie) Reply() (*GetXIDListReply, error)
Reply blocks and returns the reply data for a GetXIDList request.
type GetXIDListReply ¶
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)) }
GetXIDListReply represents the data returned from a GetXIDList request.
type GetXIDRangeCookie ¶
GetXIDRangeCookie is a cookie used only for GetXIDRange requests.
func GetXIDRange ¶
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 ¶
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 (GetXIDRangeCookie) Reply ¶
func (cook GetXIDRangeCookie) Reply() (*GetXIDRangeReply, error)
Reply blocks and returns the reply data for a GetXIDRange request.