randr

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 "randr.xml"

Index

Constants

View Source
const (
	// ExtName is the user-friendly name string of this X extension.
	ExtName = "RandR"

	// ExtXName is the name string this extension is known by to the X server.
	ExtXName = "RANDR"
)
View Source
const (
	ConnectionConnected    = 0
	ConnectionDisconnected = 1
	ConnectionUnknown      = 2
)
View Source
const (
	ModeFlagHsyncPositive  = 1
	ModeFlagHsyncNegative  = 2
	ModeFlagVsyncPositive  = 4
	ModeFlagVsyncNegative  = 8
	ModeFlagInterlace      = 16
	ModeFlagDoubleScan     = 32
	ModeFlagCsync          = 64
	ModeFlagCsyncPositive  = 128
	ModeFlagCsyncNegative  = 256
	ModeFlagHskewPresent   = 512
	ModeFlagBcast          = 1024
	ModeFlagPixelMultiplex = 2048
	ModeFlagDoubleClock    = 4096
	ModeFlagHalveClock     = 8192
)
View Source
const (
	NotifyCrtcChange       = 0
	NotifyOutputChange     = 1
	NotifyOutputProperty   = 2
	NotifyProviderChange   = 3
	NotifyProviderProperty = 4
	NotifyResourceChange   = 5
	NotifyLease            = 6
)
View Source
const (
	NotifyMaskScreenChange     = 1
	NotifyMaskCrtcChange       = 2
	NotifyMaskOutputChange     = 4
	NotifyMaskOutputProperty   = 8
	NotifyMaskProviderChange   = 16
	NotifyMaskProviderProperty = 32
	NotifyMaskResourceChange   = 64
	NotifyMaskLease            = 128
)
View Source
const (
	ProviderCapabilitySourceOutput  = 1
	ProviderCapabilitySinkOutput    = 2
	ProviderCapabilitySourceOffload = 4
	ProviderCapabilitySinkOffload   = 8
)
View Source
const (
	RotationRotate0   = 1
	RotationRotate90  = 2
	RotationRotate180 = 4
	RotationRotate270 = 8
	RotationReflectX  = 16
	RotationReflectY  = 32
)
View Source
const (
	SetConfigSuccess           = 0
	SetConfigInvalidConfigTime = 1
	SetConfigInvalidTime       = 2
	SetConfigFailed            = 3
)
View Source
const (
	TransformUnit       = 1
	TransformScaleUp    = 2
	TransformScaleDown  = 4
	TransformProjective = 8
)
View Source
const BadBadCrtc = 1

BadBadCrtc is the error number for a BadBadCrtc.

View Source
const BadBadMode = 2

BadBadMode is the error number for a BadBadMode.

View Source
const BadBadOutput = 0

BadBadOutput is the error number for a BadBadOutput.

View Source
const BadBadProvider = 3

BadBadProvider is the error number for a BadBadProvider.

View Source
const Notify = 1

Notify is the event number for a NotifyEvent.

View Source
const ScreenChangeNotify = 0

ScreenChangeNotify is the event number for a ScreenChangeNotifyEvent.

Variables

This section is empty.

Functions

func AddOutputMode

func AddOutputMode(c *xgb.XConn, Output Output, Mode Mode) error

AddOutputMode sends a checked request.

func AddOutputModeUnchecked added in v1.1.0

func AddOutputModeUnchecked(c *xgb.XConn, Output Output, Mode Mode) error

AddOutputModeUnchecked sends an unchecked request.

func ChangeOutputProperty

func ChangeOutputProperty(c *xgb.XConn, Output Output, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumUnits uint32, Data []byte) error

ChangeOutputProperty sends a checked request.

func ChangeOutputPropertyUnchecked added in v1.1.0

func ChangeOutputPropertyUnchecked(c *xgb.XConn, Output Output, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumUnits uint32, Data []byte) error

ChangeOutputPropertyUnchecked sends an unchecked request.

func ChangeProviderProperty

func ChangeProviderProperty(c *xgb.XConn, Provider Provider, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumItems uint32, Data []byte) error

ChangeProviderProperty sends a checked request.

func ChangeProviderPropertyUnchecked added in v1.1.0

func ChangeProviderPropertyUnchecked(c *xgb.XConn, Provider Provider, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumItems uint32, Data []byte) error

ChangeProviderPropertyUnchecked sends an unchecked request.

func ConfigureOutputProperty

func ConfigureOutputProperty(c *xgb.XConn, Output Output, Property xproto.Atom, Pending bool, Range bool, Values []int32) error

ConfigureOutputProperty sends a checked request.

func ConfigureOutputPropertyUnchecked added in v1.1.0

func ConfigureOutputPropertyUnchecked(c *xgb.XConn, Output Output, Property xproto.Atom, Pending bool, Range bool, Values []int32) error

ConfigureOutputPropertyUnchecked sends an unchecked request.

func ConfigureProviderProperty

func ConfigureProviderProperty(c *xgb.XConn, Provider Provider, Property xproto.Atom, Pending bool, Range bool, Values []int32) error

ConfigureProviderProperty sends a checked request.

func ConfigureProviderPropertyUnchecked added in v1.1.0

func ConfigureProviderPropertyUnchecked(c *xgb.XConn, Provider Provider, Property xproto.Atom, Pending bool, Range bool, Values []int32) error

ConfigureProviderPropertyUnchecked sends an unchecked request.

func CreateLeaseUnchecked added in v1.1.0

func CreateLeaseUnchecked(c *xgb.XConn, Window xproto.Window, Lid Lease, NumCrtcs uint16, NumOutputs uint16, Crtcs []Crtc, Outputs []Output) error

CreateLeaseUnchecked sends an unchecked request.

func CreateModeUnchecked

func CreateModeUnchecked(c *xgb.XConn, Window xproto.Window, ModeInfo ModeInfo, Name string) error

CreateModeUnchecked sends an unchecked request.

func CrtcChangeListBytes

func CrtcChangeListBytes(buf []byte, list []CrtcChange) int

CrtcChangeListBytes writes a list of CrtcChange values to a byte slice.

func CrtcChangeRead

func CrtcChangeRead(buf []byte, v *CrtcChange) int

CrtcChangeRead reads a byte slice into a CrtcChange value.

func CrtcChangeReadList

func CrtcChangeReadList(buf []byte, dest []CrtcChange) int

CrtcChangeReadList reads a byte slice into a list of CrtcChange values.

func DeleteMonitor added in v1.1.0

func DeleteMonitor(c *xgb.XConn, Window xproto.Window, Name xproto.Atom) error

DeleteMonitor sends a checked request.

func DeleteMonitorUnchecked added in v1.1.0

func DeleteMonitorUnchecked(c *xgb.XConn, Window xproto.Window, Name xproto.Atom) error

DeleteMonitorUnchecked sends an unchecked request.

func DeleteOutputMode

func DeleteOutputMode(c *xgb.XConn, Output Output, Mode Mode) error

DeleteOutputMode sends a checked request.

func DeleteOutputModeUnchecked added in v1.1.0

func DeleteOutputModeUnchecked(c *xgb.XConn, Output Output, Mode Mode) error

DeleteOutputModeUnchecked sends an unchecked request.

func DeleteOutputProperty

func DeleteOutputProperty(c *xgb.XConn, Output Output, Property xproto.Atom) error

DeleteOutputProperty sends a checked request.

func DeleteOutputPropertyUnchecked added in v1.1.0

func DeleteOutputPropertyUnchecked(c *xgb.XConn, Output Output, Property xproto.Atom) error

DeleteOutputPropertyUnchecked sends an unchecked request.

func DeleteProviderProperty

func DeleteProviderProperty(c *xgb.XConn, Provider Provider, Property xproto.Atom) error

DeleteProviderProperty sends a checked request.

func DeleteProviderPropertyUnchecked added in v1.1.0

func DeleteProviderPropertyUnchecked(c *xgb.XConn, Provider Provider, Property xproto.Atom) error

DeleteProviderPropertyUnchecked sends an unchecked request.

func DestroyMode

func DestroyMode(c *xgb.XConn, Mode Mode) error

DestroyMode sends a checked request.

func DestroyModeUnchecked added in v1.1.0

func DestroyModeUnchecked(c *xgb.XConn, Mode Mode) error

DestroyModeUnchecked sends an unchecked request.

func FreeLease added in v1.1.0

func FreeLease(c *xgb.XConn, Lid Lease, Terminate byte) error

FreeLease sends a checked request.

func FreeLeaseUnchecked added in v1.1.0

func FreeLeaseUnchecked(c *xgb.XConn, Lid Lease, Terminate byte) error

FreeLeaseUnchecked sends an unchecked request.

func GetCrtcGammaSizeUnchecked

func GetCrtcGammaSizeUnchecked(c *xgb.XConn, Crtc Crtc) error

GetCrtcGammaSizeUnchecked sends an unchecked request.

func GetCrtcGammaUnchecked

func GetCrtcGammaUnchecked(c *xgb.XConn, Crtc Crtc) error

GetCrtcGammaUnchecked sends an unchecked request.

func GetCrtcInfoUnchecked

func GetCrtcInfoUnchecked(c *xgb.XConn, Crtc Crtc, ConfigTimestamp xproto.Timestamp) error

GetCrtcInfoUnchecked sends an unchecked request.

func GetCrtcTransformUnchecked

func GetCrtcTransformUnchecked(c *xgb.XConn, Crtc Crtc) error

GetCrtcTransformUnchecked sends an unchecked request.

func GetMonitorsUnchecked added in v1.1.0

func GetMonitorsUnchecked(c *xgb.XConn, Window xproto.Window, GetActive bool) error

GetMonitorsUnchecked sends an unchecked request.

func GetOutputInfoUnchecked

func GetOutputInfoUnchecked(c *xgb.XConn, Output Output, ConfigTimestamp xproto.Timestamp) error

GetOutputInfoUnchecked sends an unchecked request.

func GetOutputPrimaryUnchecked

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

GetOutputPrimaryUnchecked sends an unchecked request.

func GetOutputPropertyUnchecked

func GetOutputPropertyUnchecked(c *xgb.XConn, Output Output, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) error

GetOutputPropertyUnchecked sends an unchecked request.

func GetPanningUnchecked

func GetPanningUnchecked(c *xgb.XConn, Crtc Crtc) error

GetPanningUnchecked sends an unchecked request.

func GetProviderInfoUnchecked

func GetProviderInfoUnchecked(c *xgb.XConn, Provider Provider, ConfigTimestamp xproto.Timestamp) error

GetProviderInfoUnchecked sends an unchecked request.

func GetProviderPropertyUnchecked

func GetProviderPropertyUnchecked(c *xgb.XConn, Provider Provider, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) error

GetProviderPropertyUnchecked sends an unchecked request.

func GetProvidersUnchecked

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

GetProvidersUnchecked sends an unchecked request.

func GetScreenInfoUnchecked

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

GetScreenInfoUnchecked sends an unchecked request.

func GetScreenResourcesCurrentUnchecked

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

GetScreenResourcesCurrentUnchecked sends an unchecked request.

func GetScreenResourcesUnchecked

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

GetScreenResourcesUnchecked sends an unchecked request.

func GetScreenSizeRangeUnchecked

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

GetScreenSizeRangeUnchecked sends an unchecked request.

func LeaseNotifyListBytes added in v1.1.0

func LeaseNotifyListBytes(buf []byte, list []LeaseNotify) int

LeaseNotifyListBytes writes a list of LeaseNotify values to a byte slice.

func LeaseNotifyRead added in v1.1.0

func LeaseNotifyRead(buf []byte, v *LeaseNotify) int

LeaseNotifyRead reads a byte slice into a LeaseNotify value.

func LeaseNotifyReadList added in v1.1.0

func LeaseNotifyReadList(buf []byte, dest []LeaseNotify) int

LeaseNotifyReadList reads a byte slice into a list of LeaseNotify values.

func ListOutputPropertiesUnchecked

func ListOutputPropertiesUnchecked(c *xgb.XConn, Output Output) error

ListOutputPropertiesUnchecked sends an unchecked request.

func ListProviderPropertiesUnchecked

func ListProviderPropertiesUnchecked(c *xgb.XConn, Provider Provider) error

ListProviderPropertiesUnchecked sends an unchecked request.

func ModeInfoListBytes

func ModeInfoListBytes(buf []byte, list []ModeInfo) int

ModeInfoListBytes writes a list of ModeInfo values to a byte slice.

func ModeInfoRead

func ModeInfoRead(buf []byte, v *ModeInfo) int

ModeInfoRead reads a byte slice into a ModeInfo value.

func ModeInfoReadList

func ModeInfoReadList(buf []byte, dest []ModeInfo) int

ModeInfoReadList reads a byte slice into a list of ModeInfo values.

func MonitorInfoListBytes added in v1.1.0

func MonitorInfoListBytes(buf []byte, list []MonitorInfo) int

MonitorInfoListBytes writes a list of MonitorInfo values to a byte slice.

func MonitorInfoListSize added in v1.1.0

func MonitorInfoListSize(list []MonitorInfo) int

MonitorInfoListSize computes the size (bytes) of a list of MonitorInfo values.

func MonitorInfoRead added in v1.1.0

func MonitorInfoRead(buf []byte, v *MonitorInfo) int

MonitorInfoRead reads a byte slice into a MonitorInfo value.

func MonitorInfoReadList added in v1.1.0

func MonitorInfoReadList(buf []byte, dest []MonitorInfo) int

MonitorInfoReadList reads a byte slice into a list of MonitorInfo values.

func NotifyDataUnionListBytes

func NotifyDataUnionListBytes(buf []byte, list []NotifyDataUnion) int

NotifyDataUnionListBytes writes a list of NotifyDataUnion values to a byte slice.

func NotifyDataUnionRead

func NotifyDataUnionRead(buf []byte, v *NotifyDataUnion) int

NotifyDataUnionRead reads a byte slice into a NotifyDataUnion value.

func NotifyDataUnionReadList

func NotifyDataUnionReadList(buf []byte, dest []NotifyDataUnion) int

NotifyDataUnionReadList reads a byte slice into a list of NotifyDataUnion values.

func OutputChangeListBytes

func OutputChangeListBytes(buf []byte, list []OutputChange) int

OutputChangeListBytes writes a list of OutputChange values to a byte slice.

func OutputChangeRead

func OutputChangeRead(buf []byte, v *OutputChange) int

OutputChangeRead reads a byte slice into a OutputChange value.

func OutputChangeReadList

func OutputChangeReadList(buf []byte, dest []OutputChange) int

OutputChangeReadList reads a byte slice into a list of OutputChange values.

func OutputPropertyListBytes

func OutputPropertyListBytes(buf []byte, list []OutputProperty) int

OutputPropertyListBytes writes a list of OutputProperty values to a byte slice.

func OutputPropertyRead

func OutputPropertyRead(buf []byte, v *OutputProperty) int

OutputPropertyRead reads a byte slice into a OutputProperty value.

func OutputPropertyReadList

func OutputPropertyReadList(buf []byte, dest []OutputProperty) int

OutputPropertyReadList reads a byte slice into a list of OutputProperty values.

func ProviderChangeListBytes

func ProviderChangeListBytes(buf []byte, list []ProviderChange) int

ProviderChangeListBytes writes a list of ProviderChange values to a byte slice.

func ProviderChangeRead

func ProviderChangeRead(buf []byte, v *ProviderChange) int

ProviderChangeRead reads a byte slice into a ProviderChange value.

func ProviderChangeReadList

func ProviderChangeReadList(buf []byte, dest []ProviderChange) int

ProviderChangeReadList reads a byte slice into a list of ProviderChange values.

func ProviderPropertyListBytes

func ProviderPropertyListBytes(buf []byte, list []ProviderProperty) int

ProviderPropertyListBytes writes a list of ProviderProperty values to a byte slice.

func ProviderPropertyRead

func ProviderPropertyRead(buf []byte, v *ProviderProperty) int

ProviderPropertyRead reads a byte slice into a ProviderProperty value.

func ProviderPropertyReadList

func ProviderPropertyReadList(buf []byte, dest []ProviderProperty) int

ProviderPropertyReadList reads a byte slice into a list of ProviderProperty values.

func QueryOutputPropertyUnchecked

func QueryOutputPropertyUnchecked(c *xgb.XConn, Output Output, Property xproto.Atom) error

QueryOutputPropertyUnchecked sends an unchecked request.

func QueryProviderPropertyUnchecked

func QueryProviderPropertyUnchecked(c *xgb.XConn, Provider Provider, Property xproto.Atom) error

QueryProviderPropertyUnchecked sends an unchecked request.

func QueryVersionUnchecked

func QueryVersionUnchecked(c *xgb.XConn, MajorVersion uint32, MinorVersion uint32) error

QueryVersionUnchecked sends an unchecked request.

func RefreshRatesListBytes

func RefreshRatesListBytes(buf []byte, list []RefreshRates) int

RefreshRatesListBytes writes a list of RefreshRates values to a byte slice.

func RefreshRatesListSize

func RefreshRatesListSize(list []RefreshRates) int

RefreshRatesListSize computes the size (bytes) of a list of RefreshRates values.

func RefreshRatesRead

func RefreshRatesRead(buf []byte, v *RefreshRates) int

RefreshRatesRead reads a byte slice into a RefreshRates value.

func RefreshRatesReadList

func RefreshRatesReadList(buf []byte, dest []RefreshRates) int

RefreshRatesReadList reads a byte slice into a list of RefreshRates values.

func Register added in v1.1.0

func Register(xconn *xgb.XConn) error

Register will query the X server for RandR extension support, and register relevant extension unmarshalers with the XConn.

func ResourceChangeListBytes

func ResourceChangeListBytes(buf []byte, list []ResourceChange) int

ResourceChangeListBytes writes a list of ResourceChange values to a byte slice.

func ResourceChangeRead

func ResourceChangeRead(buf []byte, v *ResourceChange) int

ResourceChangeRead reads a byte slice into a ResourceChange value.

func ResourceChangeReadList

func ResourceChangeReadList(buf []byte, dest []ResourceChange) int

ResourceChangeReadList reads a byte slice into a list of ResourceChange values.

func ScreenSizeListBytes

func ScreenSizeListBytes(buf []byte, list []ScreenSize) int

ScreenSizeListBytes writes a list of ScreenSize values to a byte slice.

func ScreenSizeRead

func ScreenSizeRead(buf []byte, v *ScreenSize) int

ScreenSizeRead reads a byte slice into a ScreenSize value.

func ScreenSizeReadList

func ScreenSizeReadList(buf []byte, dest []ScreenSize) int

ScreenSizeReadList reads a byte slice into a list of ScreenSize values.

func SelectInput

func SelectInput(c *xgb.XConn, Window xproto.Window, Enable uint16) error

SelectInput sends a checked request.

func SelectInputUnchecked added in v1.1.0

func SelectInputUnchecked(c *xgb.XConn, Window xproto.Window, Enable uint16) error

SelectInputUnchecked sends an unchecked request.

func SetCrtcConfigUnchecked

func SetCrtcConfigUnchecked(c *xgb.XConn, Crtc Crtc, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, X int16, Y int16, Mode Mode, Rotation uint16, Outputs []Output) error

SetCrtcConfigUnchecked sends an unchecked request.

func SetCrtcGamma

func SetCrtcGamma(c *xgb.XConn, Crtc Crtc, Size uint16, Red []uint16, Green []uint16, Blue []uint16) error

SetCrtcGamma sends a checked request.

func SetCrtcGammaUnchecked added in v1.1.0

func SetCrtcGammaUnchecked(c *xgb.XConn, Crtc Crtc, Size uint16, Red []uint16, Green []uint16, Blue []uint16) error

SetCrtcGammaUnchecked sends an unchecked request.

func SetCrtcTransform

func SetCrtcTransform(c *xgb.XConn, Crtc Crtc, Transform render.Transform, FilterLen uint16, FilterName string, FilterParams []render.Fixed) error

SetCrtcTransform sends a checked request.

func SetCrtcTransformUnchecked added in v1.1.0

func SetCrtcTransformUnchecked(c *xgb.XConn, Crtc Crtc, Transform render.Transform, FilterLen uint16, FilterName string, FilterParams []render.Fixed) error

SetCrtcTransformUnchecked sends an unchecked request.

func SetMonitor added in v1.1.0

func SetMonitor(c *xgb.XConn, Window xproto.Window, Monitorinfo MonitorInfo) error

SetMonitor sends a checked request.

func SetMonitorUnchecked added in v1.1.0

func SetMonitorUnchecked(c *xgb.XConn, Window xproto.Window, Monitorinfo MonitorInfo) error

SetMonitorUnchecked sends an unchecked request.

func SetOutputPrimary

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

SetOutputPrimary sends a checked request.

func SetOutputPrimaryUnchecked added in v1.1.0

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

SetOutputPrimaryUnchecked sends an unchecked request.

func SetPanningUnchecked

func SetPanningUnchecked(c *xgb.XConn, Crtc Crtc, Timestamp xproto.Timestamp, Left uint16, Top uint16, Width uint16, Height uint16, TrackLeft uint16, TrackTop uint16, TrackWidth uint16, TrackHeight uint16, BorderLeft int16, BorderTop int16, BorderRight int16, BorderBottom int16) error

SetPanningUnchecked sends an unchecked request.

func SetProviderOffloadSink

func SetProviderOffloadSink(c *xgb.XConn, Provider Provider, SinkProvider Provider, ConfigTimestamp xproto.Timestamp) error

SetProviderOffloadSink sends a checked request.

func SetProviderOffloadSinkUnchecked added in v1.1.0

func SetProviderOffloadSinkUnchecked(c *xgb.XConn, Provider Provider, SinkProvider Provider, ConfigTimestamp xproto.Timestamp) error

SetProviderOffloadSinkUnchecked sends an unchecked request.

func SetProviderOutputSource

func SetProviderOutputSource(c *xgb.XConn, Provider Provider, SourceProvider Provider, ConfigTimestamp xproto.Timestamp) error

SetProviderOutputSource sends a checked request.

func SetProviderOutputSourceUnchecked added in v1.1.0

func SetProviderOutputSourceUnchecked(c *xgb.XConn, Provider Provider, SourceProvider Provider, ConfigTimestamp xproto.Timestamp) error

SetProviderOutputSourceUnchecked sends an unchecked request.

func SetScreenConfigUnchecked

func SetScreenConfigUnchecked(c *xgb.XConn, Window xproto.Window, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, SizeID uint16, Rotation uint16, Rate uint16) error

SetScreenConfigUnchecked sends an unchecked request.

func SetScreenSize

func SetScreenSize(c *xgb.XConn, Window xproto.Window, Width uint16, Height uint16, MmWidth uint32, MmHeight uint32) error

SetScreenSize sends a checked request.

func SetScreenSizeUnchecked added in v1.1.0

func SetScreenSizeUnchecked(c *xgb.XConn, Window xproto.Window, Width uint16, Height uint16, MmWidth uint32, MmHeight uint32) error

SetScreenSizeUnchecked sends an unchecked request.

func UnmarshalBadCrtcError added in v1.1.0

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

UnmarshalBadCrtcError constructs a BadCrtcError value that implements xgb.Error from a byte slice.

func UnmarshalBadModeError added in v1.1.0

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

UnmarshalBadModeError constructs a BadModeError value that implements xgb.Error from a byte slice.

func UnmarshalBadOutputError added in v1.1.0

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

UnmarshalBadOutputError constructs a BadOutputError value that implements xgb.Error from a byte slice.

func UnmarshalBadProviderError added in v1.1.0

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

UnmarshalBadProviderError constructs a BadProviderError value that implements xgb.Error from a byte slice.

func UnmarshalNotifyEvent added in v1.1.0

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

UnmarshalNotifyEvent constructs a NotifyEvent value that implements xgb.Event from a byte slice.

func UnmarshalScreenChangeNotifyEvent added in v1.1.0

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

UnmarshalScreenChangeNotifyEvent constructs a ScreenChangeNotifyEvent value that implements xgb.Event from a byte slice.

Types

type BadCrtcError

type BadCrtcError struct {
	Sequence uint16
	NiceName string
}

func (*BadCrtcError) BadID added in v1.1.0

func (err *BadCrtcError) BadID() uint32

BadID returns the 'BadValue' number if one exists for the BadBadCrtc error. If no bad value exists, 0 is returned.

func (*BadCrtcError) Error

func (err *BadCrtcError) Error() string

Error returns a rudimentary string representation of the BadBadCrtc error.

func (*BadCrtcError) SeqID added in v1.1.0

func (err *BadCrtcError) SeqID() uint16

SeqID returns the sequence id attached to the BadBadCrtc error. This is mostly used internally.

type BadModeError

type BadModeError struct {
	Sequence uint16
	NiceName string
}

func (*BadModeError) BadID added in v1.1.0

func (err *BadModeError) BadID() uint32

BadID returns the 'BadValue' number if one exists for the BadBadMode error. If no bad value exists, 0 is returned.

func (*BadModeError) Error

func (err *BadModeError) Error() string

Error returns a rudimentary string representation of the BadBadMode error.

func (*BadModeError) SeqID added in v1.1.0

func (err *BadModeError) SeqID() uint16

SeqID returns the sequence id attached to the BadBadMode error. This is mostly used internally.

type BadOutputError

type BadOutputError struct {
	Sequence uint16
	NiceName string
}

func (*BadOutputError) BadID added in v1.1.0

func (err *BadOutputError) BadID() uint32

BadID returns the 'BadValue' number if one exists for the BadBadOutput error. If no bad value exists, 0 is returned.

func (*BadOutputError) Error

func (err *BadOutputError) Error() string

Error returns a rudimentary string representation of the BadBadOutput error.

func (*BadOutputError) SeqID added in v1.1.0

func (err *BadOutputError) SeqID() uint16

SeqID returns the sequence id attached to the BadBadOutput error. This is mostly used internally.

type BadProviderError

type BadProviderError struct {
	Sequence uint16
	NiceName string
}

func (*BadProviderError) BadID added in v1.1.0

func (err *BadProviderError) BadID() uint32

BadID returns the 'BadValue' number if one exists for the BadBadProvider error. If no bad value exists, 0 is returned.

func (*BadProviderError) Error

func (err *BadProviderError) Error() string

Error returns a rudimentary string representation of the BadBadProvider error.

func (*BadProviderError) SeqID added in v1.1.0

func (err *BadProviderError) SeqID() uint16

SeqID returns the sequence id attached to the BadBadProvider error. This is mostly used internally.

type CreateLeaseReply added in v1.1.0

type CreateLeaseReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	Nfd      byte
}

CreateLeaseReply represents the data returned from a CreateLease request.

func CreateLease added in v1.1.0

func CreateLease(c *xgb.XConn, Window xproto.Window, Lid Lease, NumCrtcs uint16, NumOutputs uint16, Crtcs []Crtc, Outputs []Output) (CreateLeaseReply, error)

CreateLease sends a checked request.

func (*CreateLeaseReply) Unmarshal added in v1.1.0

func (v *CreateLeaseReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a CreateLeaseReply value.

type CreateModeReply

type CreateModeReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Mode Mode
}

CreateModeReply represents the data returned from a CreateMode request.

func CreateMode

func CreateMode(c *xgb.XConn, Window xproto.Window, ModeInfo ModeInfo, Name string) (CreateModeReply, error)

CreateMode sends a checked request.

func (*CreateModeReply) Unmarshal added in v1.1.0

func (v *CreateModeReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a CreateModeReply value.

type Crtc

type Crtc uint32

func NewCrtcID added in v1.1.0

func NewCrtcID(c *xgb.XConn) Crtc

type CrtcChange

type CrtcChange struct {
	Timestamp xproto.Timestamp
	Window    xproto.Window
	Crtc      Crtc
	Mode      Mode
	Rotation  uint16
	// padding: 2 bytes
	X      int16
	Y      int16
	Width  uint16
	Height uint16
}

func (CrtcChange) Bytes

func (v CrtcChange) Bytes() []byte

Bytes writes a CrtcChange value to a byte slice.

type GetCrtcGammaReply

type GetCrtcGammaReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Size uint16
	// padding: 22 bytes
	Red []uint16 // size: internal.Pad4((int(Size) * 2))
	// alignment gap to multiple of 2
	Green []uint16 // size: internal.Pad4((int(Size) * 2))
	// alignment gap to multiple of 2
	Blue []uint16 // size: internal.Pad4((int(Size) * 2))
}

GetCrtcGammaReply represents the data returned from a GetCrtcGamma request.

func GetCrtcGamma

func GetCrtcGamma(c *xgb.XConn, Crtc Crtc) (GetCrtcGammaReply, error)

GetCrtcGamma sends a checked request.

func (*GetCrtcGammaReply) Unmarshal added in v1.1.0

func (v *GetCrtcGammaReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetCrtcGammaReply value.

type GetCrtcGammaSizeReply

type GetCrtcGammaSizeReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Size uint16
}

GetCrtcGammaSizeReply represents the data returned from a GetCrtcGammaSize request.

func GetCrtcGammaSize

func GetCrtcGammaSize(c *xgb.XConn, Crtc Crtc) (GetCrtcGammaSizeReply, error)

GetCrtcGammaSize sends a checked request.

func (*GetCrtcGammaSizeReply) Unmarshal added in v1.1.0

func (v *GetCrtcGammaSizeReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetCrtcGammaSizeReply value.

type GetCrtcInfoReply

type GetCrtcInfoReply struct {
	Sequence           uint16 // sequence number of the request for this reply
	Length             uint32 // number of bytes in this reply
	Status             byte
	Timestamp          xproto.Timestamp
	X                  int16
	Y                  int16
	Width              uint16
	Height             uint16
	Mode               Mode
	Rotation           uint16
	Rotations          uint16
	NumOutputs         uint16
	NumPossibleOutputs uint16
	Outputs            []Output // size: internal.Pad4((int(NumOutputs) * 4))
	// alignment gap to multiple of 4
	Possible []Output // size: internal.Pad4((int(NumPossibleOutputs) * 4))
}

GetCrtcInfoReply represents the data returned from a GetCrtcInfo request.

func GetCrtcInfo

func GetCrtcInfo(c *xgb.XConn, Crtc Crtc, ConfigTimestamp xproto.Timestamp) (GetCrtcInfoReply, error)

GetCrtcInfo sends a checked request.

func (*GetCrtcInfoReply) Unmarshal added in v1.1.0

func (v *GetCrtcInfoReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetCrtcInfoReply value.

type GetCrtcTransformReply

type GetCrtcTransformReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	PendingTransform render.Transform
	HasTransforms    bool
	// padding: 3 bytes
	CurrentTransform render.Transform
	// padding: 4 bytes
	PendingLen        uint16
	PendingNparams    uint16
	CurrentLen        uint16
	CurrentNparams    uint16
	PendingFilterName string // size: internal.Pad4((int(PendingLen) * 1))
	// padding: 0 bytes
	PendingParams     []render.Fixed // size: internal.Pad4((int(PendingNparams) * 4))
	CurrentFilterName string         // size: internal.Pad4((int(CurrentLen) * 1))
	// padding: 0 bytes
	CurrentParams []render.Fixed // size: internal.Pad4((int(CurrentNparams) * 4))
}

GetCrtcTransformReply represents the data returned from a GetCrtcTransform request.

func GetCrtcTransform

func GetCrtcTransform(c *xgb.XConn, Crtc Crtc) (GetCrtcTransformReply, error)

GetCrtcTransform sends a checked request.

func (*GetCrtcTransformReply) Unmarshal added in v1.1.0

func (v *GetCrtcTransformReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetCrtcTransformReply value.

type GetMonitorsReply added in v1.1.0

type GetMonitorsReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Timestamp xproto.Timestamp
	NMonitors uint32
	NOutputs  uint32
	// padding: 12 bytes
	Monitors []MonitorInfo // size: MonitorInfoListSize(Monitors)
}

GetMonitorsReply represents the data returned from a GetMonitors request.

func GetMonitors added in v1.1.0

func GetMonitors(c *xgb.XConn, Window xproto.Window, GetActive bool) (GetMonitorsReply, error)

GetMonitors sends a checked request.

func (*GetMonitorsReply) Unmarshal added in v1.1.0

func (v *GetMonitorsReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetMonitorsReply value.

type GetOutputInfoReply

type GetOutputInfoReply struct {
	Sequence      uint16 // sequence number of the request for this reply
	Length        uint32 // number of bytes in this reply
	Status        byte
	Timestamp     xproto.Timestamp
	Crtc          Crtc
	MmWidth       uint32
	MmHeight      uint32
	Connection    byte
	SubpixelOrder byte
	NumCrtcs      uint16
	NumModes      uint16
	NumPreferred  uint16
	NumClones     uint16
	NameLen       uint16
	Crtcs         []Crtc // size: internal.Pad4((int(NumCrtcs) * 4))
	// alignment gap to multiple of 4
	Modes []Mode // size: internal.Pad4((int(NumModes) * 4))
	// alignment gap to multiple of 4
	Clones []Output // size: internal.Pad4((int(NumClones) * 4))
	Name   []byte   // size: internal.Pad4((int(NameLen) * 1))
}

GetOutputInfoReply represents the data returned from a GetOutputInfo request.

func GetOutputInfo

func GetOutputInfo(c *xgb.XConn, Output Output, ConfigTimestamp xproto.Timestamp) (GetOutputInfoReply, error)

GetOutputInfo sends a checked request.

func (*GetOutputInfoReply) Unmarshal added in v1.1.0

func (v *GetOutputInfoReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetOutputInfoReply value.

type GetOutputPrimaryReply

type GetOutputPrimaryReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Output Output
}

GetOutputPrimaryReply represents the data returned from a GetOutputPrimary request.

func GetOutputPrimary

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

GetOutputPrimary sends a checked request.

func (*GetOutputPrimaryReply) Unmarshal added in v1.1.0

func (v *GetOutputPrimaryReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetOutputPrimaryReply value.

type GetOutputPropertyReply

type GetOutputPropertyReply struct {
	Sequence   uint16 // sequence number of the request for this reply
	Length     uint32 // number of bytes in this reply
	Format     byte
	Type       xproto.Atom
	BytesAfter uint32
	NumItems   uint32
	// padding: 12 bytes
	Data []byte // size: internal.Pad4(((int(NumItems) * (int(Format) / 8)) * 1))
}

GetOutputPropertyReply represents the data returned from a GetOutputProperty request.

func GetOutputProperty

func GetOutputProperty(c *xgb.XConn, Output Output, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) (GetOutputPropertyReply, error)

GetOutputProperty sends a checked request.

func (*GetOutputPropertyReply) Unmarshal added in v1.1.0

func (v *GetOutputPropertyReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetOutputPropertyReply value.

type GetPanningReply

type GetPanningReply struct {
	Sequence     uint16 // sequence number of the request for this reply
	Length       uint32 // number of bytes in this reply
	Status       byte
	Timestamp    xproto.Timestamp
	Left         uint16
	Top          uint16
	Width        uint16
	Height       uint16
	TrackLeft    uint16
	TrackTop     uint16
	TrackWidth   uint16
	TrackHeight  uint16
	BorderLeft   int16
	BorderTop    int16
	BorderRight  int16
	BorderBottom int16
}

GetPanningReply represents the data returned from a GetPanning request.

func GetPanning

func GetPanning(c *xgb.XConn, Crtc Crtc) (GetPanningReply, error)

GetPanning sends a checked request.

func (*GetPanningReply) Unmarshal added in v1.1.0

func (v *GetPanningReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetPanningReply value.

type GetProviderInfoReply

type GetProviderInfoReply struct {
	Sequence               uint16 // sequence number of the request for this reply
	Length                 uint32 // number of bytes in this reply
	Status                 byte
	Timestamp              xproto.Timestamp
	Capabilities           uint32
	NumCrtcs               uint16
	NumOutputs             uint16
	NumAssociatedProviders uint16
	NameLen                uint16
	// padding: 8 bytes
	Crtcs []Crtc // size: internal.Pad4((int(NumCrtcs) * 4))
	// alignment gap to multiple of 4
	Outputs []Output // size: internal.Pad4((int(NumOutputs) * 4))
	// alignment gap to multiple of 4
	AssociatedProviders []Provider // size: internal.Pad4((int(NumAssociatedProviders) * 4))
	// alignment gap to multiple of 4
	AssociatedCapability []uint32 // size: internal.Pad4((int(NumAssociatedProviders) * 4))
	Name                 string   // size: internal.Pad4((int(NameLen) * 1))
}

GetProviderInfoReply represents the data returned from a GetProviderInfo request.

func GetProviderInfo

func GetProviderInfo(c *xgb.XConn, Provider Provider, ConfigTimestamp xproto.Timestamp) (GetProviderInfoReply, error)

GetProviderInfo sends a checked request.

func (*GetProviderInfoReply) Unmarshal added in v1.1.0

func (v *GetProviderInfoReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetProviderInfoReply value.

type GetProviderPropertyReply

type GetProviderPropertyReply struct {
	Sequence   uint16 // sequence number of the request for this reply
	Length     uint32 // number of bytes in this reply
	Format     byte
	Type       xproto.Atom
	BytesAfter uint32
	NumItems   uint32
	// padding: 12 bytes
	Data []byte // size: internal.Pad4(((int(NumItems) * (int(Format) / 8)) * 1))
}

GetProviderPropertyReply represents the data returned from a GetProviderProperty request.

func GetProviderProperty

func GetProviderProperty(c *xgb.XConn, Provider Provider, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) (GetProviderPropertyReply, error)

GetProviderProperty sends a checked request.

func (*GetProviderPropertyReply) Unmarshal added in v1.1.0

func (v *GetProviderPropertyReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetProviderPropertyReply value.

type GetProvidersReply

type GetProvidersReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Timestamp    xproto.Timestamp
	NumProviders uint16
	// padding: 18 bytes
	Providers []Provider // size: internal.Pad4((int(NumProviders) * 4))
}

GetProvidersReply represents the data returned from a GetProviders request.

func GetProviders

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

GetProviders sends a checked request.

func (*GetProvidersReply) Unmarshal added in v1.1.0

func (v *GetProvidersReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetProvidersReply value.

type GetScreenInfoReply

type GetScreenInfoReply struct {
	Sequence        uint16 // sequence number of the request for this reply
	Length          uint32 // number of bytes in this reply
	Rotations       byte
	Root            xproto.Window
	Timestamp       xproto.Timestamp
	ConfigTimestamp xproto.Timestamp
	NSizes          uint16
	SizeID          uint16
	Rotation        uint16
	Rate            uint16
	NInfo           uint16
	// padding: 2 bytes
	Sizes []ScreenSize // size: internal.Pad4((int(NSizes) * 8))
	// alignment gap to multiple of 2
	Rates []RefreshRates // size: RefreshRatesListSize(Rates)
}

GetScreenInfoReply represents the data returned from a GetScreenInfo request.

func GetScreenInfo

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

GetScreenInfo sends a checked request.

func (*GetScreenInfoReply) Unmarshal added in v1.1.0

func (v *GetScreenInfoReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetScreenInfoReply value.

type GetScreenResourcesCurrentReply

type GetScreenResourcesCurrentReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Timestamp       xproto.Timestamp
	ConfigTimestamp xproto.Timestamp
	NumCrtcs        uint16
	NumOutputs      uint16
	NumModes        uint16
	NamesLen        uint16
	// padding: 8 bytes
	Crtcs []Crtc // size: internal.Pad4((int(NumCrtcs) * 4))
	// alignment gap to multiple of 4
	Outputs []Output // size: internal.Pad4((int(NumOutputs) * 4))
	// alignment gap to multiple of 4
	Modes []ModeInfo // size: internal.Pad4((int(NumModes) * 32))
	Names []byte     // size: internal.Pad4((int(NamesLen) * 1))
}

GetScreenResourcesCurrentReply represents the data returned from a GetScreenResourcesCurrent request.

func GetScreenResourcesCurrent

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

GetScreenResourcesCurrent sends a checked request.

func (*GetScreenResourcesCurrentReply) Unmarshal added in v1.1.0

func (v *GetScreenResourcesCurrentReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetScreenResourcesCurrentReply value.

type GetScreenResourcesReply

type GetScreenResourcesReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Timestamp       xproto.Timestamp
	ConfigTimestamp xproto.Timestamp
	NumCrtcs        uint16
	NumOutputs      uint16
	NumModes        uint16
	NamesLen        uint16
	// padding: 8 bytes
	Crtcs []Crtc // size: internal.Pad4((int(NumCrtcs) * 4))
	// alignment gap to multiple of 4
	Outputs []Output // size: internal.Pad4((int(NumOutputs) * 4))
	// alignment gap to multiple of 4
	Modes []ModeInfo // size: internal.Pad4((int(NumModes) * 32))
	Names []byte     // size: internal.Pad4((int(NamesLen) * 1))
}

GetScreenResourcesReply represents the data returned from a GetScreenResources request.

func GetScreenResources

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

GetScreenResources sends a checked request.

func (*GetScreenResourcesReply) Unmarshal added in v1.1.0

func (v *GetScreenResourcesReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetScreenResourcesReply value.

type GetScreenSizeRangeReply

type GetScreenSizeRangeReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	MinWidth  uint16
	MinHeight uint16
	MaxWidth  uint16
	MaxHeight uint16
}

GetScreenSizeRangeReply represents the data returned from a GetScreenSizeRange request.

func GetScreenSizeRange

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

GetScreenSizeRange sends a checked request.

func (*GetScreenSizeRangeReply) Unmarshal added in v1.1.0

func (v *GetScreenSizeRangeReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetScreenSizeRangeReply value.

type Lease added in v1.1.0

type Lease uint32

func NewLeaseID added in v1.1.0

func NewLeaseID(c *xgb.XConn) Lease

type LeaseNotify added in v1.1.0

type LeaseNotify struct {
	Timestamp xproto.Timestamp
	Window    xproto.Window
	Lease     Lease
	Created   byte
}

func (LeaseNotify) Bytes added in v1.1.0

func (v LeaseNotify) Bytes() []byte

Bytes writes a LeaseNotify value to a byte slice.

type ListOutputPropertiesReply

type ListOutputPropertiesReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	NumAtoms uint16
	// padding: 22 bytes
	Atoms []xproto.Atom // size: internal.Pad4((int(NumAtoms) * 4))
}

ListOutputPropertiesReply represents the data returned from a ListOutputProperties request.

func ListOutputProperties

func ListOutputProperties(c *xgb.XConn, Output Output) (ListOutputPropertiesReply, error)

ListOutputProperties sends a checked request.

func (*ListOutputPropertiesReply) Unmarshal added in v1.1.0

func (v *ListOutputPropertiesReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a ListOutputPropertiesReply value.

type ListProviderPropertiesReply

type ListProviderPropertiesReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	NumAtoms uint16
	// padding: 22 bytes
	Atoms []xproto.Atom // size: internal.Pad4((int(NumAtoms) * 4))
}

ListProviderPropertiesReply represents the data returned from a ListProviderProperties request.

func ListProviderProperties

func ListProviderProperties(c *xgb.XConn, Provider Provider) (ListProviderPropertiesReply, error)

ListProviderProperties sends a checked request.

func (*ListProviderPropertiesReply) Unmarshal added in v1.1.0

func (v *ListProviderPropertiesReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a ListProviderPropertiesReply value.

type Mode

type Mode uint32

func NewModeID added in v1.1.0

func NewModeID(c *xgb.XConn) Mode

type ModeInfo

type ModeInfo struct {
	Id         uint32
	Width      uint16
	Height     uint16
	DotClock   uint32
	HsyncStart uint16
	HsyncEnd   uint16
	Htotal     uint16
	Hskew      uint16
	VsyncStart uint16
	VsyncEnd   uint16
	Vtotal     uint16
	NameLen    uint16
	ModeFlags  uint32
}

func (ModeInfo) Bytes

func (v ModeInfo) Bytes() []byte

Bytes writes a ModeInfo value to a byte slice.

type MonitorInfo added in v1.1.0

type MonitorInfo struct {
	Name                xproto.Atom
	Primary             bool
	Automatic           bool
	NOutput             uint16
	X                   int16
	Y                   int16
	Width               uint16
	Height              uint16
	WidthInMillimeters  uint32
	HeightInMillimeters uint32
	Outputs             []Output // size: internal.Pad4((int(NOutput) * 4))
}

func (MonitorInfo) Bytes added in v1.1.0

func (v MonitorInfo) Bytes() []byte

Bytes writes a MonitorInfo value to a byte slice.

type NotifyDataUnion

type NotifyDataUnion struct {
	Cc CrtcChange
	Oc OutputChange
	Op OutputProperty
	Pc ProviderChange
	Pp ProviderProperty
	Rc ResourceChange
	Lc LeaseNotify
}

NotifyDataUnion is a representation of the NotifyDataUnion union type. Note that to *create* a Union, you should *never* create this struct directly (unless you know what you're doing). Instead use one of the following constructors for 'NotifyDataUnion':

NotifyDataUnionCcNew(Cc CrtcChange) NotifyDataUnion
NotifyDataUnionOcNew(Oc OutputChange) NotifyDataUnion
NotifyDataUnionOpNew(Op OutputProperty) NotifyDataUnion
NotifyDataUnionPcNew(Pc ProviderChange) NotifyDataUnion
NotifyDataUnionPpNew(Pp ProviderProperty) NotifyDataUnion
NotifyDataUnionRcNew(Rc ResourceChange) NotifyDataUnion
NotifyDataUnionLcNew(Lc LeaseNotify) NotifyDataUnion

func NotifyDataUnionCcNew

func NotifyDataUnionCcNew(Cc CrtcChange) NotifyDataUnion

NotifyDataUnionCcNew constructs a new NotifyDataUnion union type with the Cc field.

func NotifyDataUnionLcNew added in v1.1.0

func NotifyDataUnionLcNew(Lc LeaseNotify) NotifyDataUnion

NotifyDataUnionLcNew constructs a new NotifyDataUnion union type with the Lc field.

func NotifyDataUnionOcNew

func NotifyDataUnionOcNew(Oc OutputChange) NotifyDataUnion

NotifyDataUnionOcNew constructs a new NotifyDataUnion union type with the Oc field.

func NotifyDataUnionOpNew

func NotifyDataUnionOpNew(Op OutputProperty) NotifyDataUnion

NotifyDataUnionOpNew constructs a new NotifyDataUnion union type with the Op field.

func NotifyDataUnionPcNew

func NotifyDataUnionPcNew(Pc ProviderChange) NotifyDataUnion

NotifyDataUnionPcNew constructs a new NotifyDataUnion union type with the Pc field.

func NotifyDataUnionPpNew

func NotifyDataUnionPpNew(Pp ProviderProperty) NotifyDataUnion

NotifyDataUnionPpNew constructs a new NotifyDataUnion union type with the Pp field.

func NotifyDataUnionRcNew

func NotifyDataUnionRcNew(Rc ResourceChange) NotifyDataUnion

NotifyDataUnionRcNew constructs a new NotifyDataUnion union type with the Rc field.

func (NotifyDataUnion) Bytes

func (v NotifyDataUnion) Bytes() []byte

Bytes writes a NotifyDataUnion value to a byte slice. Each field in a union must contain the same data. So simply pick the first field and write that to the wire.

type NotifyEvent

type NotifyEvent struct {
	Sequence uint16
	SubCode  byte
	U        NotifyDataUnion
}

func (*NotifyEvent) Bytes

func (v *NotifyEvent) Bytes() []byte

Bytes writes a NotifyEvent value to a byte slice.

func (*NotifyEvent) SeqID added in v1.1.0

func (v *NotifyEvent) SeqID() uint16

SeqID returns the sequence id attached to the Notify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.

type Output

type Output uint32

func NewOutputID added in v1.1.0

func NewOutputID(c *xgb.XConn) Output

type OutputChange

type OutputChange struct {
	Timestamp       xproto.Timestamp
	ConfigTimestamp xproto.Timestamp
	Window          xproto.Window
	Output          Output
	Crtc            Crtc
	Mode            Mode
	Rotation        uint16
	Connection      byte
	SubpixelOrder   byte
}

func (OutputChange) Bytes

func (v OutputChange) Bytes() []byte

Bytes writes a OutputChange value to a byte slice.

type OutputProperty

type OutputProperty struct {
	Window    xproto.Window
	Output    Output
	Atom      xproto.Atom
	Timestamp xproto.Timestamp
	Status    byte
}

func (OutputProperty) Bytes

func (v OutputProperty) Bytes() []byte

Bytes writes a OutputProperty value to a byte slice.

type Provider

type Provider uint32

func NewProviderID added in v1.1.0

func NewProviderID(c *xgb.XConn) Provider

type ProviderChange

type ProviderChange struct {
	Timestamp xproto.Timestamp
	Window    xproto.Window
	Provider  Provider
}

func (ProviderChange) Bytes

func (v ProviderChange) Bytes() []byte

Bytes writes a ProviderChange value to a byte slice.

type ProviderProperty

type ProviderProperty struct {
	Window    xproto.Window
	Provider  Provider
	Atom      xproto.Atom
	Timestamp xproto.Timestamp
	State     byte
}

func (ProviderProperty) Bytes

func (v ProviderProperty) Bytes() []byte

Bytes writes a ProviderProperty value to a byte slice.

type QueryOutputPropertyReply

type QueryOutputPropertyReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Pending   bool
	Range     bool
	Immutable bool
	// padding: 21 bytes
	ValidValues []int32 // size: internal.Pad4((int(Length) * 4))
}

QueryOutputPropertyReply represents the data returned from a QueryOutputProperty request.

func QueryOutputProperty

func QueryOutputProperty(c *xgb.XConn, Output Output, Property xproto.Atom) (QueryOutputPropertyReply, error)

QueryOutputProperty sends a checked request.

func (*QueryOutputPropertyReply) Unmarshal added in v1.1.0

func (v *QueryOutputPropertyReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a QueryOutputPropertyReply value.

type QueryProviderPropertyReply

type QueryProviderPropertyReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Pending   bool
	Range     bool
	Immutable bool
	// padding: 21 bytes
	ValidValues []int32 // size: internal.Pad4((int(Length) * 4))
}

QueryProviderPropertyReply represents the data returned from a QueryProviderProperty request.

func QueryProviderProperty

func QueryProviderProperty(c *xgb.XConn, Provider Provider, Property xproto.Atom) (QueryProviderPropertyReply, error)

QueryProviderProperty sends a checked request.

func (*QueryProviderPropertyReply) Unmarshal added in v1.1.0

func (v *QueryProviderPropertyReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a QueryProviderPropertyReply value.

type QueryVersionReply

type QueryVersionReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	MajorVersion uint32
	MinorVersion uint32
}

QueryVersionReply represents the data returned from a QueryVersion request.

func QueryVersion

func QueryVersion(c *xgb.XConn, MajorVersion uint32, MinorVersion uint32) (QueryVersionReply, error)

QueryVersion sends a checked request.

func (*QueryVersionReply) Unmarshal added in v1.1.0

func (v *QueryVersionReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a QueryVersionReply value.

type RefreshRates

type RefreshRates struct {
	NRates uint16
	Rates  []uint16 // size: internal.Pad4((int(NRates) * 2))
}

func (RefreshRates) Bytes

func (v RefreshRates) Bytes() []byte

Bytes writes a RefreshRates value to a byte slice.

type ResourceChange

type ResourceChange struct {
	Timestamp xproto.Timestamp
	Window    xproto.Window
}

func (ResourceChange) Bytes

func (v ResourceChange) Bytes() []byte

Bytes writes a ResourceChange value to a byte slice.

type ScreenChangeNotifyEvent

type ScreenChangeNotifyEvent struct {
	Sequence        uint16
	Rotation        byte
	Timestamp       xproto.Timestamp
	ConfigTimestamp xproto.Timestamp
	Root            xproto.Window
	RequestWindow   xproto.Window
	SizeID          uint16
	SubpixelOrder   uint16
	Width           uint16
	Height          uint16
	Mwidth          uint16
	Mheight         uint16
}

func (*ScreenChangeNotifyEvent) Bytes

func (v *ScreenChangeNotifyEvent) Bytes() []byte

Bytes writes a ScreenChangeNotifyEvent value to a byte slice.

func (*ScreenChangeNotifyEvent) SeqID added in v1.1.0

func (v *ScreenChangeNotifyEvent) SeqID() uint16

SeqID returns the sequence id attached to the ScreenChangeNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.

type ScreenSize

type ScreenSize struct {
	Width   uint16
	Height  uint16
	Mwidth  uint16
	Mheight uint16
}

func (ScreenSize) Bytes

func (v ScreenSize) Bytes() []byte

Bytes writes a ScreenSize value to a byte slice.

type SetCrtcConfigReply

type SetCrtcConfigReply struct {
	Sequence  uint16 // sequence number of the request for this reply
	Length    uint32 // number of bytes in this reply
	Status    byte
	Timestamp xproto.Timestamp
}

SetCrtcConfigReply represents the data returned from a SetCrtcConfig request.

func SetCrtcConfig

func SetCrtcConfig(c *xgb.XConn, Crtc Crtc, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, X int16, Y int16, Mode Mode, Rotation uint16, Outputs []Output) (SetCrtcConfigReply, error)

SetCrtcConfig sends a checked request.

func (*SetCrtcConfigReply) Unmarshal added in v1.1.0

func (v *SetCrtcConfigReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a SetCrtcConfigReply value.

type SetPanningReply

type SetPanningReply struct {
	Sequence  uint16 // sequence number of the request for this reply
	Length    uint32 // number of bytes in this reply
	Status    byte
	Timestamp xproto.Timestamp
}

SetPanningReply represents the data returned from a SetPanning request.

func SetPanning

func SetPanning(c *xgb.XConn, Crtc Crtc, Timestamp xproto.Timestamp, Left uint16, Top uint16, Width uint16, Height uint16, TrackLeft uint16, TrackTop uint16, TrackWidth uint16, TrackHeight uint16, BorderLeft int16, BorderTop int16, BorderRight int16, BorderBottom int16) (SetPanningReply, error)

SetPanning sends a checked request.

func (*SetPanningReply) Unmarshal added in v1.1.0

func (v *SetPanningReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a SetPanningReply value.

type SetScreenConfigReply

type SetScreenConfigReply struct {
	Sequence        uint16 // sequence number of the request for this reply
	Length          uint32 // number of bytes in this reply
	Status          byte
	NewTimestamp    xproto.Timestamp
	ConfigTimestamp xproto.Timestamp
	Root            xproto.Window
	SubpixelOrder   uint16
}

SetScreenConfigReply represents the data returned from a SetScreenConfig request.

func SetScreenConfig

func SetScreenConfig(c *xgb.XConn, Window xproto.Window, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, SizeID uint16, Rotation uint16, Rate uint16) (SetScreenConfigReply, error)

SetScreenConfig sends a checked request.

func (*SetScreenConfigReply) Unmarshal added in v1.1.0

func (v *SetScreenConfigReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a SetScreenConfigReply value.

Jump to

Keyboard shortcuts

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