Documentation ¶
Overview ¶
Package randr is the X client API for the RANDR extension.
Index ¶
- Constants
- func BadCrtcErrorNew(buf []byte) xgb.Error
- func BadModeErrorNew(buf []byte) xgb.Error
- func BadOutputErrorNew(buf []byte) xgb.Error
- func BadProviderErrorNew(buf []byte) xgb.Error
- func CrtcChangeListBytes(buf []byte, list []CrtcChange) int
- func CrtcChangeRead(buf []byte, v *CrtcChange) int
- func CrtcChangeReadList(buf []byte, dest []CrtcChange) int
- func Init(c *xgb.Conn) error
- func ModeInfoListBytes(buf []byte, list []ModeInfo) int
- func ModeInfoRead(buf []byte, v *ModeInfo) int
- func ModeInfoReadList(buf []byte, dest []ModeInfo) int
- func NotifyDataUnionListBytes(buf []byte, list []NotifyDataUnion) int
- func NotifyDataUnionRead(buf []byte, v *NotifyDataUnion) int
- func NotifyDataUnionReadList(buf []byte, dest []NotifyDataUnion) int
- func NotifyEventNew(buf []byte) xgb.Event
- func OutputChangeListBytes(buf []byte, list []OutputChange) int
- func OutputChangeRead(buf []byte, v *OutputChange) int
- func OutputChangeReadList(buf []byte, dest []OutputChange) int
- func OutputPropertyListBytes(buf []byte, list []OutputProperty) int
- func OutputPropertyRead(buf []byte, v *OutputProperty) int
- func OutputPropertyReadList(buf []byte, dest []OutputProperty) int
- func ProviderChangeListBytes(buf []byte, list []ProviderChange) int
- func ProviderChangeRead(buf []byte, v *ProviderChange) int
- func ProviderChangeReadList(buf []byte, dest []ProviderChange) int
- func ProviderPropertyListBytes(buf []byte, list []ProviderProperty) int
- func ProviderPropertyRead(buf []byte, v *ProviderProperty) int
- func ProviderPropertyReadList(buf []byte, dest []ProviderProperty) int
- func RefreshRatesListBytes(buf []byte, list []RefreshRates) int
- func RefreshRatesListSize(list []RefreshRates) int
- func RefreshRatesRead(buf []byte, v *RefreshRates) int
- func RefreshRatesReadList(buf []byte, dest []RefreshRates) int
- func ResourceChangeListBytes(buf []byte, list []ResourceChange) int
- func ResourceChangeRead(buf []byte, v *ResourceChange) int
- func ResourceChangeReadList(buf []byte, dest []ResourceChange) int
- func ScreenChangeNotifyEventNew(buf []byte) xgb.Event
- func ScreenSizeListBytes(buf []byte, list []ScreenSize) int
- func ScreenSizeRead(buf []byte, v *ScreenSize) int
- func ScreenSizeReadList(buf []byte, dest []ScreenSize) int
- type AddOutputModeCookie
- type BadCrtcError
- type BadModeError
- type BadOutputError
- type BadProviderError
- type ChangeOutputPropertyCookie
- type ChangeProviderPropertyCookie
- type ConfigureOutputPropertyCookie
- type ConfigureProviderPropertyCookie
- func ConfigureProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom, Pending bool, Range bool, ...) ConfigureProviderPropertyCookie
- func ConfigureProviderPropertyChecked(c *xgb.Conn, Provider Provider, Property xproto.Atom, Pending bool, Range bool, ...) ConfigureProviderPropertyCookie
- type CreateModeCookie
- type CreateModeReply
- type Crtc
- type CrtcChange
- type DeleteOutputModeCookie
- type DeleteOutputPropertyCookie
- type DeleteProviderPropertyCookie
- type DestroyModeCookie
- type GetCrtcGammaCookie
- type GetCrtcGammaReply
- type GetCrtcGammaSizeCookie
- type GetCrtcGammaSizeReply
- type GetCrtcInfoCookie
- type GetCrtcInfoReply
- type GetCrtcTransformCookie
- type GetCrtcTransformReply
- type GetOutputInfoCookie
- type GetOutputInfoReply
- type GetOutputPrimaryCookie
- type GetOutputPrimaryReply
- type GetOutputPropertyCookie
- type GetOutputPropertyReply
- type GetPanningCookie
- type GetPanningReply
- type GetProviderInfoCookie
- type GetProviderInfoReply
- type GetProviderPropertyCookie
- type GetProviderPropertyReply
- type GetProvidersCookie
- type GetProvidersReply
- type GetScreenInfoCookie
- type GetScreenInfoReply
- type GetScreenResourcesCookie
- type GetScreenResourcesCurrentCookie
- type GetScreenResourcesCurrentReply
- type GetScreenResourcesReply
- type GetScreenSizeRangeCookie
- type GetScreenSizeRangeReply
- type ListOutputPropertiesCookie
- type ListOutputPropertiesReply
- type ListProviderPropertiesCookie
- type ListProviderPropertiesReply
- type Mode
- type ModeInfo
- type NotifyDataUnion
- func NotifyDataUnionCcNew(Cc CrtcChange) NotifyDataUnion
- func NotifyDataUnionOcNew(Oc OutputChange) NotifyDataUnion
- func NotifyDataUnionOpNew(Op OutputProperty) NotifyDataUnion
- func NotifyDataUnionPcNew(Pc ProviderChange) NotifyDataUnion
- func NotifyDataUnionPpNew(Pp ProviderProperty) NotifyDataUnion
- func NotifyDataUnionRcNew(Rc ResourceChange) NotifyDataUnion
- type NotifyEvent
- type Output
- type OutputChange
- type OutputProperty
- type Provider
- type ProviderChange
- type ProviderProperty
- type QueryOutputPropertyCookie
- type QueryOutputPropertyReply
- type QueryProviderPropertyCookie
- type QueryProviderPropertyReply
- type QueryVersionCookie
- type QueryVersionReply
- type RefreshRates
- type ResourceChange
- type ScreenChangeNotifyEvent
- type ScreenSize
- type SelectInputCookie
- type SetCrtcConfigCookie
- type SetCrtcConfigReply
- type SetCrtcGammaCookie
- type SetCrtcTransformCookie
- type SetOutputPrimaryCookie
- type SetPanningCookie
- type SetPanningReply
- type SetProviderOffloadSinkCookie
- type SetProviderOutputSourceCookie
- type SetScreenConfigCookie
- type SetScreenConfigReply
- type SetScreenSizeCookie
Constants ¶
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 )
const BadBadCrtc = 1
BadBadCrtc is the error number for a BadBadCrtc.
const BadBadMode = 2
BadBadMode is the error number for a BadBadMode.
const BadBadOutput = 0
BadBadOutput is the error number for a BadBadOutput.
const BadBadProvider = 3
BadBadProvider is the error number for a BadBadProvider.
const Notify = 1
Notify is the event number for a NotifyEvent.
const ScreenChangeNotify = 0
ScreenChangeNotify is the event number for a ScreenChangeNotifyEvent.
Variables ¶
This section is empty.
Functions ¶
func BadCrtcErrorNew ¶
BadCrtcErrorNew constructs a BadCrtcError value that implements xgb.Error from a byte slice.
func BadModeErrorNew ¶
BadModeErrorNew constructs a BadModeError value that implements xgb.Error from a byte slice.
func BadOutputErrorNew ¶
BadOutputErrorNew constructs a BadOutputError value that implements xgb.Error from a byte slice.
func BadProviderErrorNew ¶
BadProviderErrorNew constructs a BadProviderError value that implements xgb.Error from a byte slice.
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 ModeInfoListBytes ¶
ModeInfoListBytes writes a list of ModeInfo values to a byte slice.
func ModeInfoRead ¶
ModeInfoRead reads a byte slice into a ModeInfo value.
func ModeInfoReadList ¶
ModeInfoReadList reads a byte slice into a list of ModeInfo 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 NotifyEventNew ¶
NotifyEventNew constructs a NotifyEvent value that implements xgb.Event from a byte slice.
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 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 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 ScreenChangeNotifyEventNew ¶
ScreenChangeNotifyEventNew constructs a ScreenChangeNotifyEvent value that implements xgb.Event from a byte slice.
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.
Types ¶
type AddOutputModeCookie ¶
AddOutputModeCookie is a cookie used only for AddOutputMode requests.
func AddOutputMode ¶
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 ¶
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 (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 ¶
func (BadCrtcError) BadId ¶
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
func (BadCrtcError) SequenceId ¶
func (err BadCrtcError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadBadCrtc error. This is mostly used internally.
type BadModeError ¶
func (BadModeError) BadId ¶
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
func (BadModeError) SequenceId ¶
func (err BadModeError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadBadMode error. This is mostly used internally.
type BadOutputError ¶
func (BadOutputError) BadId ¶
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
func (BadOutputError) SequenceId ¶
func (err BadOutputError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadBadOutput error. This is mostly used internally.
type BadProviderError ¶
func (BadProviderError) BadId ¶
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
func (BadProviderError) SequenceId ¶
func (err BadProviderError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadBadProvider error. This is mostly used internally.
type ChangeOutputPropertyCookie ¶
ChangeOutputPropertyCookie is a cookie used only for ChangeOutputProperty requests.
func ChangeOutputProperty ¶
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 ¶
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 (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.
type ChangeProviderPropertyCookie ¶
ChangeProviderPropertyCookie is a cookie used only for ChangeProviderProperty requests.
func ChangeProviderProperty ¶
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 ¶
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 (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.
type ConfigureOutputPropertyCookie ¶
ConfigureOutputPropertyCookie is a cookie used only for ConfigureOutputProperty requests.
func ConfigureOutputProperty ¶
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 ¶
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 (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.
type ConfigureProviderPropertyCookie ¶
ConfigureProviderPropertyCookie is a cookie used only for ConfigureProviderProperty requests.
func ConfigureProviderProperty ¶
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 ¶
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 (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.
type CreateModeCookie ¶
CreateModeCookie is a cookie used only for CreateMode requests.
func CreateMode ¶
CreateMode sends a checked request. If an error occurs, it will be returned with the reply by calling CreateModeCookie.Reply()
func CreateModeUnchecked ¶
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 (CreateModeCookie) Reply ¶
func (cook CreateModeCookie) Reply() (*CreateModeReply, error)
Reply blocks and returns the reply data for a CreateMode request.
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.
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 DeleteOutputModeCookie ¶
DeleteOutputModeCookie is a cookie used only for DeleteOutputMode requests.
func DeleteOutputMode ¶
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 ¶
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 (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.
type DeleteOutputPropertyCookie ¶
DeleteOutputPropertyCookie is a cookie used only for DeleteOutputProperty requests.
func DeleteOutputProperty ¶
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 ¶
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 (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.
type DeleteProviderPropertyCookie ¶
DeleteProviderPropertyCookie is a cookie used only for DeleteProviderProperty requests.
func DeleteProviderProperty ¶
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 ¶
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 (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.
type DestroyModeCookie ¶
DestroyModeCookie is a cookie used only for DestroyMode requests.
func DestroyMode ¶
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 ¶
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 (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.
type GetCrtcGammaCookie ¶
GetCrtcGammaCookie is a cookie used only for GetCrtcGamma requests.
func GetCrtcGamma ¶
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 ¶
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 (GetCrtcGammaCookie) Reply ¶
func (cook GetCrtcGammaCookie) Reply() (*GetCrtcGammaReply, error)
Reply blocks and returns the reply data for a GetCrtcGamma request.
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: 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)) }
GetCrtcGammaReply represents the data returned from a GetCrtcGamma request.
type GetCrtcGammaSizeCookie ¶
GetCrtcGammaSizeCookie is a cookie used only for GetCrtcGammaSize requests.
func GetCrtcGammaSize ¶
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 ¶
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 (GetCrtcGammaSizeCookie) Reply ¶
func (cook GetCrtcGammaSizeCookie) Reply() (*GetCrtcGammaSizeReply, error)
Reply blocks and returns the reply data for a GetCrtcGammaSize request.
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.
type GetCrtcInfoCookie ¶
GetCrtcInfoCookie is a cookie used only for GetCrtcInfo requests.
func GetCrtcInfo ¶
GetCrtcInfo sends a checked request. If an error occurs, it will be returned with the reply by calling GetCrtcInfoCookie.Reply()
func GetCrtcInfoUnchecked ¶
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 (GetCrtcInfoCookie) Reply ¶
func (cook GetCrtcInfoCookie) Reply() (*GetCrtcInfoReply, error)
Reply blocks and returns the reply data for a GetCrtcInfo request.
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: xgb.Pad((int(NumOutputs) * 4)) // alignment gap to multiple of 4 Possible []Output // size: xgb.Pad((int(NumPossibleOutputs) * 4)) }
GetCrtcInfoReply represents the data returned from a GetCrtcInfo request.
type GetCrtcTransformCookie ¶
GetCrtcTransformCookie is a cookie used only for GetCrtcTransform requests.
func GetCrtcTransform ¶
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 ¶
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 (GetCrtcTransformCookie) Reply ¶
func (cook GetCrtcTransformCookie) Reply() (*GetCrtcTransformReply, error)
Reply blocks and returns the reply data for a GetCrtcTransform request.
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: 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)) }
GetCrtcTransformReply represents the data returned from a GetCrtcTransform request.
type GetOutputInfoCookie ¶
GetOutputInfoCookie is a cookie used only for GetOutputInfo requests.
func GetOutputInfo ¶
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 ¶
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 (GetOutputInfoCookie) Reply ¶
func (cook GetOutputInfoCookie) Reply() (*GetOutputInfoReply, error)
Reply blocks and returns the reply data for a GetOutputInfo request.
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: 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)) }
GetOutputInfoReply represents the data returned from a GetOutputInfo request.
type GetOutputPrimaryCookie ¶
GetOutputPrimaryCookie is a cookie used only for GetOutputPrimary requests.
func GetOutputPrimary ¶
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 ¶
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 (GetOutputPrimaryCookie) Reply ¶
func (cook GetOutputPrimaryCookie) Reply() (*GetOutputPrimaryReply, error)
Reply blocks and returns the reply data for a GetOutputPrimary request.
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.
type GetOutputPropertyCookie ¶
GetOutputPropertyCookie is a cookie used only for GetOutputProperty requests.
func GetOutputProperty ¶
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 ¶
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 (GetOutputPropertyCookie) Reply ¶
func (cook GetOutputPropertyCookie) Reply() (*GetOutputPropertyReply, error)
Reply blocks and returns the reply data for a GetOutputProperty request.
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: xgb.Pad(((int(NumItems) * (int(Format) / 8)) * 1)) }
GetOutputPropertyReply represents the data returned from a GetOutputProperty request.
type GetPanningCookie ¶
GetPanningCookie is a cookie used only for GetPanning requests.
func GetPanning ¶
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 ¶
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 (GetPanningCookie) Reply ¶
func (cook GetPanningCookie) Reply() (*GetPanningReply, error)
Reply blocks and returns the reply data for a GetPanning request.
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.
type GetProviderInfoCookie ¶
GetProviderInfoCookie is a cookie used only for GetProviderInfo requests.
func GetProviderInfo ¶
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 ¶
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 (GetProviderInfoCookie) Reply ¶
func (cook GetProviderInfoCookie) Reply() (*GetProviderInfoReply, error)
Reply blocks and returns the reply data for a GetProviderInfo request.
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: 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)) }
GetProviderInfoReply represents the data returned from a GetProviderInfo request.
type GetProviderPropertyCookie ¶
GetProviderPropertyCookie is a cookie used only for GetProviderProperty requests.
func GetProviderProperty ¶
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 ¶
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 (GetProviderPropertyCookie) Reply ¶
func (cook GetProviderPropertyCookie) Reply() (*GetProviderPropertyReply, error)
Reply blocks and returns the reply data for a GetProviderProperty request.
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: xgb.Pad(((int(NumItems) * (int(Format) / 8)) * 1)) }
GetProviderPropertyReply represents the data returned from a GetProviderProperty request.
type GetProvidersCookie ¶
GetProvidersCookie is a cookie used only for GetProviders requests.
func GetProviders ¶
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 ¶
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 (GetProvidersCookie) Reply ¶
func (cook GetProvidersCookie) Reply() (*GetProvidersReply, error)
Reply blocks and returns the reply data for a GetProviders request.
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: xgb.Pad((int(NumProviders) * 4)) }
GetProvidersReply represents the data returned from a GetProviders request.
type GetScreenInfoCookie ¶
GetScreenInfoCookie is a cookie used only for GetScreenInfo requests.
func GetScreenInfo ¶
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 ¶
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 (GetScreenInfoCookie) Reply ¶
func (cook GetScreenInfoCookie) Reply() (*GetScreenInfoReply, error)
Reply blocks and returns the reply data for a GetScreenInfo request.
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: xgb.Pad((int(NSizes) * 8)) // alignment gap to multiple of 2 Rates []RefreshRates // size: RefreshRatesListSize(Rates) }
GetScreenInfoReply represents the data returned from a GetScreenInfo request.
type GetScreenResourcesCookie ¶
GetScreenResourcesCookie is a cookie used only for GetScreenResources requests.
func GetScreenResources ¶
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 ¶
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 (GetScreenResourcesCookie) Reply ¶
func (cook GetScreenResourcesCookie) Reply() (*GetScreenResourcesReply, error)
Reply blocks and returns the reply data for a GetScreenResources request.
type GetScreenResourcesCurrentCookie ¶
GetScreenResourcesCurrentCookie is a cookie used only for GetScreenResourcesCurrent requests.
func GetScreenResourcesCurrent ¶
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 ¶
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 (GetScreenResourcesCurrentCookie) Reply ¶
func (cook GetScreenResourcesCurrentCookie) Reply() (*GetScreenResourcesCurrentReply, error)
Reply blocks and returns the reply data for a GetScreenResourcesCurrent request.
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: 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)) }
GetScreenResourcesCurrentReply represents the data returned from a GetScreenResourcesCurrent request.
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: 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 GetScreenSizeRangeCookie ¶
GetScreenSizeRangeCookie is a cookie used only for GetScreenSizeRange requests.
func GetScreenSizeRange ¶
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 ¶
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 (GetScreenSizeRangeCookie) Reply ¶
func (cook GetScreenSizeRangeCookie) Reply() (*GetScreenSizeRangeReply, error)
Reply blocks and returns the reply data for a GetScreenSizeRange request.
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.
type ListOutputPropertiesCookie ¶
ListOutputPropertiesCookie is a cookie used only for ListOutputProperties requests.
func ListOutputProperties ¶
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 ¶
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 (ListOutputPropertiesCookie) Reply ¶
func (cook ListOutputPropertiesCookie) Reply() (*ListOutputPropertiesReply, error)
Reply blocks and returns the reply data for a ListOutputProperties request.
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: xgb.Pad((int(NumAtoms) * 4)) }
ListOutputPropertiesReply represents the data returned from a ListOutputProperties request.
type ListProviderPropertiesCookie ¶
ListProviderPropertiesCookie is a cookie used only for ListProviderProperties requests.
func ListProviderProperties ¶
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 ¶
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 (ListProviderPropertiesCookie) Reply ¶
func (cook ListProviderPropertiesCookie) Reply() (*ListProviderPropertiesReply, error)
Reply blocks and returns the reply data for a ListProviderProperties request.
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: xgb.Pad((int(NumAtoms) * 4)) }
ListProviderPropertiesReply represents the data returned from a ListProviderProperties request.
type ModeInfo ¶
type NotifyDataUnion ¶
type NotifyDataUnion struct { Cc CrtcChange Oc OutputChange Op OutputProperty Pc ProviderChange Pp ProviderProperty Rc ResourceChange }
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
func NotifyDataUnionCcNew ¶
func NotifyDataUnionCcNew(Cc CrtcChange) NotifyDataUnion
NotifyDataUnionCcNew constructs a new NotifyDataUnion union type with the Cc 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) SequenceId ¶
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 (NotifyEvent) String ¶
func (v NotifyEvent) String() string
String is a rudimentary string representation of NotifyEvent.
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 ProviderChange ¶
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 QueryOutputPropertyCookie ¶
QueryOutputPropertyCookie is a cookie used only for QueryOutputProperty requests.
func QueryOutputProperty ¶
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 ¶
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 (QueryOutputPropertyCookie) Reply ¶
func (cook QueryOutputPropertyCookie) Reply() (*QueryOutputPropertyReply, error)
Reply blocks and returns the reply data for a QueryOutputProperty request.
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: xgb.Pad((int(Length) * 4)) }
QueryOutputPropertyReply represents the data returned from a QueryOutputProperty request.
type QueryProviderPropertyCookie ¶
QueryProviderPropertyCookie is a cookie used only for QueryProviderProperty requests.
func QueryProviderProperty ¶
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 ¶
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 (QueryProviderPropertyCookie) Reply ¶
func (cook QueryProviderPropertyCookie) Reply() (*QueryProviderPropertyReply, error)
Reply blocks and returns the reply data for a QueryProviderProperty request.
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: xgb.Pad((int(Length) * 4)) }
QueryProviderPropertyReply represents the data returned from a QueryProviderProperty request.
type QueryVersionCookie ¶
QueryVersionCookie is a cookie used only for QueryVersion requests.
func QueryVersion ¶
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 ¶
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 (QueryVersionCookie) Reply ¶
func (cook QueryVersionCookie) Reply() (*QueryVersionReply, error)
Reply blocks and returns the reply data for a QueryVersion request.
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.
type RefreshRates ¶
func (RefreshRates) Bytes ¶
func (v RefreshRates) Bytes() []byte
Bytes writes a RefreshRates value to a byte slice.
type ResourceChange ¶
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) SequenceId ¶
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 (ScreenChangeNotifyEvent) String ¶
func (v ScreenChangeNotifyEvent) String() string
String is a rudimentary string representation of ScreenChangeNotifyEvent.
type ScreenSize ¶
func (ScreenSize) Bytes ¶
func (v ScreenSize) Bytes() []byte
Bytes writes a ScreenSize value to a byte slice.
type SelectInputCookie ¶
SelectInputCookie is a cookie used only for SelectInput requests.
func SelectInput ¶
SelectInput sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SelectInputChecked ¶
SelectInputChecked sends a checked request. If an error occurs, it can be retrieved using SelectInputCookie.Check()
func (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.
type SetCrtcConfigCookie ¶
SetCrtcConfigCookie is a cookie used only for SetCrtcConfig requests.
func SetCrtcConfig ¶
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 ¶
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 (SetCrtcConfigCookie) Reply ¶
func (cook SetCrtcConfigCookie) Reply() (*SetCrtcConfigReply, error)
Reply blocks and returns the reply data for a SetCrtcConfig request.
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.
type SetCrtcGammaCookie ¶
SetCrtcGammaCookie is a cookie used only for SetCrtcGamma requests.
func SetCrtcGamma ¶
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 ¶
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 (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.
type SetCrtcTransformCookie ¶
SetCrtcTransformCookie is a cookie used only for SetCrtcTransform requests.
func SetCrtcTransform ¶
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 ¶
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 (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.
type SetOutputPrimaryCookie ¶
SetOutputPrimaryCookie is a cookie used only for SetOutputPrimary requests.
func SetOutputPrimary ¶
SetOutputPrimary sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetOutputPrimaryChecked ¶
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 (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.
type SetPanningCookie ¶
SetPanningCookie is a cookie used only for SetPanning requests.
func SetPanning ¶
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 ¶
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 (SetPanningCookie) Reply ¶
func (cook SetPanningCookie) Reply() (*SetPanningReply, error)
Reply blocks and returns the reply data for a SetPanning request.
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.
type SetProviderOffloadSinkCookie ¶
SetProviderOffloadSinkCookie is a cookie used only for SetProviderOffloadSink requests.
func SetProviderOffloadSink ¶
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 ¶
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 (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.
type SetProviderOutputSourceCookie ¶
SetProviderOutputSourceCookie is a cookie used only for SetProviderOutputSource requests.
func SetProviderOutputSource ¶
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 ¶
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 (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.
type SetScreenConfigCookie ¶
SetScreenConfigCookie is a cookie used only for SetScreenConfig requests.
func SetScreenConfig ¶
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 ¶
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 (SetScreenConfigCookie) Reply ¶
func (cook SetScreenConfigCookie) Reply() (*SetScreenConfigReply, error)
Reply blocks and returns the reply data for a SetScreenConfig request.
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.
type SetScreenSizeCookie ¶
SetScreenSizeCookie is a cookie used only for SetScreenSize requests.
func SetScreenSize ¶
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 ¶
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 (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.