xgb: github.com/BurntSushi/xgb/xcmisc Index | Files

package xcmisc

import "github.com/BurntSushi/xgb/xcmisc"

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

Index

Package Files

xcmisc.go

func Init Uses

func Init(c *xgb.Conn) error

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

type GetVersionCookie Uses

type GetVersionCookie struct {
    *xgb.Cookie
}

GetVersionCookie is a cookie used only for GetVersion requests.

func GetVersion Uses

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 Uses

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 Uses

func (cook GetVersionCookie) Reply() (*GetVersionReply, error)

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

type GetVersionReply Uses

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 Uses

type GetXIDListCookie struct {
    *xgb.Cookie
}

GetXIDListCookie is a cookie used only for GetXIDList requests.

func GetXIDList Uses

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 Uses

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 Uses

func (cook GetXIDListCookie) Reply() (*GetXIDListReply, error)

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

type GetXIDListReply Uses

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 Uses

type GetXIDRangeCookie struct {
    *xgb.Cookie
}

GetXIDRangeCookie is a cookie used only for GetXIDRange requests.

func GetXIDRange Uses

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 Uses

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 Uses

func (cook GetXIDRangeCookie) Reply() (*GetXIDRangeReply, error)

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

type GetXIDRangeReply Uses

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
}

GetXIDRangeReply represents the data returned from a GetXIDRange request.

Package xcmisc imports 2 packages (graph). Updated 2016-11-06. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).