const ( ConnectionConnected = 0 ConnectionDisconnected = 1 ConnectionUnknown = 2 )
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 )
const ( NotifyCrtcChange = 0 NotifyOutputChange = 1 NotifyOutputProperty = 2 NotifyProviderChange = 3 NotifyProviderProperty = 4 NotifyResourceChange = 5 )
const ( NotifyMaskScreenChange = 1 NotifyMaskCrtcChange = 2 NotifyMaskOutputChange = 4 NotifyMaskOutputProperty = 8 NotifyMaskProviderChange = 16 NotifyMaskProviderProperty = 32 NotifyMaskResourceChange = 64 )
const ( ProviderCapabilitySourceOutput = 1 ProviderCapabilitySinkOutput = 2 ProviderCapabilitySourceOffload = 4 ProviderCapabilitySinkOffload = 8 )
const ( RotationRotate0 = 1 RotationRotate90 = 2 RotationRotate180 = 4 RotationRotate270 = 8 RotationReflectX = 16 RotationReflectY = 32 )
const ( SetConfigSuccess = 0 SetConfigInvalidConfigTime = 1 SetConfigInvalidTime = 2 SetConfigFailed = 3 )
const ( TransformUnit = 1 TransformScaleUp = 2 TransformScaleDown = 4 TransformProjective = 8 )
BadBadCrtc is the error number for a BadBadCrtc.
const BadBadCrtc = 1
BadBadMode is the error number for a BadBadMode.
const BadBadMode = 2
BadBadOutput is the error number for a BadBadOutput.
const BadBadOutput = 0
BadBadProvider is the error number for a BadBadProvider.
const BadBadProvider = 3
Notify is the event number for a NotifyEvent.
const Notify = 1
ScreenChangeNotify is the event number for a ScreenChangeNotifyEvent.
const ScreenChangeNotify = 0
func BadCrtcErrorNew(buf []byte) xgb.Error
BadCrtcErrorNew constructs a BadCrtcError value that implements xgb.Error from a byte slice.
func BadModeErrorNew(buf []byte) xgb.Error
BadModeErrorNew constructs a BadModeError value that implements xgb.Error from a byte slice.
func BadOutputErrorNew(buf []byte) xgb.Error
BadOutputErrorNew constructs a BadOutputError value that implements xgb.Error from a byte slice.
func BadProviderErrorNew(buf []byte) xgb.Error
BadProviderErrorNew constructs a BadProviderError value that implements xgb.Error from a byte slice.
func CrtcChangeListBytes(buf []byte, list []CrtcChange) int
CrtcChangeListBytes writes a list of CrtcChange values to a byte slice.
func CrtcChangeRead(buf []byte, v *CrtcChange) int
CrtcChangeRead reads a byte slice into a CrtcChange value.
func CrtcChangeReadList(buf []byte, dest []CrtcChange) int
CrtcChangeReadList reads a byte slice into a list of CrtcChange values.
func Init(c *xgb.Conn) error
Init must be called before using the RANDR extension.
func ModeInfoListBytes(buf []byte, list []ModeInfo) int
ModeInfoListBytes writes a list of ModeInfo values to a byte slice.
func ModeInfoRead(buf []byte, v *ModeInfo) int
ModeInfoRead reads a byte slice into a ModeInfo value.
func ModeInfoReadList(buf []byte, dest []ModeInfo) int
ModeInfoReadList reads a byte slice into a list of ModeInfo values.
func NotifyDataUnionListBytes(buf []byte, list []NotifyDataUnion) int
NotifyDataUnionListBytes writes a list of NotifyDataUnion values to a byte slice.
func NotifyDataUnionRead(buf []byte, v *NotifyDataUnion) int
NotifyDataUnionRead reads a byte slice into a NotifyDataUnion value.
func NotifyDataUnionReadList(buf []byte, dest []NotifyDataUnion) int
NotifyDataUnionReadList reads a byte slice into a list of NotifyDataUnion values.
func NotifyEventNew(buf []byte) xgb.Event
NotifyEventNew constructs a NotifyEvent value that implements xgb.Event from a byte slice.
func OutputChangeListBytes(buf []byte, list []OutputChange) int
OutputChangeListBytes writes a list of OutputChange values to a byte slice.
func OutputChangeRead(buf []byte, v *OutputChange) int
OutputChangeRead reads a byte slice into a OutputChange value.
func OutputChangeReadList(buf []byte, dest []OutputChange) int
OutputChangeReadList reads a byte slice into a list of OutputChange values.
func OutputPropertyListBytes(buf []byte, list []OutputProperty) int
OutputPropertyListBytes writes a list of OutputProperty values to a byte slice.
func OutputPropertyRead(buf []byte, v *OutputProperty) int
OutputPropertyRead reads a byte slice into a OutputProperty value.
func OutputPropertyReadList(buf []byte, dest []OutputProperty) int
OutputPropertyReadList reads a byte slice into a list of OutputProperty values.
func ProviderChangeListBytes(buf []byte, list []ProviderChange) int
ProviderChangeListBytes writes a list of ProviderChange values to a byte slice.
func ProviderChangeRead(buf []byte, v *ProviderChange) int
ProviderChangeRead reads a byte slice into a ProviderChange value.
func ProviderChangeReadList(buf []byte, dest []ProviderChange) int
ProviderChangeReadList reads a byte slice into a list of ProviderChange values.
func ProviderPropertyListBytes(buf []byte, list []ProviderProperty) int
ProviderPropertyListBytes writes a list of ProviderProperty values to a byte slice.
func ProviderPropertyRead(buf []byte, v *ProviderProperty) int
ProviderPropertyRead reads a byte slice into a ProviderProperty value.
func ProviderPropertyReadList(buf []byte, dest []ProviderProperty) int
ProviderPropertyReadList reads a byte slice into a list of ProviderProperty values.
func RefreshRatesListBytes(buf []byte, list []RefreshRates) int
RefreshRatesListBytes writes a list of RefreshRates values to a byte slice.
func RefreshRatesListSize(list []RefreshRates) int
RefreshRatesListSize computes the size (bytes) of a list of RefreshRates values.
func RefreshRatesRead(buf []byte, v *RefreshRates) int
RefreshRatesRead reads a byte slice into a RefreshRates value.
func RefreshRatesReadList(buf []byte, dest []RefreshRates) int
RefreshRatesReadList reads a byte slice into a list of RefreshRates values.
func ResourceChangeListBytes(buf []byte, list []ResourceChange) int
ResourceChangeListBytes writes a list of ResourceChange values to a byte slice.
func ResourceChangeRead(buf []byte, v *ResourceChange) int
ResourceChangeRead reads a byte slice into a ResourceChange value.
func ResourceChangeReadList(buf []byte, dest []ResourceChange) int
ResourceChangeReadList reads a byte slice into a list of ResourceChange values.
func ScreenChangeNotifyEventNew(buf []byte) xgb.Event
ScreenChangeNotifyEventNew constructs a ScreenChangeNotifyEvent value that implements xgb.Event from a byte slice.
func ScreenSizeListBytes(buf []byte, list []ScreenSize) int
ScreenSizeListBytes writes a list of ScreenSize values to a byte slice.
func ScreenSizeRead(buf []byte, v *ScreenSize) int
ScreenSizeRead reads a byte slice into a ScreenSize value.
func ScreenSizeReadList(buf []byte, dest []ScreenSize) int
ScreenSizeReadList reads a byte slice into a list of ScreenSize values.
AddOutputModeCookie is a cookie used only for AddOutputMode requests.
type AddOutputModeCookie struct { *xgb.Cookie }
func AddOutputMode(c *xgb.Conn, Output Output, Mode Mode) AddOutputModeCookie
AddOutputMode sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func AddOutputModeChecked(c *xgb.Conn, Output Output, Mode Mode) AddOutputModeCookie
AddOutputModeChecked sends a checked request. If an error occurs, it can be retrieved using AddOutputModeCookie.Check()
func (cook AddOutputModeCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type BadCrtcError struct { Sequence uint16 NiceName string }
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 (err BadCrtcError) Error() string
func (err BadCrtcError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadBadCrtc error. This is mostly used internally.
type BadModeError struct { Sequence uint16 NiceName string }
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 (err BadModeError) Error() string
func (err BadModeError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadBadMode error. This is mostly used internally.
type BadOutputError struct { Sequence uint16 NiceName string }
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 (err BadOutputError) Error() string
func (err BadOutputError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadBadOutput error. This is mostly used internally.
type BadProviderError struct { Sequence uint16 NiceName string }
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 (err BadProviderError) Error() string
func (err BadProviderError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadBadProvider error. This is mostly used internally.
ChangeOutputPropertyCookie is a cookie used only for ChangeOutputProperty requests.
type ChangeOutputPropertyCookie struct { *xgb.Cookie }
func ChangeOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumUnits uint32, Data []byte) ChangeOutputPropertyCookie
ChangeOutputProperty sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ChangeOutputPropertyChecked(c *xgb.Conn, Output Output, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumUnits uint32, Data []byte) ChangeOutputPropertyCookie
ChangeOutputPropertyChecked sends a checked request. If an error occurs, it can be retrieved using ChangeOutputPropertyCookie.Check()
func (cook ChangeOutputPropertyCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
ChangeProviderPropertyCookie is a cookie used only for ChangeProviderProperty requests.
type ChangeProviderPropertyCookie struct { *xgb.Cookie }
func ChangeProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumItems uint32, Data []byte) ChangeProviderPropertyCookie
ChangeProviderProperty sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ChangeProviderPropertyChecked(c *xgb.Conn, Provider Provider, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumItems uint32, Data []byte) ChangeProviderPropertyCookie
ChangeProviderPropertyChecked sends a checked request. If an error occurs, it can be retrieved using ChangeProviderPropertyCookie.Check()
func (cook ChangeProviderPropertyCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
ConfigureOutputPropertyCookie is a cookie used only for ConfigureOutputProperty requests.
type ConfigureOutputPropertyCookie struct { *xgb.Cookie }
func ConfigureOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom, Pending bool, Range bool, Values []int32) ConfigureOutputPropertyCookie
ConfigureOutputProperty sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ConfigureOutputPropertyChecked(c *xgb.Conn, Output Output, Property xproto.Atom, Pending bool, Range bool, Values []int32) ConfigureOutputPropertyCookie
ConfigureOutputPropertyChecked sends a checked request. If an error occurs, it can be retrieved using ConfigureOutputPropertyCookie.Check()
func (cook ConfigureOutputPropertyCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
ConfigureProviderPropertyCookie is a cookie used only for ConfigureProviderProperty requests.
type ConfigureProviderPropertyCookie struct { *xgb.Cookie }
func ConfigureProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom, Pending bool, Range bool, Values []int32) ConfigureProviderPropertyCookie
ConfigureProviderProperty sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ConfigureProviderPropertyChecked(c *xgb.Conn, Provider Provider, Property xproto.Atom, Pending bool, Range bool, Values []int32) ConfigureProviderPropertyCookie
ConfigureProviderPropertyChecked sends a checked request. If an error occurs, it can be retrieved using ConfigureProviderPropertyCookie.Check()
func (cook ConfigureProviderPropertyCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
CreateModeCookie is a cookie used only for CreateMode requests.
type CreateModeCookie struct { *xgb.Cookie }
func CreateMode(c *xgb.Conn, Window xproto.Window, ModeInfo ModeInfo, Name string) CreateModeCookie
CreateMode sends a checked request. If an error occurs, it will be returned with the reply by calling CreateModeCookie.Reply()
func CreateModeUnchecked(c *xgb.Conn, Window xproto.Window, ModeInfo ModeInfo, Name string) CreateModeCookie
CreateModeUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook CreateModeCookie) Reply() (*CreateModeReply, error)
Reply blocks and returns the reply data for a CreateMode request.
CreateModeReply represents the data returned from a CreateMode request.
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 }
type Crtc uint32
func NewCrtcId(c *xgb.Conn) (Crtc, error)
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 (v CrtcChange) Bytes() []byte
Bytes writes a CrtcChange value to a byte slice.
DeleteOutputModeCookie is a cookie used only for DeleteOutputMode requests.
type DeleteOutputModeCookie struct { *xgb.Cookie }
func DeleteOutputMode(c *xgb.Conn, Output Output, Mode Mode) DeleteOutputModeCookie
DeleteOutputMode sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DeleteOutputModeChecked(c *xgb.Conn, Output Output, Mode Mode) DeleteOutputModeCookie
DeleteOutputModeChecked sends a checked request. If an error occurs, it can be retrieved using DeleteOutputModeCookie.Check()
func (cook DeleteOutputModeCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
DeleteOutputPropertyCookie is a cookie used only for DeleteOutputProperty requests.
type DeleteOutputPropertyCookie struct { *xgb.Cookie }
func DeleteOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom) DeleteOutputPropertyCookie
DeleteOutputProperty sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DeleteOutputPropertyChecked(c *xgb.Conn, Output Output, Property xproto.Atom) DeleteOutputPropertyCookie
DeleteOutputPropertyChecked sends a checked request. If an error occurs, it can be retrieved using DeleteOutputPropertyCookie.Check()
func (cook DeleteOutputPropertyCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
DeleteProviderPropertyCookie is a cookie used only for DeleteProviderProperty requests.
type DeleteProviderPropertyCookie struct { *xgb.Cookie }
func DeleteProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom) DeleteProviderPropertyCookie
DeleteProviderProperty sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DeleteProviderPropertyChecked(c *xgb.Conn, Provider Provider, Property xproto.Atom) DeleteProviderPropertyCookie
DeleteProviderPropertyChecked sends a checked request. If an error occurs, it can be retrieved using DeleteProviderPropertyCookie.Check()
func (cook DeleteProviderPropertyCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
DestroyModeCookie is a cookie used only for DestroyMode requests.
type DestroyModeCookie struct { *xgb.Cookie }
func DestroyMode(c *xgb.Conn, Mode Mode) DestroyModeCookie
DestroyMode sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DestroyModeChecked(c *xgb.Conn, Mode Mode) DestroyModeCookie
DestroyModeChecked sends a checked request. If an error occurs, it can be retrieved using DestroyModeCookie.Check()
func (cook DestroyModeCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
GetCrtcGammaCookie is a cookie used only for GetCrtcGamma requests.
type GetCrtcGammaCookie struct { *xgb.Cookie }
func GetCrtcGamma(c *xgb.Conn, Crtc Crtc) GetCrtcGammaCookie
GetCrtcGamma sends a checked request. If an error occurs, it will be returned with the reply by calling GetCrtcGammaCookie.Reply()
func GetCrtcGammaUnchecked(c *xgb.Conn, Crtc Crtc) GetCrtcGammaCookie
GetCrtcGammaUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetCrtcGammaCookie) Reply() (*GetCrtcGammaReply, error)
Reply blocks and returns the reply data for a GetCrtcGamma request.
GetCrtcGammaReply represents the data returned from a GetCrtcGamma request.
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: xgb.Pad((int(Size) * 2)) // alignment gap to multiple of 2 Green []uint16 // size: xgb.Pad((int(Size) * 2)) // alignment gap to multiple of 2 Blue []uint16 // size: xgb.Pad((int(Size) * 2)) }
GetCrtcGammaSizeCookie is a cookie used only for GetCrtcGammaSize requests.
type GetCrtcGammaSizeCookie struct { *xgb.Cookie }
func GetCrtcGammaSize(c *xgb.Conn, Crtc Crtc) GetCrtcGammaSizeCookie
GetCrtcGammaSize sends a checked request. If an error occurs, it will be returned with the reply by calling GetCrtcGammaSizeCookie.Reply()
func GetCrtcGammaSizeUnchecked(c *xgb.Conn, Crtc Crtc) GetCrtcGammaSizeCookie
GetCrtcGammaSizeUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetCrtcGammaSizeCookie) Reply() (*GetCrtcGammaSizeReply, error)
Reply blocks and returns the reply data for a GetCrtcGammaSize request.
GetCrtcGammaSizeReply represents the data returned from a GetCrtcGammaSize request.
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 }
GetCrtcInfoCookie is a cookie used only for GetCrtcInfo requests.
type GetCrtcInfoCookie struct { *xgb.Cookie }
func GetCrtcInfo(c *xgb.Conn, Crtc Crtc, ConfigTimestamp xproto.Timestamp) GetCrtcInfoCookie
GetCrtcInfo sends a checked request. If an error occurs, it will be returned with the reply by calling GetCrtcInfoCookie.Reply()
func GetCrtcInfoUnchecked(c *xgb.Conn, Crtc Crtc, ConfigTimestamp xproto.Timestamp) GetCrtcInfoCookie
GetCrtcInfoUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetCrtcInfoCookie) Reply() (*GetCrtcInfoReply, error)
Reply blocks and returns the reply data for a GetCrtcInfo request.
GetCrtcInfoReply represents the data returned from a GetCrtcInfo request.
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: xgb.Pad((int(NumOutputs) * 4)) // alignment gap to multiple of 4 Possible []Output // size: xgb.Pad((int(NumPossibleOutputs) * 4)) }
GetCrtcTransformCookie is a cookie used only for GetCrtcTransform requests.
type GetCrtcTransformCookie struct { *xgb.Cookie }
func GetCrtcTransform(c *xgb.Conn, Crtc Crtc) GetCrtcTransformCookie
GetCrtcTransform sends a checked request. If an error occurs, it will be returned with the reply by calling GetCrtcTransformCookie.Reply()
func GetCrtcTransformUnchecked(c *xgb.Conn, Crtc Crtc) GetCrtcTransformCookie
GetCrtcTransformUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetCrtcTransformCookie) Reply() (*GetCrtcTransformReply, error)
Reply blocks and returns the reply data for a GetCrtcTransform request.
GetCrtcTransformReply represents the data returned from a GetCrtcTransform request.
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: xgb.Pad((int(PendingLen) * 1)) // alignment gap to multiple of 4 PendingParams []render.Fixed // size: xgb.Pad((int(PendingNparams) * 4)) CurrentFilterName string // size: xgb.Pad((int(CurrentLen) * 1)) // alignment gap to multiple of 4 CurrentParams []render.Fixed // size: xgb.Pad((int(CurrentNparams) * 4)) }
GetOutputInfoCookie is a cookie used only for GetOutputInfo requests.
type GetOutputInfoCookie struct { *xgb.Cookie }
func GetOutputInfo(c *xgb.Conn, Output Output, ConfigTimestamp xproto.Timestamp) GetOutputInfoCookie
GetOutputInfo sends a checked request. If an error occurs, it will be returned with the reply by calling GetOutputInfoCookie.Reply()
func GetOutputInfoUnchecked(c *xgb.Conn, Output Output, ConfigTimestamp xproto.Timestamp) GetOutputInfoCookie
GetOutputInfoUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetOutputInfoCookie) Reply() (*GetOutputInfoReply, error)
Reply blocks and returns the reply data for a GetOutputInfo request.
GetOutputInfoReply represents the data returned from a GetOutputInfo request.
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: xgb.Pad((int(NumCrtcs) * 4)) // alignment gap to multiple of 4 Modes []Mode // size: xgb.Pad((int(NumModes) * 4)) // alignment gap to multiple of 4 Clones []Output // size: xgb.Pad((int(NumClones) * 4)) Name []byte // size: xgb.Pad((int(NameLen) * 1)) }
GetOutputPrimaryCookie is a cookie used only for GetOutputPrimary requests.
type GetOutputPrimaryCookie struct { *xgb.Cookie }
func GetOutputPrimary(c *xgb.Conn, Window xproto.Window) GetOutputPrimaryCookie
GetOutputPrimary sends a checked request. If an error occurs, it will be returned with the reply by calling GetOutputPrimaryCookie.Reply()
func GetOutputPrimaryUnchecked(c *xgb.Conn, Window xproto.Window) GetOutputPrimaryCookie
GetOutputPrimaryUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetOutputPrimaryCookie) Reply() (*GetOutputPrimaryReply, error)
Reply blocks and returns the reply data for a GetOutputPrimary request.
GetOutputPrimaryReply represents the data returned from a GetOutputPrimary request.
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 }
GetOutputPropertyCookie is a cookie used only for GetOutputProperty requests.
type GetOutputPropertyCookie struct { *xgb.Cookie }
func GetOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) GetOutputPropertyCookie
GetOutputProperty sends a checked request. If an error occurs, it will be returned with the reply by calling GetOutputPropertyCookie.Reply()
func GetOutputPropertyUnchecked(c *xgb.Conn, Output Output, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) GetOutputPropertyCookie
GetOutputPropertyUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetOutputPropertyCookie) Reply() (*GetOutputPropertyReply, error)
Reply blocks and returns the reply data for a GetOutputProperty request.
GetOutputPropertyReply represents the data returned from a GetOutputProperty request.
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: xgb.Pad(((int(NumItems) * (int(Format) / 8)) * 1)) }
GetPanningCookie is a cookie used only for GetPanning requests.
type GetPanningCookie struct { *xgb.Cookie }
func GetPanning(c *xgb.Conn, Crtc Crtc) GetPanningCookie
GetPanning sends a checked request. If an error occurs, it will be returned with the reply by calling GetPanningCookie.Reply()
func GetPanningUnchecked(c *xgb.Conn, Crtc Crtc) GetPanningCookie
GetPanningUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetPanningCookie) Reply() (*GetPanningReply, error)
Reply blocks and returns the reply data for a GetPanning request.
GetPanningReply represents the data returned from a GetPanning request.
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 }
GetProviderInfoCookie is a cookie used only for GetProviderInfo requests.
type GetProviderInfoCookie struct { *xgb.Cookie }
func GetProviderInfo(c *xgb.Conn, Provider Provider, ConfigTimestamp xproto.Timestamp) GetProviderInfoCookie
GetProviderInfo sends a checked request. If an error occurs, it will be returned with the reply by calling GetProviderInfoCookie.Reply()
func GetProviderInfoUnchecked(c *xgb.Conn, Provider Provider, ConfigTimestamp xproto.Timestamp) GetProviderInfoCookie
GetProviderInfoUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetProviderInfoCookie) Reply() (*GetProviderInfoReply, error)
Reply blocks and returns the reply data for a GetProviderInfo request.
GetProviderInfoReply represents the data returned from a GetProviderInfo request.
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: xgb.Pad((int(NumCrtcs) * 4)) // alignment gap to multiple of 4 Outputs []Output // size: xgb.Pad((int(NumOutputs) * 4)) // alignment gap to multiple of 4 AssociatedProviders []Provider // size: xgb.Pad((int(NumAssociatedProviders) * 4)) // alignment gap to multiple of 4 AssociatedCapability []uint32 // size: xgb.Pad((int(NumAssociatedProviders) * 4)) Name string // size: xgb.Pad((int(NameLen) * 1)) }
GetProviderPropertyCookie is a cookie used only for GetProviderProperty requests.
type GetProviderPropertyCookie struct { *xgb.Cookie }
func GetProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) GetProviderPropertyCookie
GetProviderProperty sends a checked request. If an error occurs, it will be returned with the reply by calling GetProviderPropertyCookie.Reply()
func GetProviderPropertyUnchecked(c *xgb.Conn, Provider Provider, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) GetProviderPropertyCookie
GetProviderPropertyUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetProviderPropertyCookie) Reply() (*GetProviderPropertyReply, error)
Reply blocks and returns the reply data for a GetProviderProperty request.
GetProviderPropertyReply represents the data returned from a GetProviderProperty request.
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: xgb.Pad(((int(NumItems) * (int(Format) / 8)) * 1)) }
GetProvidersCookie is a cookie used only for GetProviders requests.
type GetProvidersCookie struct { *xgb.Cookie }
func GetProviders(c *xgb.Conn, Window xproto.Window) GetProvidersCookie
GetProviders sends a checked request. If an error occurs, it will be returned with the reply by calling GetProvidersCookie.Reply()
func GetProvidersUnchecked(c *xgb.Conn, Window xproto.Window) GetProvidersCookie
GetProvidersUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetProvidersCookie) Reply() (*GetProvidersReply, error)
Reply blocks and returns the reply data for a GetProviders request.
GetProvidersReply represents the data returned from a GetProviders request.
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: xgb.Pad((int(NumProviders) * 4)) }
GetScreenInfoCookie is a cookie used only for GetScreenInfo requests.
type GetScreenInfoCookie struct { *xgb.Cookie }
func GetScreenInfo(c *xgb.Conn, Window xproto.Window) GetScreenInfoCookie
GetScreenInfo sends a checked request. If an error occurs, it will be returned with the reply by calling GetScreenInfoCookie.Reply()
func GetScreenInfoUnchecked(c *xgb.Conn, Window xproto.Window) GetScreenInfoCookie
GetScreenInfoUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetScreenInfoCookie) Reply() (*GetScreenInfoReply, error)
Reply blocks and returns the reply data for a GetScreenInfo request.
GetScreenInfoReply represents the data returned from a GetScreenInfo request.
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: xgb.Pad((int(NSizes) * 8)) // alignment gap to multiple of 2 Rates []RefreshRates // size: RefreshRatesListSize(Rates) }
GetScreenResourcesCookie is a cookie used only for GetScreenResources requests.
type GetScreenResourcesCookie struct { *xgb.Cookie }
func GetScreenResources(c *xgb.Conn, Window xproto.Window) GetScreenResourcesCookie
GetScreenResources sends a checked request. If an error occurs, it will be returned with the reply by calling GetScreenResourcesCookie.Reply()
func GetScreenResourcesUnchecked(c *xgb.Conn, Window xproto.Window) GetScreenResourcesCookie
GetScreenResourcesUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetScreenResourcesCookie) Reply() (*GetScreenResourcesReply, error)
Reply blocks and returns the reply data for a GetScreenResources request.
GetScreenResourcesCurrentCookie is a cookie used only for GetScreenResourcesCurrent requests.
type GetScreenResourcesCurrentCookie struct { *xgb.Cookie }
func GetScreenResourcesCurrent(c *xgb.Conn, Window xproto.Window) GetScreenResourcesCurrentCookie
GetScreenResourcesCurrent sends a checked request. If an error occurs, it will be returned with the reply by calling GetScreenResourcesCurrentCookie.Reply()
func GetScreenResourcesCurrentUnchecked(c *xgb.Conn, Window xproto.Window) GetScreenResourcesCurrentCookie
GetScreenResourcesCurrentUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetScreenResourcesCurrentCookie) Reply() (*GetScreenResourcesCurrentReply, error)
Reply blocks and returns the reply data for a GetScreenResourcesCurrent request.
GetScreenResourcesCurrentReply represents the data returned from a GetScreenResourcesCurrent request.
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: xgb.Pad((int(NumCrtcs) * 4)) // alignment gap to multiple of 4 Outputs []Output // size: xgb.Pad((int(NumOutputs) * 4)) // alignment gap to multiple of 4 Modes []ModeInfo // size: xgb.Pad((int(NumModes) * 32)) Names []byte // size: xgb.Pad((int(NamesLen) * 1)) }
GetScreenResourcesReply represents the data returned from a GetScreenResources request.
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: xgb.Pad((int(NumCrtcs) * 4)) // alignment gap to multiple of 4 Outputs []Output // size: xgb.Pad((int(NumOutputs) * 4)) // alignment gap to multiple of 4 Modes []ModeInfo // size: xgb.Pad((int(NumModes) * 32)) Names []byte // size: xgb.Pad((int(NamesLen) * 1)) }
GetScreenSizeRangeCookie is a cookie used only for GetScreenSizeRange requests.
type GetScreenSizeRangeCookie struct { *xgb.Cookie }
func GetScreenSizeRange(c *xgb.Conn, Window xproto.Window) GetScreenSizeRangeCookie
GetScreenSizeRange sends a checked request. If an error occurs, it will be returned with the reply by calling GetScreenSizeRangeCookie.Reply()
func GetScreenSizeRangeUnchecked(c *xgb.Conn, Window xproto.Window) GetScreenSizeRangeCookie
GetScreenSizeRangeUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetScreenSizeRangeCookie) Reply() (*GetScreenSizeRangeReply, error)
Reply blocks and returns the reply data for a GetScreenSizeRange request.
GetScreenSizeRangeReply represents the data returned from a GetScreenSizeRange request.
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 }
ListOutputPropertiesCookie is a cookie used only for ListOutputProperties requests.
type ListOutputPropertiesCookie struct { *xgb.Cookie }
func ListOutputProperties(c *xgb.Conn, Output Output) ListOutputPropertiesCookie
ListOutputProperties sends a checked request. If an error occurs, it will be returned with the reply by calling ListOutputPropertiesCookie.Reply()
func ListOutputPropertiesUnchecked(c *xgb.Conn, Output Output) ListOutputPropertiesCookie
ListOutputPropertiesUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook ListOutputPropertiesCookie) Reply() (*ListOutputPropertiesReply, error)
Reply blocks and returns the reply data for a ListOutputProperties request.
ListOutputPropertiesReply represents the data returned from a ListOutputProperties request.
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: xgb.Pad((int(NumAtoms) * 4)) }
ListProviderPropertiesCookie is a cookie used only for ListProviderProperties requests.
type ListProviderPropertiesCookie struct { *xgb.Cookie }
func ListProviderProperties(c *xgb.Conn, Provider Provider) ListProviderPropertiesCookie
ListProviderProperties sends a checked request. If an error occurs, it will be returned with the reply by calling ListProviderPropertiesCookie.Reply()
func ListProviderPropertiesUnchecked(c *xgb.Conn, Provider Provider) ListProviderPropertiesCookie
ListProviderPropertiesUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook ListProviderPropertiesCookie) Reply() (*ListProviderPropertiesReply, error)
Reply blocks and returns the reply data for a ListProviderProperties request.
ListProviderPropertiesReply represents the data returned from a ListProviderProperties request.
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: xgb.Pad((int(NumAtoms) * 4)) }
type Mode uint32
func NewModeId(c *xgb.Conn) (Mode, error)
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 (v ModeInfo) Bytes() []byte
Bytes writes a ModeInfo value to a byte slice.
NotifyDataUnion is a represention 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
type NotifyDataUnion struct { Cc CrtcChange Oc OutputChange Op OutputProperty Pc ProviderChange Pp ProviderProperty Rc ResourceChange }
func NotifyDataUnionCcNew(Cc CrtcChange) NotifyDataUnion
NotifyDataUnionCcNew constructs a new NotifyDataUnion union type with the Cc field.
func NotifyDataUnionOcNew(Oc OutputChange) NotifyDataUnion
NotifyDataUnionOcNew constructs a new NotifyDataUnion union type with the Oc field.
func NotifyDataUnionOpNew(Op OutputProperty) NotifyDataUnion
NotifyDataUnionOpNew constructs a new NotifyDataUnion union type with the Op field.
func NotifyDataUnionPcNew(Pc ProviderChange) NotifyDataUnion
NotifyDataUnionPcNew constructs a new NotifyDataUnion union type with the Pc field.
func NotifyDataUnionPpNew(Pp ProviderProperty) NotifyDataUnion
NotifyDataUnionPpNew constructs a new NotifyDataUnion union type with the Pp field.
func NotifyDataUnionRcNew(Rc ResourceChange) NotifyDataUnion
NotifyDataUnionRcNew constructs a new NotifyDataUnion union type with the Rc field.
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 struct { Sequence uint16 SubCode byte U NotifyDataUnion }
func (v NotifyEvent) Bytes() []byte
Bytes writes a NotifyEvent value to a byte slice.
func (v NotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the Notify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v NotifyEvent) String() string
String is a rudimentary string representation of NotifyEvent.
type Output uint32
func NewOutputId(c *xgb.Conn) (Output, error)
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 (v OutputChange) Bytes() []byte
Bytes writes a OutputChange value to a byte slice.
type OutputProperty struct { Window xproto.Window Output Output Atom xproto.Atom Timestamp xproto.Timestamp Status byte }
func (v OutputProperty) Bytes() []byte
Bytes writes a OutputProperty value to a byte slice.
type Provider uint32
func NewProviderId(c *xgb.Conn) (Provider, error)
type ProviderChange struct { Timestamp xproto.Timestamp Window xproto.Window Provider Provider }
func (v ProviderChange) Bytes() []byte
Bytes writes a ProviderChange value to a byte slice.
type ProviderProperty struct { Window xproto.Window Provider Provider Atom xproto.Atom Timestamp xproto.Timestamp State byte }
func (v ProviderProperty) Bytes() []byte
Bytes writes a ProviderProperty value to a byte slice.
QueryOutputPropertyCookie is a cookie used only for QueryOutputProperty requests.
type QueryOutputPropertyCookie struct { *xgb.Cookie }
func QueryOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom) QueryOutputPropertyCookie
QueryOutputProperty sends a checked request. If an error occurs, it will be returned with the reply by calling QueryOutputPropertyCookie.Reply()
func QueryOutputPropertyUnchecked(c *xgb.Conn, Output Output, Property xproto.Atom) QueryOutputPropertyCookie
QueryOutputPropertyUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook QueryOutputPropertyCookie) Reply() (*QueryOutputPropertyReply, error)
Reply blocks and returns the reply data for a QueryOutputProperty request.
QueryOutputPropertyReply represents the data returned from a QueryOutputProperty request.
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: xgb.Pad((int(Length) * 4)) }
QueryProviderPropertyCookie is a cookie used only for QueryProviderProperty requests.
type QueryProviderPropertyCookie struct { *xgb.Cookie }
func QueryProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom) QueryProviderPropertyCookie
QueryProviderProperty sends a checked request. If an error occurs, it will be returned with the reply by calling QueryProviderPropertyCookie.Reply()
func QueryProviderPropertyUnchecked(c *xgb.Conn, Provider Provider, Property xproto.Atom) QueryProviderPropertyCookie
QueryProviderPropertyUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook QueryProviderPropertyCookie) Reply() (*QueryProviderPropertyReply, error)
Reply blocks and returns the reply data for a QueryProviderProperty request.
QueryProviderPropertyReply represents the data returned from a QueryProviderProperty request.
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: xgb.Pad((int(Length) * 4)) }
QueryVersionCookie is a cookie used only for QueryVersion requests.
type QueryVersionCookie struct { *xgb.Cookie }
func QueryVersion(c *xgb.Conn, MajorVersion uint32, MinorVersion uint32) QueryVersionCookie
QueryVersion sends a checked request. If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
func QueryVersionUnchecked(c *xgb.Conn, MajorVersion uint32, MinorVersion uint32) QueryVersionCookie
QueryVersionUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook QueryVersionCookie) Reply() (*QueryVersionReply, error)
Reply blocks and returns the reply data for a QueryVersion request.
QueryVersionReply represents the data returned from a QueryVersion request.
type QueryVersionReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes MajorVersion uint32 MinorVersion uint32 }
type RefreshRates struct { NRates uint16 Rates []uint16 // size: xgb.Pad((int(NRates) * 2)) }
func (v RefreshRates) Bytes() []byte
Bytes writes a RefreshRates value to a byte slice.
type ResourceChange struct { Timestamp xproto.Timestamp Window xproto.Window }
func (v ResourceChange) Bytes() []byte
Bytes writes a ResourceChange value to a byte slice.
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 (v ScreenChangeNotifyEvent) Bytes() []byte
Bytes writes a ScreenChangeNotifyEvent value to a byte slice.
func (v ScreenChangeNotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the ScreenChangeNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v ScreenChangeNotifyEvent) String() string
String is a rudimentary string representation of ScreenChangeNotifyEvent.
type ScreenSize struct { Width uint16 Height uint16 Mwidth uint16 Mheight uint16 }
func (v ScreenSize) Bytes() []byte
Bytes writes a ScreenSize value to a byte slice.
SelectInputCookie is a cookie used only for SelectInput requests.
type SelectInputCookie struct { *xgb.Cookie }
func SelectInput(c *xgb.Conn, Window xproto.Window, Enable uint16) SelectInputCookie
SelectInput sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SelectInputChecked(c *xgb.Conn, Window xproto.Window, Enable uint16) SelectInputCookie
SelectInputChecked sends a checked request. If an error occurs, it can be retrieved using SelectInputCookie.Check()
func (cook SelectInputCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
SetCrtcConfigCookie is a cookie used only for SetCrtcConfig requests.
type SetCrtcConfigCookie struct { *xgb.Cookie }
func SetCrtcConfig(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, X int16, Y int16, Mode Mode, Rotation uint16, Outputs []Output) SetCrtcConfigCookie
SetCrtcConfig sends a checked request. If an error occurs, it will be returned with the reply by calling SetCrtcConfigCookie.Reply()
func SetCrtcConfigUnchecked(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, X int16, Y int16, Mode Mode, Rotation uint16, Outputs []Output) SetCrtcConfigCookie
SetCrtcConfigUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook SetCrtcConfigCookie) Reply() (*SetCrtcConfigReply, error)
Reply blocks and returns the reply data for a SetCrtcConfig request.
SetCrtcConfigReply represents the data returned from a SetCrtcConfig request.
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 }
SetCrtcGammaCookie is a cookie used only for SetCrtcGamma requests.
type SetCrtcGammaCookie struct { *xgb.Cookie }
func SetCrtcGamma(c *xgb.Conn, Crtc Crtc, Size uint16, Red []uint16, Green []uint16, Blue []uint16) SetCrtcGammaCookie
SetCrtcGamma sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetCrtcGammaChecked(c *xgb.Conn, Crtc Crtc, Size uint16, Red []uint16, Green []uint16, Blue []uint16) SetCrtcGammaCookie
SetCrtcGammaChecked sends a checked request. If an error occurs, it can be retrieved using SetCrtcGammaCookie.Check()
func (cook SetCrtcGammaCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
SetCrtcTransformCookie is a cookie used only for SetCrtcTransform requests.
type SetCrtcTransformCookie struct { *xgb.Cookie }
func SetCrtcTransform(c *xgb.Conn, Crtc Crtc, Transform render.Transform, FilterLen uint16, FilterName string, FilterParams []render.Fixed) SetCrtcTransformCookie
SetCrtcTransform sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetCrtcTransformChecked(c *xgb.Conn, Crtc Crtc, Transform render.Transform, FilterLen uint16, FilterName string, FilterParams []render.Fixed) SetCrtcTransformCookie
SetCrtcTransformChecked sends a checked request. If an error occurs, it can be retrieved using SetCrtcTransformCookie.Check()
func (cook SetCrtcTransformCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
SetOutputPrimaryCookie is a cookie used only for SetOutputPrimary requests.
type SetOutputPrimaryCookie struct { *xgb.Cookie }
func SetOutputPrimary(c *xgb.Conn, Window xproto.Window, Output Output) SetOutputPrimaryCookie
SetOutputPrimary sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetOutputPrimaryChecked(c *xgb.Conn, Window xproto.Window, Output Output) SetOutputPrimaryCookie
SetOutputPrimaryChecked sends a checked request. If an error occurs, it can be retrieved using SetOutputPrimaryCookie.Check()
func (cook SetOutputPrimaryCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
SetPanningCookie is a cookie used only for SetPanning requests.
type SetPanningCookie struct { *xgb.Cookie }
func SetPanning(c *xgb.Conn, 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) SetPanningCookie
SetPanning sends a checked request. If an error occurs, it will be returned with the reply by calling SetPanningCookie.Reply()
func SetPanningUnchecked(c *xgb.Conn, 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) SetPanningCookie
SetPanningUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook SetPanningCookie) Reply() (*SetPanningReply, error)
Reply blocks and returns the reply data for a SetPanning request.
SetPanningReply represents the data returned from a SetPanning request.
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 }
SetProviderOffloadSinkCookie is a cookie used only for SetProviderOffloadSink requests.
type SetProviderOffloadSinkCookie struct { *xgb.Cookie }
func SetProviderOffloadSink(c *xgb.Conn, Provider Provider, SinkProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOffloadSinkCookie
SetProviderOffloadSink sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetProviderOffloadSinkChecked(c *xgb.Conn, Provider Provider, SinkProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOffloadSinkCookie
SetProviderOffloadSinkChecked sends a checked request. If an error occurs, it can be retrieved using SetProviderOffloadSinkCookie.Check()
func (cook SetProviderOffloadSinkCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
SetProviderOutputSourceCookie is a cookie used only for SetProviderOutputSource requests.
type SetProviderOutputSourceCookie struct { *xgb.Cookie }
func SetProviderOutputSource(c *xgb.Conn, Provider Provider, SourceProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOutputSourceCookie
SetProviderOutputSource sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetProviderOutputSourceChecked(c *xgb.Conn, Provider Provider, SourceProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOutputSourceCookie
SetProviderOutputSourceChecked sends a checked request. If an error occurs, it can be retrieved using SetProviderOutputSourceCookie.Check()
func (cook SetProviderOutputSourceCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
SetScreenConfigCookie is a cookie used only for SetScreenConfig requests.
type SetScreenConfigCookie struct { *xgb.Cookie }
func SetScreenConfig(c *xgb.Conn, Window xproto.Window, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, SizeID uint16, Rotation uint16, Rate uint16) SetScreenConfigCookie
SetScreenConfig sends a checked request. If an error occurs, it will be returned with the reply by calling SetScreenConfigCookie.Reply()
func SetScreenConfigUnchecked(c *xgb.Conn, Window xproto.Window, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, SizeID uint16, Rotation uint16, Rate uint16) SetScreenConfigCookie
SetScreenConfigUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook SetScreenConfigCookie) Reply() (*SetScreenConfigReply, error)
Reply blocks and returns the reply data for a SetScreenConfig request.
SetScreenConfigReply represents the data returned from a SetScreenConfig request.
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 }
SetScreenSizeCookie is a cookie used only for SetScreenSize requests.
type SetScreenSizeCookie struct { *xgb.Cookie }
func SetScreenSize(c *xgb.Conn, Window xproto.Window, Width uint16, Height uint16, MmWidth uint32, MmHeight uint32) SetScreenSizeCookie
SetScreenSize sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetScreenSizeChecked(c *xgb.Conn, Window xproto.Window, Width uint16, Height uint16, MmWidth uint32, MmHeight uint32) SetScreenSizeCookie
SetScreenSizeChecked sends a checked request. If an error occurs, it can be retrieved using SetScreenSizeCookie.Check()
func (cook SetScreenSizeCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.