xcmisc

package
v0.0.0-...-deaf085 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2021 License: BSD-3-Clause, GooglePatentClause Imports: 2 Imported by: 0

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

func Init

func Init(c *xgb.Conn) error

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

Types

type GetVersionCookie

type GetVersionCookie struct {
	*xgb.Cookie
}

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

type GetXIDListCookie struct {
	*xgb.Cookie
}

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

type GetXIDRangeCookie struct {
	*xgb.Cookie
}

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.

type GetXIDRangeReply

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL