res

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: BSD-3-Clause, GooglePatentClause Imports: 6 Imported by: 0

Documentation

Overview

FILE GENERATED AUTOMATICALLY FROM "res.xml"

Index

Constants

View Source
const (
	// ExtName is the user-friendly name string of this X extension.
	ExtName = "Res"

	// ExtXName is the name string this extension is known by to the X server.
	ExtXName = "X-Resource"
)
View Source
const (
	ClientIdMaskClientXID      = 1
	ClientIdMaskLocalClientPID = 2
)

Variables

This section is empty.

Functions

func ClientIdSpecListBytes

func ClientIdSpecListBytes(buf []byte, list []ClientIdSpec) int

ClientIdSpecListBytes writes a list of ClientIdSpec values to a byte slice.

func ClientIdSpecRead

func ClientIdSpecRead(buf []byte, v *ClientIdSpec) int

ClientIdSpecRead reads a byte slice into a ClientIdSpec value.

func ClientIdSpecReadList

func ClientIdSpecReadList(buf []byte, dest []ClientIdSpec) int

ClientIdSpecReadList reads a byte slice into a list of ClientIdSpec values.

func ClientIdValueListBytes

func ClientIdValueListBytes(buf []byte, list []ClientIdValue) int

ClientIdValueListBytes writes a list of ClientIdValue values to a byte slice.

func ClientIdValueListSize

func ClientIdValueListSize(list []ClientIdValue) int

ClientIdValueListSize computes the size (bytes) of a list of ClientIdValue values.

func ClientIdValueRead

func ClientIdValueRead(buf []byte, v *ClientIdValue) int

ClientIdValueRead reads a byte slice into a ClientIdValue value.

func ClientIdValueReadList

func ClientIdValueReadList(buf []byte, dest []ClientIdValue) int

ClientIdValueReadList reads a byte slice into a list of ClientIdValue values.

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 QueryClientIdsUnchecked

func QueryClientIdsUnchecked(c *xgb.XConn, NumSpecs uint32, Specs []ClientIdSpec) error

QueryClientIdsUnchecked sends an unchecked request.

func QueryClientPixmapBytesUnchecked

func QueryClientPixmapBytesUnchecked(c *xgb.XConn, Xid uint32) error

QueryClientPixmapBytesUnchecked sends an unchecked request.

func QueryClientResourcesUnchecked

func QueryClientResourcesUnchecked(c *xgb.XConn, Xid uint32) error

QueryClientResourcesUnchecked sends an unchecked request.

func QueryClientsUnchecked

func QueryClientsUnchecked(c *xgb.XConn) error

QueryClientsUnchecked sends an unchecked request.

func QueryResourceBytesUnchecked

func QueryResourceBytesUnchecked(c *xgb.XConn, Client uint32, NumSpecs uint32, Specs []ResourceIdSpec) error

QueryResourceBytesUnchecked sends an unchecked request.

func QueryVersionUnchecked

func QueryVersionUnchecked(c *xgb.XConn, ClientMajor byte, ClientMinor byte) error

QueryVersionUnchecked sends an unchecked request.

func Register added in v1.1.0

func Register(xconn *xgb.XConn) error

Register will query the X server for Res extension support, and register relevant extension unmarshalers with the XConn.

func ResourceIdSpecListBytes

func ResourceIdSpecListBytes(buf []byte, list []ResourceIdSpec) int

ResourceIdSpecListBytes writes a list of ResourceIdSpec values to a byte slice.

func ResourceIdSpecRead

func ResourceIdSpecRead(buf []byte, v *ResourceIdSpec) int

ResourceIdSpecRead reads a byte slice into a ResourceIdSpec value.

func ResourceIdSpecReadList

func ResourceIdSpecReadList(buf []byte, dest []ResourceIdSpec) int

ResourceIdSpecReadList reads a byte slice into a list of ResourceIdSpec values.

func ResourceSizeSpecListBytes

func ResourceSizeSpecListBytes(buf []byte, list []ResourceSizeSpec) int

ResourceSizeSpecListBytes writes a list of ResourceSizeSpec values to a byte slice.

func ResourceSizeSpecRead

func ResourceSizeSpecRead(buf []byte, v *ResourceSizeSpec) int

ResourceSizeSpecRead reads a byte slice into a ResourceSizeSpec value.

func ResourceSizeSpecReadList

func ResourceSizeSpecReadList(buf []byte, dest []ResourceSizeSpec) int

ResourceSizeSpecReadList reads a byte slice into a list of ResourceSizeSpec values.

func ResourceSizeValueListBytes

func ResourceSizeValueListBytes(buf []byte, list []ResourceSizeValue) int

ResourceSizeValueListBytes writes a list of ResourceSizeValue values to a byte slice.

func ResourceSizeValueListSize

func ResourceSizeValueListSize(list []ResourceSizeValue) int

ResourceSizeValueListSize computes the size (bytes) of a list of ResourceSizeValue values.

func ResourceSizeValueRead

func ResourceSizeValueRead(buf []byte, v *ResourceSizeValue) int

ResourceSizeValueRead reads a byte slice into a ResourceSizeValue value.

func ResourceSizeValueReadList

func ResourceSizeValueReadList(buf []byte, dest []ResourceSizeValue) int

ResourceSizeValueReadList reads a byte slice into a list of ResourceSizeValue values.

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 ClientIdSpec

type ClientIdSpec struct {
	Client uint32
	Mask   uint32
}

func (ClientIdSpec) Bytes

func (v ClientIdSpec) Bytes() []byte

Bytes writes a ClientIdSpec value to a byte slice.

type ClientIdValue

type ClientIdValue struct {
	Spec   ClientIdSpec
	Length uint32
	Value  []uint32 // size: internal.Pad4(((int(Length) / 4) * 4))
}

func (ClientIdValue) Bytes

func (v ClientIdValue) Bytes() []byte

Bytes writes a ClientIdValue value to a byte slice.

type QueryClientIdsReply

type QueryClientIdsReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	NumIds uint32
	// padding: 20 bytes
	Ids []ClientIdValue // size: ClientIdValueListSize(Ids)
}

QueryClientIdsReply represents the data returned from a QueryClientIds request.

func QueryClientIds

func QueryClientIds(c *xgb.XConn, NumSpecs uint32, Specs []ClientIdSpec) (QueryClientIdsReply, error)

QueryClientIds sends a checked request.

func (*QueryClientIdsReply) Unmarshal added in v1.1.0

func (v *QueryClientIdsReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a QueryClientIdsReply value.

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.

func QueryClientPixmapBytes

func QueryClientPixmapBytes(c *xgb.XConn, Xid uint32) (QueryClientPixmapBytesReply, error)

QueryClientPixmapBytes sends a checked request.

func (*QueryClientPixmapBytesReply) Unmarshal added in v1.1.0

func (v *QueryClientPixmapBytesReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a QueryClientPixmapBytesReply value.

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: internal.Pad4((int(NumTypes) * 8))
}

QueryClientResourcesReply represents the data returned from a QueryClientResources request.

func QueryClientResources

func QueryClientResources(c *xgb.XConn, Xid uint32) (QueryClientResourcesReply, error)

QueryClientResources sends a checked request.

func (*QueryClientResourcesReply) Unmarshal added in v1.1.0

func (v *QueryClientResourcesReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a QueryClientResourcesReply value.

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: internal.Pad4((int(NumClients) * 8))
}

QueryClientsReply represents the data returned from a QueryClients request.

func QueryClients

func QueryClients(c *xgb.XConn) (QueryClientsReply, error)

QueryClients sends a checked request.

func (*QueryClientsReply) Unmarshal added in v1.1.0

func (v *QueryClientsReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a QueryClientsReply value.

type QueryResourceBytesReply

type QueryResourceBytesReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	NumSizes uint32
	// padding: 20 bytes
	Sizes []ResourceSizeValue // size: ResourceSizeValueListSize(Sizes)
}

QueryResourceBytesReply represents the data returned from a QueryResourceBytes request.

func QueryResourceBytes

func QueryResourceBytes(c *xgb.XConn, Client uint32, NumSpecs uint32, Specs []ResourceIdSpec) (QueryResourceBytesReply, error)

QueryResourceBytes sends a checked request.

func (*QueryResourceBytesReply) Unmarshal added in v1.1.0

func (v *QueryResourceBytesReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a QueryResourceBytesReply value.

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.

func QueryVersion

func QueryVersion(c *xgb.XConn, ClientMajor byte, ClientMinor byte) (QueryVersionReply, error)

QueryVersion sends a checked request.

func (*QueryVersionReply) Unmarshal added in v1.1.0

func (v *QueryVersionReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a QueryVersionReply value.

type ResourceIdSpec

type ResourceIdSpec struct {
	Resource uint32
	Type     uint32
}

func (ResourceIdSpec) Bytes

func (v ResourceIdSpec) Bytes() []byte

Bytes writes a ResourceIdSpec value to a byte slice.

type ResourceSizeSpec

type ResourceSizeSpec struct {
	Spec     ResourceIdSpec
	Bytes_   uint32
	RefCount uint32
	UseCount uint32
}

func (ResourceSizeSpec) Bytes

func (v ResourceSizeSpec) Bytes() []byte

Bytes writes a ResourceSizeSpec value to a byte slice.

type ResourceSizeValue

type ResourceSizeValue struct {
	Size               ResourceSizeSpec
	NumCrossReferences uint32
	CrossReferences    []ResourceSizeSpec // size: internal.Pad4((int(NumCrossReferences) * 20))
}

func (ResourceSizeValue) Bytes

func (v ResourceSizeValue) Bytes() []byte

Bytes writes a ResourceSizeValue value to a byte slice.

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