Documentation ¶
Overview ¶
Package res is the X client API for the X-Resource extension.
Index ¶
- func ClientListBytes(buf []byte, list []Client) int
- func ClientRead(buf []byte, v *Client) int
- func ClientReadList(buf []byte, dest []Client) int
- func Init(c *xgb.Conn) error
- func TypeListBytes(buf []byte, list []Type) int
- func TypeRead(buf []byte, v *Type) int
- func TypeReadList(buf []byte, dest []Type) int
- type Client
- type QueryClientPixmapBytesCookie
- type QueryClientPixmapBytesReply
- type QueryClientResourcesCookie
- type QueryClientResourcesReply
- type QueryClientsCookie
- type QueryClientsReply
- type QueryVersionCookie
- type QueryVersionReply
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientListBytes ¶
ClientListBytes writes a list of Client values to a byte slice.
func ClientRead ¶
ClientRead reads a byte slice into a Client value.
func ClientReadList ¶
ClientReadList reads a byte slice into a list of Client values.
func TypeListBytes ¶
TypeListBytes writes a list of Type values to a byte slice.
func TypeReadList ¶
TypeReadList reads a byte slice into a list of Type values.
Types ¶
type QueryClientPixmapBytesCookie ¶
QueryClientPixmapBytesCookie is a cookie used only for QueryClientPixmapBytes requests.
func QueryClientPixmapBytes ¶
func QueryClientPixmapBytes(c *xgb.Conn, Xid uint32) QueryClientPixmapBytesCookie
QueryClientPixmapBytes sends a checked request. If an error occurs, it will be returned with the reply by calling QueryClientPixmapBytesCookie.Reply()
func QueryClientPixmapBytesUnchecked ¶
func QueryClientPixmapBytesUnchecked(c *xgb.Conn, Xid uint32) QueryClientPixmapBytesCookie
QueryClientPixmapBytesUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (QueryClientPixmapBytesCookie) Reply ¶
func (cook QueryClientPixmapBytesCookie) Reply() (*QueryClientPixmapBytesReply, error)
Reply blocks and returns the reply data for a QueryClientPixmapBytes request.
type QueryClientPixmapBytesReply ¶
type QueryClientPixmapBytesReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes Bytes uint32 BytesOverflow uint32 }
QueryClientPixmapBytesReply represents the data returned from a QueryClientPixmapBytes request.
type QueryClientResourcesCookie ¶
QueryClientResourcesCookie is a cookie used only for QueryClientResources requests.
func QueryClientResources ¶
func QueryClientResources(c *xgb.Conn, Xid uint32) QueryClientResourcesCookie
QueryClientResources sends a checked request. If an error occurs, it will be returned with the reply by calling QueryClientResourcesCookie.Reply()
func QueryClientResourcesUnchecked ¶
func QueryClientResourcesUnchecked(c *xgb.Conn, Xid uint32) QueryClientResourcesCookie
QueryClientResourcesUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (QueryClientResourcesCookie) Reply ¶
func (cook QueryClientResourcesCookie) Reply() (*QueryClientResourcesReply, error)
Reply blocks and returns the reply data for a QueryClientResources request.
type QueryClientResourcesReply ¶
type QueryClientResourcesReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes NumTypes uint32 // padding: 20 bytes Types []Type // size: xgb.Pad((int(NumTypes) * 8)) }
QueryClientResourcesReply represents the data returned from a QueryClientResources request.
type QueryClientsCookie ¶
QueryClientsCookie is a cookie used only for QueryClients requests.
func QueryClients ¶
func QueryClients(c *xgb.Conn) QueryClientsCookie
QueryClients sends a checked request. If an error occurs, it will be returned with the reply by calling QueryClientsCookie.Reply()
func QueryClientsUnchecked ¶
func QueryClientsUnchecked(c *xgb.Conn) QueryClientsCookie
QueryClientsUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (QueryClientsCookie) Reply ¶
func (cook QueryClientsCookie) Reply() (*QueryClientsReply, error)
Reply blocks and returns the reply data for a QueryClients request.
type QueryClientsReply ¶
type QueryClientsReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes NumClients uint32 // padding: 20 bytes Clients []Client // size: xgb.Pad((int(NumClients) * 8)) }
QueryClientsReply represents the data returned from a QueryClients request.
type QueryVersionCookie ¶
QueryVersionCookie is a cookie used only for QueryVersion requests.
func QueryVersion ¶
func QueryVersion(c *xgb.Conn, ClientMajor byte, ClientMinor byte) QueryVersionCookie
QueryVersion sends a checked request. If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
func QueryVersionUnchecked ¶
func QueryVersionUnchecked(c *xgb.Conn, ClientMajor byte, ClientMinor byte) QueryVersionCookie
QueryVersionUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (QueryVersionCookie) Reply ¶
func (cook QueryVersionCookie) Reply() (*QueryVersionReply, error)
Reply blocks and returns the reply data for a QueryVersion request.
type QueryVersionReply ¶
type QueryVersionReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes ServerMajor uint16 ServerMinor uint16 }
QueryVersionReply represents the data returned from a QueryVersion request.