func DrmClipRectListBytes(buf []byte, list []DrmClipRect) int
DrmClipRectListBytes writes a list of DrmClipRect values to a byte slice.
func DrmClipRectRead(buf []byte, v *DrmClipRect) int
DrmClipRectRead reads a byte slice into a DrmClipRect value.
func DrmClipRectReadList(buf []byte, dest []DrmClipRect) int
DrmClipRectReadList reads a byte slice into a list of DrmClipRect values.
func Init(c *xgb.Conn) error
Init must be called before using the XFree86-DRI extension.
AuthConnectionCookie is a cookie used only for AuthConnection requests.
type AuthConnectionCookie struct { *xgb.Cookie }
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(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 (cook AuthConnectionCookie) Reply() (*AuthConnectionReply, error)
Reply blocks and returns the reply data for a AuthConnection request.
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 }
CloseConnectionCookie is a cookie used only for CloseConnection requests.
type CloseConnectionCookie struct { *xgb.Cookie }
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(c *xgb.Conn, Screen uint32) CloseConnectionCookie
CloseConnectionChecked sends a checked request. If an error occurs, it can be retrieved using 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.
CreateContextCookie is a cookie used only for CreateContext requests.
type CreateContextCookie struct { *xgb.Cookie }
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(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 (cook CreateContextCookie) Reply() (*CreateContextReply, error)
Reply blocks and returns the reply data for a CreateContext request.
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 }
CreateDrawableCookie is a cookie used only for CreateDrawable requests.
type CreateDrawableCookie struct { *xgb.Cookie }
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(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 (cook CreateDrawableCookie) Reply() (*CreateDrawableReply, error)
Reply blocks and returns the reply data for a CreateDrawable request.
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 }
DestroyContextCookie is a cookie used only for DestroyContext requests.
type DestroyContextCookie struct { *xgb.Cookie }
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(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 (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.
DestroyDrawableCookie is a cookie used only for DestroyDrawable requests.
type DestroyDrawableCookie struct { *xgb.Cookie }
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(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 (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 struct { X1 int16 Y1 int16 X2 int16 X3 int16 }
func (v DrmClipRect) Bytes() []byte
Bytes writes a DrmClipRect value to a byte slice.
GetClientDriverNameCookie is a cookie used only for GetClientDriverName requests.
type GetClientDriverNameCookie struct { *xgb.Cookie }
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(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 (cook GetClientDriverNameCookie) Reply() (*GetClientDriverNameReply, error)
Reply blocks and returns the reply data for a GetClientDriverName request.
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)) }
GetDeviceInfoCookie is a cookie used only for GetDeviceInfo requests.
type GetDeviceInfoCookie struct { *xgb.Cookie }
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(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 (cook GetDeviceInfoCookie) Reply() (*GetDeviceInfoReply, error)
Reply blocks and returns the reply data for a GetDeviceInfo request.
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)) }
GetDrawableInfoCookie is a cookie used only for GetDrawableInfo requests.
type GetDrawableInfoCookie struct { *xgb.Cookie }
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(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 (cook GetDrawableInfoCookie) Reply() (*GetDrawableInfoReply, error)
Reply blocks and returns the reply data for a GetDrawableInfo request.
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)) }
OpenConnectionCookie is a cookie used only for OpenConnection requests.
type OpenConnectionCookie struct { *xgb.Cookie }
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(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 (cook OpenConnectionCookie) Reply() (*OpenConnectionReply, error)
Reply blocks and returns the reply data for a OpenConnection request.
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)) }
QueryDirectRenderingCapableCookie is a cookie used only for QueryDirectRenderingCapable requests.
type QueryDirectRenderingCapableCookie struct { *xgb.Cookie }
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(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 (cook QueryDirectRenderingCapableCookie) Reply() (*QueryDirectRenderingCapableReply, error)
Reply blocks and returns the reply data for a QueryDirectRenderingCapable request.
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 }
QueryVersionCookie is a cookie used only for QueryVersion requests.
type QueryVersionCookie struct { *xgb.Cookie }
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(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 (cook QueryVersionCookie) Reply() (*QueryVersionReply, error)
Reply blocks and returns the reply data for a QueryVersion request.
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 }