xf86dri

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 xf86dri is the X client API for the XFree86-DRI extension.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrmClipRectListBytes

func DrmClipRectListBytes(buf []byte, list []DrmClipRect) int

DrmClipRectListBytes writes a list of DrmClipRect values to a byte slice.

func DrmClipRectRead

func DrmClipRectRead(buf []byte, v *DrmClipRect) int

DrmClipRectRead reads a byte slice into a DrmClipRect value.

func DrmClipRectReadList

func DrmClipRectReadList(buf []byte, dest []DrmClipRect) int

DrmClipRectReadList reads a byte slice into a list of DrmClipRect values.

func Init

func Init(c *xgb.Conn) error

Init must be called before using the XFree86-DRI extension.

Types

type AuthConnectionCookie

type AuthConnectionCookie struct {
	*xgb.Cookie
}

AuthConnectionCookie is a cookie used only for AuthConnection requests.

func AuthConnection

func AuthConnection(c *xgb.Conn, Screen uint32, Magic uint32) AuthConnectionCookie

AuthConnection sends a checked request. If an error occurs, it will be returned with the reply by calling AuthConnectionCookie.Reply()

func AuthConnectionUnchecked

func AuthConnectionUnchecked(c *xgb.Conn, Screen uint32, Magic uint32) AuthConnectionCookie

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

func (AuthConnectionCookie) Reply

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

type AuthConnectionReply

type AuthConnectionReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Authenticated uint32
}

AuthConnectionReply represents the data returned from a AuthConnection request.

type CloseConnectionCookie

type CloseConnectionCookie struct {
	*xgb.Cookie
}

CloseConnectionCookie is a cookie used only for CloseConnection requests.

func CloseConnection

func CloseConnection(c *xgb.Conn, Screen uint32) CloseConnectionCookie

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

func CloseConnectionChecked

func CloseConnectionChecked(c *xgb.Conn, Screen uint32) CloseConnectionCookie

CloseConnectionChecked sends a checked request. If an error occurs, it can be retrieved using CloseConnectionCookie.Check()

func (CloseConnectionCookie) Check

func (cook CloseConnectionCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type CreateContextCookie

type CreateContextCookie struct {
	*xgb.Cookie
}

CreateContextCookie is a cookie used only for CreateContext requests.

func CreateContext

func CreateContext(c *xgb.Conn, Screen uint32, Visual uint32, Context uint32) CreateContextCookie

CreateContext sends a checked request. If an error occurs, it will be returned with the reply by calling CreateContextCookie.Reply()

func CreateContextUnchecked

func CreateContextUnchecked(c *xgb.Conn, Screen uint32, Visual uint32, Context uint32) CreateContextCookie

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

func (CreateContextCookie) Reply

func (cook CreateContextCookie) Reply() (*CreateContextReply, error)

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

type CreateContextReply

type CreateContextReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	HwContext uint32
}

CreateContextReply represents the data returned from a CreateContext request.

type CreateDrawableCookie

type CreateDrawableCookie struct {
	*xgb.Cookie
}

CreateDrawableCookie is a cookie used only for CreateDrawable requests.

func CreateDrawable

func CreateDrawable(c *xgb.Conn, Screen uint32, Drawable uint32) CreateDrawableCookie

CreateDrawable sends a checked request. If an error occurs, it will be returned with the reply by calling CreateDrawableCookie.Reply()

func CreateDrawableUnchecked

func CreateDrawableUnchecked(c *xgb.Conn, Screen uint32, Drawable uint32) CreateDrawableCookie

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

func (CreateDrawableCookie) Reply

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

type CreateDrawableReply

type CreateDrawableReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	HwDrawableHandle uint32
}

CreateDrawableReply represents the data returned from a CreateDrawable request.

type DestroyContextCookie

type DestroyContextCookie struct {
	*xgb.Cookie
}

DestroyContextCookie is a cookie used only for DestroyContext requests.

func DestroyContext

func DestroyContext(c *xgb.Conn, Screen uint32, Context uint32) DestroyContextCookie

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

func DestroyContextChecked

func DestroyContextChecked(c *xgb.Conn, Screen uint32, Context uint32) DestroyContextCookie

DestroyContextChecked sends a checked request. If an error occurs, it can be retrieved using DestroyContextCookie.Check()

func (DestroyContextCookie) Check

func (cook DestroyContextCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type DestroyDrawableCookie

type DestroyDrawableCookie struct {
	*xgb.Cookie
}

DestroyDrawableCookie is a cookie used only for DestroyDrawable requests.

func DestroyDrawable

func DestroyDrawable(c *xgb.Conn, Screen uint32, Drawable uint32) DestroyDrawableCookie

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

func DestroyDrawableChecked

func DestroyDrawableChecked(c *xgb.Conn, Screen uint32, Drawable uint32) DestroyDrawableCookie

DestroyDrawableChecked sends a checked request. If an error occurs, it can be retrieved using DestroyDrawableCookie.Check()

func (DestroyDrawableCookie) Check

func (cook DestroyDrawableCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type DrmClipRect

type DrmClipRect struct {
	X1 int16
	Y1 int16
	X2 int16
	X3 int16
}

func (DrmClipRect) Bytes

func (v DrmClipRect) Bytes() []byte

Bytes writes a DrmClipRect value to a byte slice.

type GetClientDriverNameCookie

type GetClientDriverNameCookie struct {
	*xgb.Cookie
}

GetClientDriverNameCookie is a cookie used only for GetClientDriverName requests.

func GetClientDriverName

func GetClientDriverName(c *xgb.Conn, Screen uint32) GetClientDriverNameCookie

GetClientDriverName sends a checked request. If an error occurs, it will be returned with the reply by calling GetClientDriverNameCookie.Reply()

func GetClientDriverNameUnchecked

func GetClientDriverNameUnchecked(c *xgb.Conn, Screen uint32) GetClientDriverNameCookie

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

func (GetClientDriverNameCookie) Reply

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

type GetClientDriverNameReply

type GetClientDriverNameReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	ClientDriverMajorVersion uint32
	ClientDriverMinorVersion uint32
	ClientDriverPatchVersion uint32
	ClientDriverNameLen      uint32
	// padding: 8 bytes
	ClientDriverName string // size: xgb.Pad((int(ClientDriverNameLen) * 1))
}

GetClientDriverNameReply represents the data returned from a GetClientDriverName request.

type GetDeviceInfoCookie

type GetDeviceInfoCookie struct {
	*xgb.Cookie
}

GetDeviceInfoCookie is a cookie used only for GetDeviceInfo requests.

func GetDeviceInfo

func GetDeviceInfo(c *xgb.Conn, Screen uint32) GetDeviceInfoCookie

GetDeviceInfo sends a checked request. If an error occurs, it will be returned with the reply by calling GetDeviceInfoCookie.Reply()

func GetDeviceInfoUnchecked

func GetDeviceInfoUnchecked(c *xgb.Conn, Screen uint32) GetDeviceInfoCookie

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

func (GetDeviceInfoCookie) Reply

func (cook GetDeviceInfoCookie) Reply() (*GetDeviceInfoReply, error)

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

type GetDeviceInfoReply

type GetDeviceInfoReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	FramebufferHandleLow    uint32
	FramebufferHandleHigh   uint32
	FramebufferOriginOffset uint32
	FramebufferSize         uint32
	FramebufferStride       uint32
	DevicePrivateSize       uint32
	DevicePrivate           []uint32 // size: xgb.Pad((int(DevicePrivateSize) * 4))
}

GetDeviceInfoReply represents the data returned from a GetDeviceInfo request.

type GetDrawableInfoCookie

type GetDrawableInfoCookie struct {
	*xgb.Cookie
}

GetDrawableInfoCookie is a cookie used only for GetDrawableInfo requests.

func GetDrawableInfo

func GetDrawableInfo(c *xgb.Conn, Screen uint32, Drawable uint32) GetDrawableInfoCookie

GetDrawableInfo sends a checked request. If an error occurs, it will be returned with the reply by calling GetDrawableInfoCookie.Reply()

func GetDrawableInfoUnchecked

func GetDrawableInfoUnchecked(c *xgb.Conn, Screen uint32, Drawable uint32) GetDrawableInfoCookie

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

func (GetDrawableInfoCookie) Reply

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

type GetDrawableInfoReply

type GetDrawableInfoReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	DrawableTableIndex uint32
	DrawableTableStamp uint32
	DrawableOriginX    int16
	DrawableOriginY    int16
	DrawableSizeW      int16
	DrawableSizeH      int16
	NumClipRects       uint32
	BackX              int16
	BackY              int16
	NumBackClipRects   uint32
	ClipRects          []DrmClipRect // size: xgb.Pad((int(NumClipRects) * 8))
	// alignment gap to multiple of 4
	BackClipRects []DrmClipRect // size: xgb.Pad((int(NumBackClipRects) * 8))
}

GetDrawableInfoReply represents the data returned from a GetDrawableInfo request.

type OpenConnectionCookie

type OpenConnectionCookie struct {
	*xgb.Cookie
}

OpenConnectionCookie is a cookie used only for OpenConnection requests.

func OpenConnection

func OpenConnection(c *xgb.Conn, Screen uint32) OpenConnectionCookie

OpenConnection sends a checked request. If an error occurs, it will be returned with the reply by calling OpenConnectionCookie.Reply()

func OpenConnectionUnchecked

func OpenConnectionUnchecked(c *xgb.Conn, Screen uint32) OpenConnectionCookie

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

func (OpenConnectionCookie) Reply

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

type OpenConnectionReply

type OpenConnectionReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	SareaHandleLow  uint32
	SareaHandleHigh uint32
	BusIdLen        uint32
	// padding: 12 bytes
	BusId string // size: xgb.Pad((int(BusIdLen) * 1))
}

OpenConnectionReply represents the data returned from a OpenConnection request.

type QueryDirectRenderingCapableCookie

type QueryDirectRenderingCapableCookie struct {
	*xgb.Cookie
}

QueryDirectRenderingCapableCookie is a cookie used only for QueryDirectRenderingCapable requests.

func QueryDirectRenderingCapable

func QueryDirectRenderingCapable(c *xgb.Conn, Screen uint32) QueryDirectRenderingCapableCookie

QueryDirectRenderingCapable sends a checked request. If an error occurs, it will be returned with the reply by calling QueryDirectRenderingCapableCookie.Reply()

func QueryDirectRenderingCapableUnchecked

func QueryDirectRenderingCapableUnchecked(c *xgb.Conn, Screen uint32) QueryDirectRenderingCapableCookie

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

func (QueryDirectRenderingCapableCookie) Reply

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

type QueryDirectRenderingCapableReply

type QueryDirectRenderingCapableReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	IsCapable bool
}

QueryDirectRenderingCapableReply represents the data returned from a QueryDirectRenderingCapable request.

type QueryVersionCookie

type QueryVersionCookie struct {
	*xgb.Cookie
}

QueryVersionCookie is a cookie used only for QueryVersion requests.

func QueryVersion

func QueryVersion(c *xgb.Conn) 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) 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
	DriMajorVersion uint16
	DriMinorVersion uint16
	DriMinorPatch   uint32
}

QueryVersionReply represents the data returned from a QueryVersion request.

Jump to

Keyboard shortcuts

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