res

package
v0.0.0-...-c91279b Latest Latest
Warning

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

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

Documentation

Overview

Package res is the X client API for the X-Resource extension.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientListBytes

func ClientListBytes(buf []byte, list []Client) int

ClientListBytes writes a list of Client values to a byte slice.

func ClientRead

func ClientRead(buf []byte, v *Client) int

ClientRead reads a byte slice into a Client value.

func ClientReadList

func ClientReadList(buf []byte, dest []Client) int

ClientReadList reads a byte slice into a list of Client values.

func Init

func Init(c *xgb.Conn) error

Init must be called before using the X-Resource extension.

func TypeListBytes

func TypeListBytes(buf []byte, list []Type) int

TypeListBytes writes a list of Type values to a byte slice.

func TypeRead

func TypeRead(buf []byte, v *Type) int

TypeRead reads a byte slice into a Type value.

func TypeReadList

func TypeReadList(buf []byte, dest []Type) int

TypeReadList reads a byte slice into a list of Type values.

Types

type Client

type Client struct {
	ResourceBase uint32
	ResourceMask uint32
}

func (Client) Bytes

func (v Client) Bytes() []byte

Bytes writes a Client value to a byte slice.

type QueryClientPixmapBytesCookie

type QueryClientPixmapBytesCookie struct {
	*xgb.Cookie
}

QueryClientPixmapBytesCookie is a cookie used only for QueryClientPixmapBytes requests.

func QueryClientPixmapBytes

func QueryClientPixmapBytes(c *xgb.Conn, buf []byte, Xid uint32) (QueryClientPixmapBytesCookie, []byte)

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, buf []byte, Xid uint32) (QueryClientPixmapBytesCookie, []byte)

QueryClientPixmapBytesUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (QueryClientPixmapBytesCookie) Reply

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

type QueryClientResourcesCookie struct {
	*xgb.Cookie
}

QueryClientResourcesCookie is a cookie used only for QueryClientResources requests.

func QueryClientResources

func QueryClientResources(c *xgb.Conn, buf []byte, Xid uint32) (QueryClientResourcesCookie, []byte)

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, buf []byte, Xid uint32) (QueryClientResourcesCookie, []byte)

QueryClientResourcesUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (QueryClientResourcesCookie) Reply

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

type QueryClientsCookie struct {
	*xgb.Cookie
}

QueryClientsCookie is a cookie used only for QueryClients requests.

func QueryClients

func QueryClients(c *xgb.Conn, buf []byte) (QueryClientsCookie, []byte)

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, buf []byte) (QueryClientsCookie, []byte)

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

type QueryVersionCookie struct {
	*xgb.Cookie
}

QueryVersionCookie is a cookie used only for QueryVersion requests.

func QueryVersion

func QueryVersion(c *xgb.Conn, buf []byte, ClientMajor byte, ClientMinor byte) (QueryVersionCookie, []byte)

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, buf []byte, ClientMajor byte, ClientMinor byte) (QueryVersionCookie, []byte)

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.

type Type

type Type struct {
	ResourceType xproto.Atom
	Count        uint32
}

func (Type) Bytes

func (v Type) Bytes() []byte

Bytes writes a Type value to a byte slice.

Jump to

Keyboard shortcuts

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