Versions in this module Expand all Collapse all v1 v1.1.1 Nov 30, 2023 v1.1.0 Nov 5, 2022 v1.0.1 May 1, 2022 v1.0.0 Feb 16, 2022 Changes in this version + const AttributeFlagGettable + const AttributeFlagSettable + const BadBadControl + const BadBadEncoding + const BadBadPort + const GrabPortStatusAlreadyGrabbed + const GrabPortStatusBadAlloc + const GrabPortStatusBadExtension + const GrabPortStatusBadReply + const GrabPortStatusInvalidTime + const GrabPortStatusSuccess + const ImageFormatInfoFormatPacked + const ImageFormatInfoFormatPlanar + const ImageFormatInfoTypeRgb + const ImageFormatInfoTypeYuv + const PortNotify + const ScanlineOrderBottomToTop + const ScanlineOrderTopToBottom + const TypeImageMask + const TypeInputMask + const TypeOutputMask + const TypeStillMask + const TypeVideoMask + const VideoNotify + const VideoNotifyReasonBusy + const VideoNotifyReasonHardError + const VideoNotifyReasonPreempted + const VideoNotifyReasonStarted + const VideoNotifyReasonStopped + 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 BadControlErrorNew(buf []byte) xgb.Error + func BadEncodingErrorNew(buf []byte) xgb.Error + func BadPortErrorNew(buf []byte) xgb.Error + 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 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 Init(c *xgb.Conn) error + func PortNotifyEventNew(buf []byte) xgb.Event + func RationalListBytes(buf []byte, list []Rational) int + func RationalRead(buf []byte, v *Rational) int + func RationalReadList(buf []byte, dest []Rational) int + func VideoNotifyEventNew(buf []byte) xgb.Event + type AdaptorInfo struct + BaseId Port + Formats []Format + Name string + NameSize uint16 + NumFormats uint16 + NumPorts uint16 + Type byte + func (v AdaptorInfo) Bytes() []byte + type AttributeInfo struct + Flags uint32 + Max int32 + Min int32 + Name string + Size uint32 + func (v AttributeInfo) Bytes() []byte + type BadControlError struct + NiceName string + Sequence uint16 + func (err BadControlError) BadId() uint32 + func (err BadControlError) Error() string + func (err BadControlError) SequenceId() uint16 + type BadEncodingError struct + NiceName string + Sequence uint16 + func (err BadEncodingError) BadId() uint32 + func (err BadEncodingError) Error() string + func (err BadEncodingError) SequenceId() uint16 + type BadPortError struct + NiceName string + Sequence uint16 + func (err BadPortError) BadId() uint32 + func (err BadPortError) Error() string + func (err BadPortError) SequenceId() uint16 + type Encoding uint32 + func NewEncodingId(c *xgb.Conn) (Encoding, error) + type EncodingInfo struct + Encoding Encoding + Height uint16 + Name string + NameSize uint16 + Rate Rational + Width uint16 + func (v EncodingInfo) Bytes() []byte + type Format struct + Depth byte + Visual xproto.Visualid + func (v Format) Bytes() []byte + type GetPortAttributeCookie struct + func GetPortAttribute(c *xgb.Conn, Port Port, Attribute xproto.Atom) GetPortAttributeCookie + func GetPortAttributeUnchecked(c *xgb.Conn, Port Port, Attribute xproto.Atom) GetPortAttributeCookie + func (cook GetPortAttributeCookie) Reply() (*GetPortAttributeReply, error) + type GetPortAttributeReply struct + Length uint32 + Sequence uint16 + Value int32 + type GetStillCookie struct + func GetStill(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) GetStillCookie + func GetStillChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) GetStillCookie + func (cook GetStillCookie) Check() error + type GetVideoCookie struct + func GetVideo(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) GetVideoCookie + func GetVideoChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) GetVideoCookie + func (cook GetVideoCookie) Check() error + type GrabPortCookie struct + func GrabPort(c *xgb.Conn, Port Port, Time xproto.Timestamp) GrabPortCookie + func GrabPortUnchecked(c *xgb.Conn, Port Port, Time xproto.Timestamp) GrabPortCookie + func (cook GrabPortCookie) Reply() (*GrabPortReply, error) + type GrabPortReply struct + Length uint32 + Result byte + Sequence uint16 + type Image struct + Data []byte + DataSize uint32 + Height uint16 + Id uint32 + NumPlanes uint32 + Offsets []uint32 + Pitches []uint32 + Width uint16 + func (v Image) Bytes() []byte + type ImageFormatInfo struct + BlueMask uint32 + Bpp byte + ByteOrder byte + Depth byte + Format byte + GreenMask uint32 + Guid []byte + Id uint32 + NumPlanes byte + RedMask uint32 + Type byte + USampleBits uint32 + VSampleBits uint32 + VcompOrder []byte + VhorzUPeriod uint32 + VhorzVPeriod uint32 + VhorzYPeriod uint32 + VscanlineOrder byte + VvertUPeriod uint32 + VvertVPeriod uint32 + VvertYPeriod uint32 + YSampleBits uint32 + func (v ImageFormatInfo) Bytes() []byte + type ListImageFormatsCookie struct + func ListImageFormats(c *xgb.Conn, Port Port) ListImageFormatsCookie + func ListImageFormatsUnchecked(c *xgb.Conn, Port Port) ListImageFormatsCookie + func (cook ListImageFormatsCookie) Reply() (*ListImageFormatsReply, error) + type ListImageFormatsReply struct + Format []ImageFormatInfo + Length uint32 + NumFormats uint32 + Sequence uint16 + type Port uint32 + func NewPortId(c *xgb.Conn) (Port, error) + type PortNotifyEvent struct + Attribute xproto.Atom + Port Port + Sequence uint16 + Time xproto.Timestamp + Value int32 + func (v PortNotifyEvent) Bytes() []byte + func (v PortNotifyEvent) SequenceId() uint16 + func (v PortNotifyEvent) String() string + type PutImageCookie struct + func PutImage(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) PutImageCookie + func PutImageChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) PutImageCookie + func (cook PutImageCookie) Check() error + type PutStillCookie struct + func PutStill(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) PutStillCookie + func PutStillChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) PutStillCookie + func (cook PutStillCookie) Check() error + type PutVideoCookie struct + func PutVideo(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) PutVideoCookie + func PutVideoChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) PutVideoCookie + func (cook PutVideoCookie) Check() error + type QueryAdaptorsCookie struct + func QueryAdaptors(c *xgb.Conn, Window xproto.Window) QueryAdaptorsCookie + func QueryAdaptorsUnchecked(c *xgb.Conn, Window xproto.Window) QueryAdaptorsCookie + func (cook QueryAdaptorsCookie) Reply() (*QueryAdaptorsReply, error) + type QueryAdaptorsReply struct + Info []AdaptorInfo + Length uint32 + NumAdaptors uint16 + Sequence uint16 + type QueryBestSizeCookie struct + func QueryBestSize(c *xgb.Conn, Port Port, VidW uint16, VidH uint16, DrwW uint16, DrwH uint16, ...) QueryBestSizeCookie + func QueryBestSizeUnchecked(c *xgb.Conn, Port Port, VidW uint16, VidH uint16, DrwW uint16, DrwH uint16, ...) QueryBestSizeCookie + func (cook QueryBestSizeCookie) Reply() (*QueryBestSizeReply, error) + type QueryBestSizeReply struct + ActualHeight uint16 + ActualWidth uint16 + Length uint32 + Sequence uint16 + type QueryEncodingsCookie struct + func QueryEncodings(c *xgb.Conn, Port Port) QueryEncodingsCookie + func QueryEncodingsUnchecked(c *xgb.Conn, Port Port) QueryEncodingsCookie + func (cook QueryEncodingsCookie) Reply() (*QueryEncodingsReply, error) + type QueryEncodingsReply struct + Info []EncodingInfo + Length uint32 + NumEncodings uint16 + Sequence uint16 + type QueryExtensionCookie struct + func QueryExtension(c *xgb.Conn) QueryExtensionCookie + func QueryExtensionUnchecked(c *xgb.Conn) QueryExtensionCookie + func (cook QueryExtensionCookie) Reply() (*QueryExtensionReply, error) + type QueryExtensionReply struct + Length uint32 + Major uint16 + Minor uint16 + Sequence uint16 + type QueryImageAttributesCookie struct + func QueryImageAttributes(c *xgb.Conn, Port Port, Id uint32, Width uint16, Height uint16) QueryImageAttributesCookie + func QueryImageAttributesUnchecked(c *xgb.Conn, Port Port, Id uint32, Width uint16, Height uint16) QueryImageAttributesCookie + func (cook QueryImageAttributesCookie) Reply() (*QueryImageAttributesReply, error) + type QueryImageAttributesReply struct + DataSize uint32 + Height uint16 + Length uint32 + NumPlanes uint32 + Offsets []uint32 + Pitches []uint32 + Sequence uint16 + Width uint16 + type QueryPortAttributesCookie struct + func QueryPortAttributes(c *xgb.Conn, Port Port) QueryPortAttributesCookie + func QueryPortAttributesUnchecked(c *xgb.Conn, Port Port) QueryPortAttributesCookie + func (cook QueryPortAttributesCookie) Reply() (*QueryPortAttributesReply, error) + type QueryPortAttributesReply struct + Attributes []AttributeInfo + Length uint32 + NumAttributes uint32 + Sequence uint16 + TextSize uint32 + type Rational struct + Denominator int32 + Numerator int32 + func (v Rational) Bytes() []byte + type SelectPortNotifyCookie struct + func SelectPortNotify(c *xgb.Conn, Port Port, Onoff bool) SelectPortNotifyCookie + func SelectPortNotifyChecked(c *xgb.Conn, Port Port, Onoff bool) SelectPortNotifyCookie + func (cook SelectPortNotifyCookie) Check() error + type SelectVideoNotifyCookie struct + func SelectVideoNotify(c *xgb.Conn, Drawable xproto.Drawable, Onoff bool) SelectVideoNotifyCookie + func SelectVideoNotifyChecked(c *xgb.Conn, Drawable xproto.Drawable, Onoff bool) SelectVideoNotifyCookie + func (cook SelectVideoNotifyCookie) Check() error + type SetPortAttributeCookie struct + func SetPortAttribute(c *xgb.Conn, Port Port, Attribute xproto.Atom, Value int32) SetPortAttributeCookie + func SetPortAttributeChecked(c *xgb.Conn, Port Port, Attribute xproto.Atom, Value int32) SetPortAttributeCookie + func (cook SetPortAttributeCookie) Check() error + type ShmPutImageCookie struct + func ShmPutImage(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) ShmPutImageCookie + func ShmPutImageChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, ...) ShmPutImageCookie + func (cook ShmPutImageCookie) Check() error + type StopVideoCookie struct + func StopVideo(c *xgb.Conn, Port Port, Drawable xproto.Drawable) StopVideoCookie + func StopVideoChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable) StopVideoCookie + func (cook StopVideoCookie) Check() error + type UngrabPortCookie struct + func UngrabPort(c *xgb.Conn, Port Port, Time xproto.Timestamp) UngrabPortCookie + func UngrabPortChecked(c *xgb.Conn, Port Port, Time xproto.Timestamp) UngrabPortCookie + func (cook UngrabPortCookie) Check() error + type VideoNotifyEvent struct + Drawable xproto.Drawable + Port Port + Reason byte + Sequence uint16 + Time xproto.Timestamp + func (v VideoNotifyEvent) Bytes() []byte + func (v VideoNotifyEvent) SequenceId() uint16 + func (v VideoNotifyEvent) String() string