Documentation
¶
Overview ¶
FILE GENERATED AUTOMATICALLY FROM "xv.xml"
Index ¶
- Constants
- func AdaptorInfoListBytes(buf []byte, list []AdaptorInfo) int
- func AdaptorInfoListSize(list []AdaptorInfo) int
- func AdaptorInfoRead(buf []byte, v *AdaptorInfo) int
- func AdaptorInfoReadList(buf []byte, dest []AdaptorInfo) int
- func AttributeInfoListBytes(buf []byte, list []AttributeInfo) int
- func AttributeInfoListSize(list []AttributeInfo) int
- func AttributeInfoRead(buf []byte, v *AttributeInfo) int
- func AttributeInfoReadList(buf []byte, dest []AttributeInfo) int
- func EncodingInfoListBytes(buf []byte, list []EncodingInfo) int
- func EncodingInfoListSize(list []EncodingInfo) int
- func EncodingInfoRead(buf []byte, v *EncodingInfo) int
- func EncodingInfoReadList(buf []byte, dest []EncodingInfo) int
- func FormatListBytes(buf []byte, list []Format) int
- func FormatRead(buf []byte, v *Format) int
- func FormatReadList(buf []byte, dest []Format) int
- func GetPortAttributeUnchecked(c *xgb.XConn, Port Port, Attribute xproto.Atom) error
- func GetStill(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) error
- func GetStillUnchecked(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) error
- func GetVideo(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) error
- func GetVideoUnchecked(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) error
- func GrabPortUnchecked(c *xgb.XConn, Port Port, Time xproto.Timestamp) error
- func ImageFormatInfoListBytes(buf []byte, list []ImageFormatInfo) int
- func ImageFormatInfoListSize(list []ImageFormatInfo) int
- func ImageFormatInfoRead(buf []byte, v *ImageFormatInfo) int
- func ImageFormatInfoReadList(buf []byte, dest []ImageFormatInfo) int
- func ImageListBytes(buf []byte, list []Image) int
- func ImageListSize(list []Image) int
- func ImageRead(buf []byte, v *Image) int
- func ImageReadList(buf []byte, dest []Image) int
- func ListImageFormatsUnchecked(c *xgb.XConn, Port Port) error
- func PutImage(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) error
- func PutImageUnchecked(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) error
- func PutStill(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) error
- func PutStillUnchecked(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) error
- func PutVideo(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) error
- func PutVideoUnchecked(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) error
- func QueryAdaptorsUnchecked(c *xgb.XConn, Window xproto.Window) error
- func QueryBestSizeUnchecked(c *xgb.XConn, Port Port, VidW uint16, VidH uint16, DrwW uint16, DrwH uint16, ...) error
- func QueryEncodingsUnchecked(c *xgb.XConn, Port Port) error
- func QueryExtensionUnchecked(c *xgb.XConn) error
- func QueryImageAttributesUnchecked(c *xgb.XConn, Port Port, Id uint32, Width uint16, Height uint16) error
- func QueryPortAttributesUnchecked(c *xgb.XConn, Port Port) error
- func RationalListBytes(buf []byte, list []Rational) int
- func RationalRead(buf []byte, v *Rational) int
- func RationalReadList(buf []byte, dest []Rational) int
- func Register(xconn *xgb.XConn) error
- func SelectPortNotify(c *xgb.XConn, Port Port, Onoff bool) error
- func SelectPortNotifyUnchecked(c *xgb.XConn, Port Port, Onoff bool) error
- func SelectVideoNotify(c *xgb.XConn, Drawable xproto.Drawable, Onoff bool) error
- func SelectVideoNotifyUnchecked(c *xgb.XConn, Drawable xproto.Drawable, Onoff bool) error
- func SetPortAttribute(c *xgb.XConn, Port Port, Attribute xproto.Atom, Value int32) error
- func SetPortAttributeUnchecked(c *xgb.XConn, Port Port, Attribute xproto.Atom, Value int32) error
- func ShmPutImage(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) error
- func ShmPutImageUnchecked(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) error
- func StopVideo(c *xgb.XConn, Port Port, Drawable xproto.Drawable) error
- func StopVideoUnchecked(c *xgb.XConn, Port Port, Drawable xproto.Drawable) error
- func UngrabPort(c *xgb.XConn, Port Port, Time xproto.Timestamp) error
- func UngrabPortUnchecked(c *xgb.XConn, Port Port, Time xproto.Timestamp) error
- func UnmarshalBadControlError(buf []byte) (xgb.XError, error)
- func UnmarshalBadEncodingError(buf []byte) (xgb.XError, error)
- func UnmarshalBadPortError(buf []byte) (xgb.XError, error)
- func UnmarshalPortNotifyEvent(buf []byte) (xgb.XEvent, error)
- func UnmarshalVideoNotifyEvent(buf []byte) (xgb.XEvent, error)
- type AdaptorInfo
- type AttributeInfo
- type BadControlError
- type BadEncodingError
- type BadPortError
- type Encoding
- type EncodingInfo
- type Format
- type GetPortAttributeReply
- type GrabPortReply
- type Image
- type ImageFormatInfo
- type ListImageFormatsReply
- type Port
- type PortNotifyEvent
- type QueryAdaptorsReply
- type QueryBestSizeReply
- type QueryEncodingsReply
- type QueryExtensionReply
- type QueryImageAttributesReply
- type QueryPortAttributesReply
- type Rational
- type VideoNotifyEvent
Constants ¶
const ( // ExtName is the user-friendly name string of this X extension. ExtName = "Xv" // ExtXName is the name string this extension is known by to the X server. ExtXName = "XVideo" )
const ( AttributeFlagGettable = 1 AttributeFlagSettable = 2 )
const ( GrabPortStatusSuccess = 0 GrabPortStatusBadExtension = 1 GrabPortStatusAlreadyGrabbed = 2 GrabPortStatusInvalidTime = 3 GrabPortStatusBadReply = 4 GrabPortStatusBadAlloc = 5 )
const ( ImageFormatInfoFormatPacked = 0 ImageFormatInfoFormatPlanar = 1 )
const ( ImageFormatInfoTypeRgb = 0 ImageFormatInfoTypeYuv = 1 )
const ( ScanlineOrderTopToBottom = 0 ScanlineOrderBottomToTop = 1 )
const ( TypeInputMask = 1 TypeOutputMask = 2 TypeVideoMask = 4 TypeStillMask = 8 TypeImageMask = 16 )
const ( VideoNotifyReasonStarted = 0 VideoNotifyReasonStopped = 1 VideoNotifyReasonBusy = 2 VideoNotifyReasonPreempted = 3 VideoNotifyReasonHardError = 4 )
const BadBadControl = 2
BadBadControl is the error number for a BadBadControl.
const BadBadEncoding = 1
BadBadEncoding is the error number for a BadBadEncoding.
const BadBadPort = 0
BadBadPort is the error number for a BadBadPort.
const PortNotify = 1
PortNotify is the event number for a PortNotifyEvent.
const VideoNotify = 0
VideoNotify is the event number for a VideoNotifyEvent.
Variables ¶
This section is empty.
Functions ¶
func AdaptorInfoListBytes ¶
func AdaptorInfoListBytes(buf []byte, list []AdaptorInfo) int
AdaptorInfoListBytes writes a list of AdaptorInfo values to a byte slice.
func AdaptorInfoListSize ¶
func AdaptorInfoListSize(list []AdaptorInfo) int
AdaptorInfoListSize computes the size (bytes) of a list of AdaptorInfo values.
func AdaptorInfoRead ¶
func AdaptorInfoRead(buf []byte, v *AdaptorInfo) int
AdaptorInfoRead reads a byte slice into a AdaptorInfo value.
func AdaptorInfoReadList ¶
func AdaptorInfoReadList(buf []byte, dest []AdaptorInfo) int
AdaptorInfoReadList reads a byte slice into a list of AdaptorInfo values.
func AttributeInfoListBytes ¶
func AttributeInfoListBytes(buf []byte, list []AttributeInfo) int
AttributeInfoListBytes writes a list of AttributeInfo values to a byte slice.
func AttributeInfoListSize ¶
func AttributeInfoListSize(list []AttributeInfo) int
AttributeInfoListSize computes the size (bytes) of a list of AttributeInfo values.
func AttributeInfoRead ¶
func AttributeInfoRead(buf []byte, v *AttributeInfo) int
AttributeInfoRead reads a byte slice into a AttributeInfo value.
func AttributeInfoReadList ¶
func AttributeInfoReadList(buf []byte, dest []AttributeInfo) int
AttributeInfoReadList reads a byte slice into a list of AttributeInfo values.
func EncodingInfoListBytes ¶
func EncodingInfoListBytes(buf []byte, list []EncodingInfo) int
EncodingInfoListBytes writes a list of EncodingInfo values to a byte slice.
func EncodingInfoListSize ¶
func EncodingInfoListSize(list []EncodingInfo) int
EncodingInfoListSize computes the size (bytes) of a list of EncodingInfo values.
func EncodingInfoRead ¶
func EncodingInfoRead(buf []byte, v *EncodingInfo) int
EncodingInfoRead reads a byte slice into a EncodingInfo value.
func EncodingInfoReadList ¶
func EncodingInfoReadList(buf []byte, dest []EncodingInfo) int
EncodingInfoReadList reads a byte slice into a list of EncodingInfo values.
func FormatListBytes ¶
FormatListBytes writes a list of Format values to a byte slice.
func FormatRead ¶
FormatRead reads a byte slice into a Format value.
func FormatReadList ¶
FormatReadList reads a byte slice into a list of Format values.
func GetPortAttributeUnchecked ¶
GetPortAttributeUnchecked sends an unchecked request.
func GetStill ¶
func GetStill(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) error
GetStill sends a checked request.
func GetStillUnchecked ¶ added in v1.1.0
func GetStillUnchecked(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) error
GetStillUnchecked sends an unchecked request.
func GetVideo ¶
func GetVideo(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) error
GetVideo sends a checked request.
func GetVideoUnchecked ¶ added in v1.1.0
func GetVideoUnchecked(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) error
GetVideoUnchecked sends an unchecked request.
func GrabPortUnchecked ¶
GrabPortUnchecked sends an unchecked request.
func ImageFormatInfoListBytes ¶
func ImageFormatInfoListBytes(buf []byte, list []ImageFormatInfo) int
ImageFormatInfoListBytes writes a list of ImageFormatInfo values to a byte slice.
func ImageFormatInfoListSize ¶
func ImageFormatInfoListSize(list []ImageFormatInfo) int
ImageFormatInfoListSize computes the size (bytes) of a list of ImageFormatInfo values.
func ImageFormatInfoRead ¶
func ImageFormatInfoRead(buf []byte, v *ImageFormatInfo) int
ImageFormatInfoRead reads a byte slice into a ImageFormatInfo value.
func ImageFormatInfoReadList ¶
func ImageFormatInfoReadList(buf []byte, dest []ImageFormatInfo) int
ImageFormatInfoReadList reads a byte slice into a list of ImageFormatInfo values.
func ImageListBytes ¶
ImageListBytes writes a list of Image values to a byte slice.
func ImageListSize ¶
ImageListSize computes the size (bytes) of a list of Image values.
func ImageReadList ¶
ImageReadList reads a byte slice into a list of Image values.
func ListImageFormatsUnchecked ¶
ListImageFormatsUnchecked sends an unchecked request.
func PutImage ¶
func PutImage(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, Id uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, Data []byte) error
PutImage sends a checked request.
func PutImageUnchecked ¶ added in v1.1.0
func PutImageUnchecked(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, Id uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, Data []byte) error
PutImageUnchecked sends an unchecked request.
func PutStill ¶
func PutStill(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) error
PutStill sends a checked request.
func PutStillUnchecked ¶ added in v1.1.0
func PutStillUnchecked(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) error
PutStillUnchecked sends an unchecked request.
func PutVideo ¶
func PutVideo(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) error
PutVideo sends a checked request.
func PutVideoUnchecked ¶ added in v1.1.0
func PutVideoUnchecked(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) error
PutVideoUnchecked sends an unchecked request.
func QueryAdaptorsUnchecked ¶
QueryAdaptorsUnchecked sends an unchecked request.
func QueryBestSizeUnchecked ¶
func QueryBestSizeUnchecked(c *xgb.XConn, Port Port, VidW uint16, VidH uint16, DrwW uint16, DrwH uint16, Motion bool) error
QueryBestSizeUnchecked sends an unchecked request.
func QueryEncodingsUnchecked ¶
QueryEncodingsUnchecked sends an unchecked request.
func QueryExtensionUnchecked ¶
func QueryExtensionUnchecked(c *xgb.XConn) error
QueryExtensionUnchecked sends an unchecked request.
func QueryImageAttributesUnchecked ¶
func QueryImageAttributesUnchecked(c *xgb.XConn, Port Port, Id uint32, Width uint16, Height uint16) error
QueryImageAttributesUnchecked sends an unchecked request.
func QueryPortAttributesUnchecked ¶
QueryPortAttributesUnchecked sends an unchecked request.
func RationalListBytes ¶
RationalListBytes writes a list of Rational values to a byte slice.
func RationalRead ¶
RationalRead reads a byte slice into a Rational value.
func RationalReadList ¶
RationalReadList reads a byte slice into a list of Rational values.
func Register ¶ added in v1.1.0
func Register(xconn *xgb.XConn) error
Register will query the X server for Xv extension support, and register relevant extension unmarshalers with the XConn.
func SelectPortNotify ¶
SelectPortNotify sends a checked request.
func SelectPortNotifyUnchecked ¶ added in v1.1.0
SelectPortNotifyUnchecked sends an unchecked request.
func SelectVideoNotify ¶
SelectVideoNotify sends a checked request.
func SelectVideoNotifyUnchecked ¶ added in v1.1.0
SelectVideoNotifyUnchecked sends an unchecked request.
func SetPortAttribute ¶
SetPortAttribute sends a checked request.
func SetPortAttributeUnchecked ¶ added in v1.1.0
SetPortAttributeUnchecked sends an unchecked request.
func ShmPutImage ¶
func ShmPutImage(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, Shmseg shm.Seg, Id uint32, Offset uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, SendEvent byte) error
ShmPutImage sends a checked request.
func ShmPutImageUnchecked ¶ added in v1.1.0
func ShmPutImageUnchecked(c *xgb.XConn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, Shmseg shm.Seg, Id uint32, Offset uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, SendEvent byte) error
ShmPutImageUnchecked sends an unchecked request.
func StopVideoUnchecked ¶ added in v1.1.0
StopVideoUnchecked sends an unchecked request.
func UngrabPort ¶
UngrabPort sends a checked request.
func UngrabPortUnchecked ¶ added in v1.1.0
UngrabPortUnchecked sends an unchecked request.
func UnmarshalBadControlError ¶ added in v1.1.0
UnmarshalBadControlError constructs a BadControlError value that implements xgb.Error from a byte slice.
func UnmarshalBadEncodingError ¶ added in v1.1.0
UnmarshalBadEncodingError constructs a BadEncodingError value that implements xgb.Error from a byte slice.
func UnmarshalBadPortError ¶ added in v1.1.0
UnmarshalBadPortError constructs a BadPortError value that implements xgb.Error from a byte slice.
func UnmarshalPortNotifyEvent ¶ added in v1.1.0
UnmarshalPortNotifyEvent constructs a PortNotifyEvent value that implements xgb.Event from a byte slice.
func UnmarshalVideoNotifyEvent ¶ added in v1.1.0
UnmarshalVideoNotifyEvent constructs a VideoNotifyEvent value that implements xgb.Event from a byte slice.
Types ¶
type AdaptorInfo ¶
type AdaptorInfo struct { BaseId Port NameSize uint16 NumPorts uint16 NumFormats uint16 Type byte // padding: 1 bytes Name string // size: internal.Pad4((int(NameSize) * 1)) // padding: 0 bytes Formats []Format // size: internal.Pad4((int(NumFormats) * 8)) }
func (AdaptorInfo) Bytes ¶
func (v AdaptorInfo) Bytes() []byte
Bytes writes a AdaptorInfo value to a byte slice.
type AttributeInfo ¶
type AttributeInfo struct { Flags uint32 Min int32 Max int32 Size uint32 Name string // size: internal.Pad4((int(Size) * 1)) }
func (AttributeInfo) Bytes ¶
func (v AttributeInfo) Bytes() []byte
Bytes writes a AttributeInfo value to a byte slice.
type BadControlError ¶
func (*BadControlError) BadID ¶ added in v1.1.0
func (err *BadControlError) BadID() uint32
BadID returns the 'BadValue' number if one exists for the BadBadControl error. If no bad value exists, 0 is returned.
func (*BadControlError) Error ¶
func (err *BadControlError) Error() string
Error returns a rudimentary string representation of the BadBadControl error.
func (*BadControlError) SeqID ¶ added in v1.1.0
func (err *BadControlError) SeqID() uint16
SeqID returns the sequence id attached to the BadBadControl error. This is mostly used internally.
type BadEncodingError ¶
func (*BadEncodingError) BadID ¶ added in v1.1.0
func (err *BadEncodingError) BadID() uint32
BadID returns the 'BadValue' number if one exists for the BadBadEncoding error. If no bad value exists, 0 is returned.
func (*BadEncodingError) Error ¶
func (err *BadEncodingError) Error() string
Error returns a rudimentary string representation of the BadBadEncoding error.
func (*BadEncodingError) SeqID ¶ added in v1.1.0
func (err *BadEncodingError) SeqID() uint16
SeqID returns the sequence id attached to the BadBadEncoding error. This is mostly used internally.
type BadPortError ¶
func (*BadPortError) BadID ¶ added in v1.1.0
func (err *BadPortError) BadID() uint32
BadID returns the 'BadValue' number if one exists for the BadBadPort error. If no bad value exists, 0 is returned.
func (*BadPortError) Error ¶
func (err *BadPortError) Error() string
Error returns a rudimentary string representation of the BadBadPort error.
func (*BadPortError) SeqID ¶ added in v1.1.0
func (err *BadPortError) SeqID() uint16
SeqID returns the sequence id attached to the BadBadPort error. This is mostly used internally.
type Encoding ¶
type Encoding uint32
func NewEncodingID ¶ added in v1.1.0
func NewEncodingID(c *xgb.XConn) Encoding
type EncodingInfo ¶
type EncodingInfo struct { Encoding Encoding NameSize uint16 Width uint16 Height uint16 // padding: 2 bytes Rate Rational Name string // size: internal.Pad4((int(NameSize) * 1)) }
func (EncodingInfo) Bytes ¶
func (v EncodingInfo) Bytes() []byte
Bytes writes a EncodingInfo value to a byte slice.
type GetPortAttributeReply ¶
type GetPortAttributeReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes Value int32 }
GetPortAttributeReply represents the data returned from a GetPortAttribute request.
func GetPortAttribute ¶
func GetPortAttribute(c *xgb.XConn, Port Port, Attribute xproto.Atom) (GetPortAttributeReply, error)
GetPortAttribute sends a checked request.
func (*GetPortAttributeReply) Unmarshal ¶ added in v1.1.0
func (v *GetPortAttributeReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a GetPortAttributeReply value.
type GrabPortReply ¶
type GrabPortReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply Result byte }
GrabPortReply represents the data returned from a GrabPort request.
func GrabPort ¶
func GrabPort(c *xgb.XConn, Port Port, Time xproto.Timestamp) (GrabPortReply, error)
GrabPort sends a checked request.
func (*GrabPortReply) Unmarshal ¶ added in v1.1.0
func (v *GrabPortReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a GrabPortReply value.
type Image ¶
type Image struct { Id uint32 Width uint16 Height uint16 DataSize uint32 NumPlanes uint32 Pitches []uint32 // size: internal.Pad4((int(NumPlanes) * 4)) // alignment gap to multiple of 4 Offsets []uint32 // size: internal.Pad4((int(NumPlanes) * 4)) Data []byte // size: internal.Pad4((int(DataSize) * 1)) }
type ImageFormatInfo ¶
type ImageFormatInfo struct { Id uint32 Type byte ByteOrder byte // padding: 2 bytes Guid []byte // size: 16 Bpp byte NumPlanes byte // padding: 2 bytes Depth byte // padding: 3 bytes RedMask uint32 GreenMask uint32 BlueMask uint32 Format byte // padding: 3 bytes YSampleBits uint32 USampleBits uint32 VSampleBits uint32 VhorzYPeriod uint32 VhorzUPeriod uint32 VhorzVPeriod uint32 VvertYPeriod uint32 VvertUPeriod uint32 VvertVPeriod uint32 VcompOrder []byte // size: 32 VscanlineOrder byte }
func (ImageFormatInfo) Bytes ¶
func (v ImageFormatInfo) Bytes() []byte
Bytes writes a ImageFormatInfo value to a byte slice.
type ListImageFormatsReply ¶
type ListImageFormatsReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes NumFormats uint32 // padding: 20 bytes Format []ImageFormatInfo // size: ImageFormatInfoListSize(Format) }
ListImageFormatsReply represents the data returned from a ListImageFormats request.
func ListImageFormats ¶
func ListImageFormats(c *xgb.XConn, Port Port) (ListImageFormatsReply, error)
ListImageFormats sends a checked request.
func (*ListImageFormatsReply) Unmarshal ¶ added in v1.1.0
func (v *ListImageFormatsReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a ListImageFormatsReply value.
type PortNotifyEvent ¶
type PortNotifyEvent struct { Sequence uint16 // padding: 1 bytes Time xproto.Timestamp Port Port Attribute xproto.Atom Value int32 }
func (*PortNotifyEvent) Bytes ¶
func (v *PortNotifyEvent) Bytes() []byte
Bytes writes a PortNotifyEvent value to a byte slice.
func (*PortNotifyEvent) SeqID ¶ added in v1.1.0
func (v *PortNotifyEvent) SeqID() uint16
SeqID returns the sequence id attached to the PortNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
type QueryAdaptorsReply ¶
type QueryAdaptorsReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes NumAdaptors uint16 // padding: 22 bytes Info []AdaptorInfo // size: AdaptorInfoListSize(Info) }
QueryAdaptorsReply represents the data returned from a QueryAdaptors request.
func QueryAdaptors ¶
func QueryAdaptors(c *xgb.XConn, Window xproto.Window) (QueryAdaptorsReply, error)
QueryAdaptors sends a checked request.
func (*QueryAdaptorsReply) Unmarshal ¶ added in v1.1.0
func (v *QueryAdaptorsReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a QueryAdaptorsReply value.
type QueryBestSizeReply ¶
type QueryBestSizeReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes ActualWidth uint16 ActualHeight uint16 }
QueryBestSizeReply represents the data returned from a QueryBestSize request.
func QueryBestSize ¶
func QueryBestSize(c *xgb.XConn, Port Port, VidW uint16, VidH uint16, DrwW uint16, DrwH uint16, Motion bool) (QueryBestSizeReply, error)
QueryBestSize sends a checked request.
func (*QueryBestSizeReply) Unmarshal ¶ added in v1.1.0
func (v *QueryBestSizeReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a QueryBestSizeReply value.
type QueryEncodingsReply ¶
type QueryEncodingsReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes NumEncodings uint16 // padding: 22 bytes Info []EncodingInfo // size: EncodingInfoListSize(Info) }
QueryEncodingsReply represents the data returned from a QueryEncodings request.
func QueryEncodings ¶
func QueryEncodings(c *xgb.XConn, Port Port) (QueryEncodingsReply, error)
QueryEncodings sends a checked request.
func (*QueryEncodingsReply) Unmarshal ¶ added in v1.1.0
func (v *QueryEncodingsReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a QueryEncodingsReply value.
type QueryExtensionReply ¶
type QueryExtensionReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes Major uint16 Minor uint16 }
QueryExtensionReply represents the data returned from a QueryExtension request.
func QueryExtension ¶
func QueryExtension(c *xgb.XConn) (QueryExtensionReply, error)
QueryExtension sends a checked request.
func (*QueryExtensionReply) Unmarshal ¶ added in v1.1.0
func (v *QueryExtensionReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a QueryExtensionReply value.
type QueryImageAttributesReply ¶
type QueryImageAttributesReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes NumPlanes uint32 DataSize uint32 Width uint16 Height uint16 // padding: 12 bytes Pitches []uint32 // size: internal.Pad4((int(NumPlanes) * 4)) // alignment gap to multiple of 4 Offsets []uint32 // size: internal.Pad4((int(NumPlanes) * 4)) }
QueryImageAttributesReply represents the data returned from a QueryImageAttributes request.
func QueryImageAttributes ¶
func QueryImageAttributes(c *xgb.XConn, Port Port, Id uint32, Width uint16, Height uint16) (QueryImageAttributesReply, error)
QueryImageAttributes sends a checked request.
func (*QueryImageAttributesReply) Unmarshal ¶ added in v1.1.0
func (v *QueryImageAttributesReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a QueryImageAttributesReply value.
type QueryPortAttributesReply ¶
type QueryPortAttributesReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes NumAttributes uint32 TextSize uint32 // padding: 16 bytes Attributes []AttributeInfo // size: AttributeInfoListSize(Attributes) }
QueryPortAttributesReply represents the data returned from a QueryPortAttributes request.
func QueryPortAttributes ¶
func QueryPortAttributes(c *xgb.XConn, Port Port) (QueryPortAttributesReply, error)
QueryPortAttributes sends a checked request.
func (*QueryPortAttributesReply) Unmarshal ¶ added in v1.1.0
func (v *QueryPortAttributesReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a QueryPortAttributesReply value.
type VideoNotifyEvent ¶
type VideoNotifyEvent struct { Sequence uint16 Reason byte Time xproto.Timestamp Drawable xproto.Drawable Port Port }
func (*VideoNotifyEvent) Bytes ¶
func (v *VideoNotifyEvent) Bytes() []byte
Bytes writes a VideoNotifyEvent value to a byte slice.
func (*VideoNotifyEvent) SeqID ¶ added in v1.1.0
func (v *VideoNotifyEvent) SeqID() uint16
SeqID returns the sequence id attached to the VideoNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.