xv

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2024 License: BSD-3-Clause, GooglePatentClause Imports: 9 Imported by: 0

Documentation

Overview

FILE GENERATED AUTOMATICALLY FROM "xv.xml"

Index

Constants

View Source
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"
)
View Source
const (
	AttributeFlagGettable = 1
	AttributeFlagSettable = 2
)
View Source
const (
	GrabPortStatusSuccess        = 0
	GrabPortStatusBadExtension   = 1
	GrabPortStatusAlreadyGrabbed = 2
	GrabPortStatusInvalidTime    = 3
	GrabPortStatusBadReply       = 4
	GrabPortStatusBadAlloc       = 5
)
View Source
const (
	ImageFormatInfoFormatPacked = 0
	ImageFormatInfoFormatPlanar = 1
)
View Source
const (
	ImageFormatInfoTypeRgb = 0
	ImageFormatInfoTypeYuv = 1
)
View Source
const (
	ScanlineOrderTopToBottom = 0
	ScanlineOrderBottomToTop = 1
)
View Source
const (
	TypeInputMask  = 1
	TypeOutputMask = 2
	TypeVideoMask  = 4
	TypeStillMask  = 8
	TypeImageMask  = 16
)
View Source
const (
	VideoNotifyReasonStarted   = 0
	VideoNotifyReasonStopped   = 1
	VideoNotifyReasonBusy      = 2
	VideoNotifyReasonPreempted = 3
	VideoNotifyReasonHardError = 4
)
View Source
const BadBadControl = 2

BadBadControl is the error number for a BadBadControl.

View Source
const BadBadEncoding = 1

BadBadEncoding is the error number for a BadBadEncoding.

View Source
const BadBadPort = 0

BadBadPort is the error number for a BadBadPort.

View Source
const PortNotify = 1

PortNotify is the event number for a PortNotifyEvent.

View Source
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

func FormatListBytes(buf []byte, list []Format) int

FormatListBytes writes a list of Format values to a byte slice.

func FormatRead

func FormatRead(buf []byte, v *Format) int

FormatRead reads a byte slice into a Format value.

func FormatReadList

func FormatReadList(buf []byte, dest []Format) int

FormatReadList reads a byte slice into a list of Format values.

func GetPortAttributeUnchecked

func GetPortAttributeUnchecked(c *xgb.XConn, Port Port, Attribute xproto.Atom) error

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

func GrabPortUnchecked(c *xgb.XConn, Port Port, Time xproto.Timestamp) error

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

func ImageListBytes(buf []byte, list []Image) int

ImageListBytes writes a list of Image values to a byte slice.

func ImageListSize

func ImageListSize(list []Image) int

ImageListSize computes the size (bytes) of a list of Image values.

func ImageRead

func ImageRead(buf []byte, v *Image) int

ImageRead reads a byte slice into a Image value.

func ImageReadList

func ImageReadList(buf []byte, dest []Image) int

ImageReadList reads a byte slice into a list of Image values.

func ListImageFormatsUnchecked

func ListImageFormatsUnchecked(c *xgb.XConn, Port Port) error

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

func QueryAdaptorsUnchecked(c *xgb.XConn, Window xproto.Window) error

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

func QueryEncodingsUnchecked(c *xgb.XConn, Port Port) error

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

func QueryPortAttributesUnchecked(c *xgb.XConn, Port Port) error

QueryPortAttributesUnchecked sends an unchecked request.

func RationalListBytes

func RationalListBytes(buf []byte, list []Rational) int

RationalListBytes writes a list of Rational values to a byte slice.

func RationalRead

func RationalRead(buf []byte, v *Rational) int

RationalRead reads a byte slice into a Rational value.

func RationalReadList

func RationalReadList(buf []byte, dest []Rational) int

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

func SelectPortNotify(c *xgb.XConn, Port Port, Onoff bool) error

SelectPortNotify sends a checked request.

func SelectPortNotifyUnchecked added in v1.1.0

func SelectPortNotifyUnchecked(c *xgb.XConn, Port Port, Onoff bool) error

SelectPortNotifyUnchecked sends an unchecked request.

func SelectVideoNotify

func SelectVideoNotify(c *xgb.XConn, Drawable xproto.Drawable, Onoff bool) error

SelectVideoNotify sends a checked request.

func SelectVideoNotifyUnchecked added in v1.1.0

func SelectVideoNotifyUnchecked(c *xgb.XConn, Drawable xproto.Drawable, Onoff bool) error

SelectVideoNotifyUnchecked sends an unchecked request.

func SetPortAttribute

func SetPortAttribute(c *xgb.XConn, Port Port, Attribute xproto.Atom, Value int32) error

SetPortAttribute sends a checked request.

func SetPortAttributeUnchecked added in v1.1.0

func SetPortAttributeUnchecked(c *xgb.XConn, Port Port, Attribute xproto.Atom, Value int32) error

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 StopVideo

func StopVideo(c *xgb.XConn, Port Port, Drawable xproto.Drawable) error

StopVideo sends a checked request.

func StopVideoUnchecked added in v1.1.0

func StopVideoUnchecked(c *xgb.XConn, Port Port, Drawable xproto.Drawable) error

StopVideoUnchecked sends an unchecked request.

func UngrabPort

func UngrabPort(c *xgb.XConn, Port Port, Time xproto.Timestamp) error

UngrabPort sends a checked request.

func UngrabPortUnchecked added in v1.1.0

func UngrabPortUnchecked(c *xgb.XConn, Port Port, Time xproto.Timestamp) error

UngrabPortUnchecked sends an unchecked request.

func UnmarshalBadControlError added in v1.1.0

func UnmarshalBadControlError(buf []byte) (xgb.XError, error)

UnmarshalBadControlError constructs a BadControlError value that implements xgb.Error from a byte slice.

func UnmarshalBadEncodingError added in v1.1.0

func UnmarshalBadEncodingError(buf []byte) (xgb.XError, error)

UnmarshalBadEncodingError constructs a BadEncodingError value that implements xgb.Error from a byte slice.

func UnmarshalBadPortError added in v1.1.0

func UnmarshalBadPortError(buf []byte) (xgb.XError, error)

UnmarshalBadPortError constructs a BadPortError value that implements xgb.Error from a byte slice.

func UnmarshalPortNotifyEvent added in v1.1.0

func UnmarshalPortNotifyEvent(buf []byte) (xgb.XEvent, error)

UnmarshalPortNotifyEvent constructs a PortNotifyEvent value that implements xgb.Event from a byte slice.

func UnmarshalVideoNotifyEvent added in v1.1.0

func UnmarshalVideoNotifyEvent(buf []byte) (xgb.XEvent, error)

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

type BadControlError struct {
	Sequence uint16
	NiceName string
}

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

type BadEncodingError struct {
	Sequence uint16
	NiceName string
}

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

type BadPortError struct {
	Sequence uint16
	NiceName string
}

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 Format

type Format struct {
	Visual xproto.Visualid
	Depth  byte
}

func (Format) Bytes

func (v Format) Bytes() []byte

Bytes writes a Format 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))
}

func (Image) Bytes

func (v Image) Bytes() []byte

Bytes writes a Image value to a byte slice.

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 Port

type Port uint32

func NewPortID added in v1.1.0

func NewPortID(c *xgb.XConn) Port

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 Rational

type Rational struct {
	Numerator   int32
	Denominator int32
}

func (Rational) Bytes

func (v Rational) Bytes() []byte

Bytes writes a Rational value to a byte slice.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL