...

Package xf86dri

import "github.com/jezek/xgb/xf86dri"
Overview
Index

Overview ▾

Package xf86dri is the X client API for the XFree86-DRI extension.

Index ▾

func DrmClipRectListBytes(buf []byte, list []DrmClipRect) int
func DrmClipRectRead(buf []byte, v *DrmClipRect) int
func DrmClipRectReadList(buf []byte, dest []DrmClipRect) int
func Init(c *xgb.Conn) error
type AuthConnectionCookie
    func AuthConnection(c *xgb.Conn, Screen uint32, Magic uint32) AuthConnectionCookie
    func AuthConnectionUnchecked(c *xgb.Conn, Screen uint32, Magic uint32) AuthConnectionCookie
    func (cook AuthConnectionCookie) Reply() (*AuthConnectionReply, error)
type AuthConnectionReply
type CloseConnectionCookie
    func CloseConnection(c *xgb.Conn, Screen uint32) CloseConnectionCookie
    func CloseConnectionChecked(c *xgb.Conn, Screen uint32) CloseConnectionCookie
    func (cook CloseConnectionCookie) Check() error
type CreateContextCookie
    func CreateContext(c *xgb.Conn, Screen uint32, Visual uint32, Context uint32) CreateContextCookie
    func CreateContextUnchecked(c *xgb.Conn, Screen uint32, Visual uint32, Context uint32) CreateContextCookie
    func (cook CreateContextCookie) Reply() (*CreateContextReply, error)
type CreateContextReply
type CreateDrawableCookie
    func CreateDrawable(c *xgb.Conn, Screen uint32, Drawable uint32) CreateDrawableCookie
    func CreateDrawableUnchecked(c *xgb.Conn, Screen uint32, Drawable uint32) CreateDrawableCookie
    func (cook CreateDrawableCookie) Reply() (*CreateDrawableReply, error)
type CreateDrawableReply
type DestroyContextCookie
    func DestroyContext(c *xgb.Conn, Screen uint32, Context uint32) DestroyContextCookie
    func DestroyContextChecked(c *xgb.Conn, Screen uint32, Context uint32) DestroyContextCookie
    func (cook DestroyContextCookie) Check() error
type DestroyDrawableCookie
    func DestroyDrawable(c *xgb.Conn, Screen uint32, Drawable uint32) DestroyDrawableCookie
    func DestroyDrawableChecked(c *xgb.Conn, Screen uint32, Drawable uint32) DestroyDrawableCookie
    func (cook DestroyDrawableCookie) Check() error
type DrmClipRect
    func (v DrmClipRect) Bytes() []byte
type GetClientDriverNameCookie
    func GetClientDriverName(c *xgb.Conn, Screen uint32) GetClientDriverNameCookie
    func GetClientDriverNameUnchecked(c *xgb.Conn, Screen uint32) GetClientDriverNameCookie
    func (cook GetClientDriverNameCookie) Reply() (*GetClientDriverNameReply, error)
type GetClientDriverNameReply
type GetDeviceInfoCookie
    func GetDeviceInfo(c *xgb.Conn, Screen uint32) GetDeviceInfoCookie
    func GetDeviceInfoUnchecked(c *xgb.Conn, Screen uint32) GetDeviceInfoCookie
    func (cook GetDeviceInfoCookie) Reply() (*GetDeviceInfoReply, error)
type GetDeviceInfoReply
type GetDrawableInfoCookie
    func GetDrawableInfo(c *xgb.Conn, Screen uint32, Drawable uint32) GetDrawableInfoCookie
    func GetDrawableInfoUnchecked(c *xgb.Conn, Screen uint32, Drawable uint32) GetDrawableInfoCookie
    func (cook GetDrawableInfoCookie) Reply() (*GetDrawableInfoReply, error)
type GetDrawableInfoReply
type OpenConnectionCookie
    func OpenConnection(c *xgb.Conn, Screen uint32) OpenConnectionCookie
    func OpenConnectionUnchecked(c *xgb.Conn, Screen uint32) OpenConnectionCookie
    func (cook OpenConnectionCookie) Reply() (*OpenConnectionReply, error)
type OpenConnectionReply
type QueryDirectRenderingCapableCookie
    func QueryDirectRenderingCapable(c *xgb.Conn, Screen uint32) QueryDirectRenderingCapableCookie
    func QueryDirectRenderingCapableUnchecked(c *xgb.Conn, Screen uint32) QueryDirectRenderingCapableCookie
    func (cook QueryDirectRenderingCapableCookie) Reply() (*QueryDirectRenderingCapableReply, error)
type QueryDirectRenderingCapableReply
type QueryVersionCookie
    func QueryVersion(c *xgb.Conn) QueryVersionCookie
    func QueryVersionUnchecked(c *xgb.Conn) QueryVersionCookie
    func (cook QueryVersionCookie) Reply() (*QueryVersionReply, error)
type QueryVersionReply

Package files

xf86dri.go

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.

type AuthConnectionCookie

AuthConnectionCookie is a cookie used only for AuthConnection requests.

type AuthConnectionCookie struct {
    *xgb.Cookie
}

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

func (cook AuthConnectionCookie) Reply() (*AuthConnectionReply, error)

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

type AuthConnectionReply

AuthConnectionReply represents the data returned from a AuthConnection request.

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
}

type CloseConnectionCookie

CloseConnectionCookie is a cookie used only for CloseConnection requests.

type CloseConnectionCookie struct {
    *xgb.Cookie
}

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

CreateContextCookie is a cookie used only for CreateContext requests.

type CreateContextCookie struct {
    *xgb.Cookie
}

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

CreateContextReply represents the data returned from a CreateContext request.

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
}

type CreateDrawableCookie

CreateDrawableCookie is a cookie used only for CreateDrawable requests.

type CreateDrawableCookie struct {
    *xgb.Cookie
}

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

func (cook CreateDrawableCookie) Reply() (*CreateDrawableReply, error)

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

type CreateDrawableReply

CreateDrawableReply represents the data returned from a CreateDrawable request.

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
}

type DestroyContextCookie

DestroyContextCookie is a cookie used only for DestroyContext requests.

type DestroyContextCookie struct {
    *xgb.Cookie
}

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

DestroyDrawableCookie is a cookie used only for DestroyDrawable requests.

type DestroyDrawableCookie struct {
    *xgb.Cookie
}

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

GetClientDriverNameCookie is a cookie used only for GetClientDriverName requests.

type GetClientDriverNameCookie struct {
    *xgb.Cookie
}

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

func (cook GetClientDriverNameCookie) Reply() (*GetClientDriverNameReply, error)

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

type GetClientDriverNameReply

GetClientDriverNameReply represents the data returned from a GetClientDriverName request.

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))
}

type GetDeviceInfoCookie

GetDeviceInfoCookie is a cookie used only for GetDeviceInfo requests.

type GetDeviceInfoCookie struct {
    *xgb.Cookie
}

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

GetDeviceInfoReply represents the data returned from a GetDeviceInfo request.

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))
}

type GetDrawableInfoCookie

GetDrawableInfoCookie is a cookie used only for GetDrawableInfo requests.

type GetDrawableInfoCookie struct {
    *xgb.Cookie
}

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

func (cook GetDrawableInfoCookie) Reply() (*GetDrawableInfoReply, error)

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

type GetDrawableInfoReply

GetDrawableInfoReply represents the data returned from a GetDrawableInfo request.

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))
}

type OpenConnectionCookie

OpenConnectionCookie is a cookie used only for OpenConnection requests.

type OpenConnectionCookie struct {
    *xgb.Cookie
}

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

func (cook OpenConnectionCookie) Reply() (*OpenConnectionReply, error)

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

type OpenConnectionReply

OpenConnectionReply represents the data returned from a OpenConnection request.

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))
}

type QueryDirectRenderingCapableCookie

QueryDirectRenderingCapableCookie is a cookie used only for QueryDirectRenderingCapable requests.

type QueryDirectRenderingCapableCookie struct {
    *xgb.Cookie
}

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

func (cook QueryDirectRenderingCapableCookie) Reply() (*QueryDirectRenderingCapableReply, error)

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

type QueryDirectRenderingCapableReply

QueryDirectRenderingCapableReply represents the data returned from a QueryDirectRenderingCapable request.

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
}

type QueryVersionCookie

QueryVersionCookie is a cookie used only for QueryVersion requests.

type QueryVersionCookie struct {
    *xgb.Cookie
}

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

QueryVersionReply represents the data returned from a QueryVersion request.

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
}