xgb: github.com/BurntSushi/xgb/xf86dri Index | Files

package xf86dri

import "github.com/BurntSushi/xgb/xf86dri"

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

Index

Package Files

xf86dri.go

func DrmClipRectListBytes Uses

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

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

func DrmClipRectRead Uses

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

DrmClipRectRead reads a byte slice into a DrmClipRect value.

func DrmClipRectReadList Uses

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

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

func Init Uses

func Init(c *xgb.Conn) error

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

type AuthConnectionCookie Uses

type AuthConnectionCookie struct {
    *xgb.Cookie
}

AuthConnectionCookie is a cookie used only for AuthConnection requests.

func AuthConnection Uses

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 Uses

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 Uses

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

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

type AuthConnectionReply Uses

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 Uses

type CloseConnectionCookie struct {
    *xgb.Cookie
}

CloseConnectionCookie is a cookie used only for CloseConnection requests.

func CloseConnection Uses

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 Uses

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 Uses

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 Uses

type CreateContextCookie struct {
    *xgb.Cookie
}

CreateContextCookie is a cookie used only for CreateContext requests.

func CreateContext Uses

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 Uses

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 Uses

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

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

type CreateContextReply Uses

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 Uses

type CreateDrawableCookie struct {
    *xgb.Cookie
}

CreateDrawableCookie is a cookie used only for CreateDrawable requests.

func CreateDrawable Uses

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 Uses

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 Uses

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

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

type CreateDrawableReply Uses

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 Uses

type DestroyContextCookie struct {
    *xgb.Cookie
}

DestroyContextCookie is a cookie used only for DestroyContext requests.

func DestroyContext Uses

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 Uses

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 Uses

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 Uses

type DestroyDrawableCookie struct {
    *xgb.Cookie
}

DestroyDrawableCookie is a cookie used only for DestroyDrawable requests.

func DestroyDrawable Uses

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 Uses

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 Uses

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 Uses

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

func (DrmClipRect) Bytes Uses

func (v DrmClipRect) Bytes() []byte

Bytes writes a DrmClipRect value to a byte slice.

type GetClientDriverNameCookie Uses

type GetClientDriverNameCookie struct {
    *xgb.Cookie
}

GetClientDriverNameCookie is a cookie used only for GetClientDriverName requests.

func GetClientDriverName Uses

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 Uses

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 Uses

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

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

type GetClientDriverNameReply Uses

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 Uses

type GetDeviceInfoCookie struct {
    *xgb.Cookie
}

GetDeviceInfoCookie is a cookie used only for GetDeviceInfo requests.

func GetDeviceInfo Uses

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 Uses

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 Uses

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

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

type GetDeviceInfoReply Uses

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 Uses

type GetDrawableInfoCookie struct {
    *xgb.Cookie
}

GetDrawableInfoCookie is a cookie used only for GetDrawableInfo requests.

func GetDrawableInfo Uses

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 Uses

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 Uses

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

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

type GetDrawableInfoReply Uses

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 Uses

type OpenConnectionCookie struct {
    *xgb.Cookie
}

OpenConnectionCookie is a cookie used only for OpenConnection requests.

func OpenConnection Uses

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 Uses

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 Uses

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

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

type OpenConnectionReply Uses

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 Uses

type QueryDirectRenderingCapableCookie struct {
    *xgb.Cookie
}

QueryDirectRenderingCapableCookie is a cookie used only for QueryDirectRenderingCapable requests.

func QueryDirectRenderingCapable Uses

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 Uses

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 Uses

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

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

type QueryDirectRenderingCapableReply Uses

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 Uses

type QueryVersionCookie struct {
    *xgb.Cookie
}

QueryVersionCookie is a cookie used only for QueryVersion requests.

func QueryVersion Uses

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 Uses

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 Uses

func (cook QueryVersionCookie) Reply() (*QueryVersionReply, error)

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

type QueryVersionReply Uses

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.

Package xf86dri imports 2 packages (graph). Updated 2016-11-06. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).