...

Package xcmisc

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

Overview ▾

Package xcmisc is the X client API for the XC-MISC extension.

func Init

func Init(c *xgb.Conn) error

Init must be called before using the XC-MISC extension.

type GetVersionCookie

GetVersionCookie is a cookie used only for GetVersion requests.

type GetVersionCookie struct {
    *xgb.Cookie
}

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

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
}

type GetXIDListCookie

GetXIDListCookie is a cookie used only for GetXIDList requests.

type GetXIDListCookie struct {
    *xgb.Cookie
}

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

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

type GetXIDRangeCookie

GetXIDRangeCookie is a cookie used only for GetXIDRange requests.

type GetXIDRangeCookie struct {
    *xgb.Cookie
}

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.

type GetXIDRangeReply

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
}