...

Package randr

import "github.com/jezek/xgb/randr"
Overview
Index

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
    func AddOutputMode(c *xgb.Conn, Output Output, Mode Mode) AddOutputModeCookie
    func AddOutputModeChecked(c *xgb.Conn, Output Output, Mode Mode) AddOutputModeCookie
    func (cook AddOutputModeCookie) Check() error
type BadCrtcError
    func (err BadCrtcError) BadId() uint32
    func (err BadCrtcError) Error() string
    func (err BadCrtcError) SequenceId() uint16
type BadModeError
    func (err BadModeError) BadId() uint32
    func (err BadModeError) Error() string
    func (err BadModeError) SequenceId() uint16
type BadOutputError
    func (err BadOutputError) BadId() uint32
    func (err BadOutputError) Error() string
    func (err BadOutputError) SequenceId() uint16
type BadProviderError
    func (err BadProviderError) BadId() uint32
    func (err BadProviderError) Error() string
    func (err BadProviderError) SequenceId() uint16
type ChangeOutputPropertyCookie
    func ChangeOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumUnits uint32, Data []byte) ChangeOutputPropertyCookie
    func ChangeOutputPropertyChecked(c *xgb.Conn, Output Output, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumUnits uint32, Data []byte) ChangeOutputPropertyCookie
    func (cook ChangeOutputPropertyCookie) Check() error
type ChangeProviderPropertyCookie
    func ChangeProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumItems uint32, Data []byte) ChangeProviderPropertyCookie
    func ChangeProviderPropertyChecked(c *xgb.Conn, Provider Provider, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumItems uint32, Data []byte) ChangeProviderPropertyCookie
    func (cook ChangeProviderPropertyCookie) Check() error
type ConfigureOutputPropertyCookie
    func ConfigureOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom, Pending bool, Range bool, Values []int32) ConfigureOutputPropertyCookie
    func ConfigureOutputPropertyChecked(c *xgb.Conn, Output Output, Property xproto.Atom, Pending bool, Range bool, Values []int32) ConfigureOutputPropertyCookie
    func (cook ConfigureOutputPropertyCookie) Check() error
type ConfigureProviderPropertyCookie
    func ConfigureProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom, Pending bool, Range bool, Values []int32) ConfigureProviderPropertyCookie
    func ConfigureProviderPropertyChecked(c *xgb.Conn, Provider Provider, Property xproto.Atom, Pending bool, Range bool, Values []int32) ConfigureProviderPropertyCookie
    func (cook ConfigureProviderPropertyCookie) Check() error
type CreateModeCookie
    func CreateMode(c *xgb.Conn, Window xproto.Window, ModeInfo ModeInfo, Name string) CreateModeCookie
    func CreateModeUnchecked(c *xgb.Conn, Window xproto.Window, ModeInfo ModeInfo, Name string) CreateModeCookie
    func (cook CreateModeCookie) Reply() (*CreateModeReply, error)
type CreateModeReply
type Crtc
    func NewCrtcId(c *xgb.Conn) (Crtc, error)
type CrtcChange
    func (v CrtcChange) Bytes() []byte
type DeleteOutputModeCookie
    func DeleteOutputMode(c *xgb.Conn, Output Output, Mode Mode) DeleteOutputModeCookie
    func DeleteOutputModeChecked(c *xgb.Conn, Output Output, Mode Mode) DeleteOutputModeCookie
    func (cook DeleteOutputModeCookie) Check() error
type DeleteOutputPropertyCookie
    func DeleteOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom) DeleteOutputPropertyCookie
    func DeleteOutputPropertyChecked(c *xgb.Conn, Output Output, Property xproto.Atom) DeleteOutputPropertyCookie
    func (cook DeleteOutputPropertyCookie) Check() error
type DeleteProviderPropertyCookie
    func DeleteProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom) DeleteProviderPropertyCookie
    func DeleteProviderPropertyChecked(c *xgb.Conn, Provider Provider, Property xproto.Atom) DeleteProviderPropertyCookie
    func (cook DeleteProviderPropertyCookie) Check() error
type DestroyModeCookie
    func DestroyMode(c *xgb.Conn, Mode Mode) DestroyModeCookie
    func DestroyModeChecked(c *xgb.Conn, Mode Mode) DestroyModeCookie
    func (cook DestroyModeCookie) Check() error
type GetCrtcGammaCookie
    func GetCrtcGamma(c *xgb.Conn, Crtc Crtc) GetCrtcGammaCookie
    func GetCrtcGammaUnchecked(c *xgb.Conn, Crtc Crtc) GetCrtcGammaCookie
    func (cook GetCrtcGammaCookie) Reply() (*GetCrtcGammaReply, error)
type GetCrtcGammaReply
type GetCrtcGammaSizeCookie
    func GetCrtcGammaSize(c *xgb.Conn, Crtc Crtc) GetCrtcGammaSizeCookie
    func GetCrtcGammaSizeUnchecked(c *xgb.Conn, Crtc Crtc) GetCrtcGammaSizeCookie
    func (cook GetCrtcGammaSizeCookie) Reply() (*GetCrtcGammaSizeReply, error)
type GetCrtcGammaSizeReply
type GetCrtcInfoCookie
    func GetCrtcInfo(c *xgb.Conn, Crtc Crtc, ConfigTimestamp xproto.Timestamp) GetCrtcInfoCookie
    func GetCrtcInfoUnchecked(c *xgb.Conn, Crtc Crtc, ConfigTimestamp xproto.Timestamp) GetCrtcInfoCookie
    func (cook GetCrtcInfoCookie) Reply() (*GetCrtcInfoReply, error)
type GetCrtcInfoReply
type GetCrtcTransformCookie
    func GetCrtcTransform(c *xgb.Conn, Crtc Crtc) GetCrtcTransformCookie
    func GetCrtcTransformUnchecked(c *xgb.Conn, Crtc Crtc) GetCrtcTransformCookie
    func (cook GetCrtcTransformCookie) Reply() (*GetCrtcTransformReply, error)
type GetCrtcTransformReply
type GetOutputInfoCookie
    func GetOutputInfo(c *xgb.Conn, Output Output, ConfigTimestamp xproto.Timestamp) GetOutputInfoCookie
    func GetOutputInfoUnchecked(c *xgb.Conn, Output Output, ConfigTimestamp xproto.Timestamp) GetOutputInfoCookie
    func (cook GetOutputInfoCookie) Reply() (*GetOutputInfoReply, error)
type GetOutputInfoReply
type GetOutputPrimaryCookie
    func GetOutputPrimary(c *xgb.Conn, Window xproto.Window) GetOutputPrimaryCookie
    func GetOutputPrimaryUnchecked(c *xgb.Conn, Window xproto.Window) GetOutputPrimaryCookie
    func (cook GetOutputPrimaryCookie) Reply() (*GetOutputPrimaryReply, error)
type GetOutputPrimaryReply
type GetOutputPropertyCookie
    func GetOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) GetOutputPropertyCookie
    func GetOutputPropertyUnchecked(c *xgb.Conn, Output Output, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) GetOutputPropertyCookie
    func (cook GetOutputPropertyCookie) Reply() (*GetOutputPropertyReply, error)
type GetOutputPropertyReply
type GetPanningCookie
    func GetPanning(c *xgb.Conn, Crtc Crtc) GetPanningCookie
    func GetPanningUnchecked(c *xgb.Conn, Crtc Crtc) GetPanningCookie
    func (cook GetPanningCookie) Reply() (*GetPanningReply, error)
type GetPanningReply
type GetProviderInfoCookie
    func GetProviderInfo(c *xgb.Conn, Provider Provider, ConfigTimestamp xproto.Timestamp) GetProviderInfoCookie
    func GetProviderInfoUnchecked(c *xgb.Conn, Provider Provider, ConfigTimestamp xproto.Timestamp) GetProviderInfoCookie
    func (cook GetProviderInfoCookie) Reply() (*GetProviderInfoReply, error)
type GetProviderInfoReply
type GetProviderPropertyCookie
    func GetProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) GetProviderPropertyCookie
    func GetProviderPropertyUnchecked(c *xgb.Conn, Provider Provider, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) GetProviderPropertyCookie
    func (cook GetProviderPropertyCookie) Reply() (*GetProviderPropertyReply, error)
type GetProviderPropertyReply
type GetProvidersCookie
    func GetProviders(c *xgb.Conn, Window xproto.Window) GetProvidersCookie
    func GetProvidersUnchecked(c *xgb.Conn, Window xproto.Window) GetProvidersCookie
    func (cook GetProvidersCookie) Reply() (*GetProvidersReply, error)
type GetProvidersReply
type GetScreenInfoCookie
    func GetScreenInfo(c *xgb.Conn, Window xproto.Window) GetScreenInfoCookie
    func GetScreenInfoUnchecked(c *xgb.Conn, Window xproto.Window) GetScreenInfoCookie
    func (cook GetScreenInfoCookie) Reply() (*GetScreenInfoReply, error)
type GetScreenInfoReply
type GetScreenResourcesCookie
    func GetScreenResources(c *xgb.Conn, Window xproto.Window) GetScreenResourcesCookie
    func GetScreenResourcesUnchecked(c *xgb.Conn, Window xproto.Window) GetScreenResourcesCookie
    func (cook GetScreenResourcesCookie) Reply() (*GetScreenResourcesReply, error)
type GetScreenResourcesCurrentCookie
    func GetScreenResourcesCurrent(c *xgb.Conn, Window xproto.Window) GetScreenResourcesCurrentCookie
    func GetScreenResourcesCurrentUnchecked(c *xgb.Conn, Window xproto.Window) GetScreenResourcesCurrentCookie
    func (cook GetScreenResourcesCurrentCookie) Reply() (*GetScreenResourcesCurrentReply, error)
type GetScreenResourcesCurrentReply
type GetScreenResourcesReply
type GetScreenSizeRangeCookie
    func GetScreenSizeRange(c *xgb.Conn, Window xproto.Window) GetScreenSizeRangeCookie
    func GetScreenSizeRangeUnchecked(c *xgb.Conn, Window xproto.Window) GetScreenSizeRangeCookie
    func (cook GetScreenSizeRangeCookie) Reply() (*GetScreenSizeRangeReply, error)
type GetScreenSizeRangeReply
type ListOutputPropertiesCookie
    func ListOutputProperties(c *xgb.Conn, Output Output) ListOutputPropertiesCookie
    func ListOutputPropertiesUnchecked(c *xgb.Conn, Output Output) ListOutputPropertiesCookie
    func (cook ListOutputPropertiesCookie) Reply() (*ListOutputPropertiesReply, error)
type ListOutputPropertiesReply
type ListProviderPropertiesCookie
    func ListProviderProperties(c *xgb.Conn, Provider Provider) ListProviderPropertiesCookie
    func ListProviderPropertiesUnchecked(c *xgb.Conn, Provider Provider) ListProviderPropertiesCookie
    func (cook ListProviderPropertiesCookie) Reply() (*ListProviderPropertiesReply, error)
type ListProviderPropertiesReply
type Mode
    func NewModeId(c *xgb.Conn) (Mode, error)
type ModeInfo
    func (v ModeInfo) Bytes() []byte
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
    func (v NotifyDataUnion) Bytes() []byte
type NotifyEvent
    func (v NotifyEvent) Bytes() []byte
    func (v NotifyEvent) SequenceId() uint16
    func (v NotifyEvent) String() string
type Output
    func NewOutputId(c *xgb.Conn) (Output, error)
type OutputChange
    func (v OutputChange) Bytes() []byte
type OutputProperty
    func (v OutputProperty) Bytes() []byte
type Provider
    func NewProviderId(c *xgb.Conn) (Provider, error)
type ProviderChange
    func (v ProviderChange) Bytes() []byte
type ProviderProperty
    func (v ProviderProperty) Bytes() []byte
type QueryOutputPropertyCookie
    func QueryOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom) QueryOutputPropertyCookie
    func QueryOutputPropertyUnchecked(c *xgb.Conn, Output Output, Property xproto.Atom) QueryOutputPropertyCookie
    func (cook QueryOutputPropertyCookie) Reply() (*QueryOutputPropertyReply, error)
type QueryOutputPropertyReply
type QueryProviderPropertyCookie
    func QueryProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom) QueryProviderPropertyCookie
    func QueryProviderPropertyUnchecked(c *xgb.Conn, Provider Provider, Property xproto.Atom) QueryProviderPropertyCookie
    func (cook QueryProviderPropertyCookie) Reply() (*QueryProviderPropertyReply, error)
type QueryProviderPropertyReply
type QueryVersionCookie
    func QueryVersion(c *xgb.Conn, MajorVersion uint32, MinorVersion uint32) QueryVersionCookie
    func QueryVersionUnchecked(c *xgb.Conn, MajorVersion uint32, MinorVersion uint32) QueryVersionCookie
    func (cook QueryVersionCookie) Reply() (*QueryVersionReply, error)
type QueryVersionReply
type RefreshRates
    func (v RefreshRates) Bytes() []byte
type ResourceChange
    func (v ResourceChange) Bytes() []byte
type ScreenChangeNotifyEvent
    func (v ScreenChangeNotifyEvent) Bytes() []byte
    func (v ScreenChangeNotifyEvent) SequenceId() uint16
    func (v ScreenChangeNotifyEvent) String() string
type ScreenSize
    func (v ScreenSize) Bytes() []byte
type SelectInputCookie
    func SelectInput(c *xgb.Conn, Window xproto.Window, Enable uint16) SelectInputCookie
    func SelectInputChecked(c *xgb.Conn, Window xproto.Window, Enable uint16) SelectInputCookie
    func (cook SelectInputCookie) Check() error
type SetCrtcConfigCookie
    func SetCrtcConfig(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, X int16, Y int16, Mode Mode, Rotation uint16, Outputs []Output) SetCrtcConfigCookie
    func SetCrtcConfigUnchecked(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, X int16, Y int16, Mode Mode, Rotation uint16, Outputs []Output) SetCrtcConfigCookie
    func (cook SetCrtcConfigCookie) Reply() (*SetCrtcConfigReply, error)
type SetCrtcConfigReply
type SetCrtcGammaCookie
    func SetCrtcGamma(c *xgb.Conn, Crtc Crtc, Size uint16, Red []uint16, Green []uint16, Blue []uint16) SetCrtcGammaCookie
    func SetCrtcGammaChecked(c *xgb.Conn, Crtc Crtc, Size uint16, Red []uint16, Green []uint16, Blue []uint16) SetCrtcGammaCookie
    func (cook SetCrtcGammaCookie) Check() error
type SetCrtcTransformCookie
    func SetCrtcTransform(c *xgb.Conn, Crtc Crtc, Transform render.Transform, FilterLen uint16, FilterName string, FilterParams []render.Fixed) SetCrtcTransformCookie
    func SetCrtcTransformChecked(c *xgb.Conn, Crtc Crtc, Transform render.Transform, FilterLen uint16, FilterName string, FilterParams []render.Fixed) SetCrtcTransformCookie
    func (cook SetCrtcTransformCookie) Check() error
type SetOutputPrimaryCookie
    func SetOutputPrimary(c *xgb.Conn, Window xproto.Window, Output Output) SetOutputPrimaryCookie
    func SetOutputPrimaryChecked(c *xgb.Conn, Window xproto.Window, Output Output) SetOutputPrimaryCookie
    func (cook SetOutputPrimaryCookie) Check() error
type SetPanningCookie
    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
    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
    func (cook SetPanningCookie) Reply() (*SetPanningReply, error)
type SetPanningReply
type SetProviderOffloadSinkCookie
    func SetProviderOffloadSink(c *xgb.Conn, Provider Provider, SinkProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOffloadSinkCookie
    func SetProviderOffloadSinkChecked(c *xgb.Conn, Provider Provider, SinkProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOffloadSinkCookie
    func (cook SetProviderOffloadSinkCookie) Check() error
type SetProviderOutputSourceCookie
    func SetProviderOutputSource(c *xgb.Conn, Provider Provider, SourceProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOutputSourceCookie
    func SetProviderOutputSourceChecked(c *xgb.Conn, Provider Provider, SourceProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOutputSourceCookie
    func (cook SetProviderOutputSourceCookie) Check() error
type SetScreenConfigCookie
    func SetScreenConfig(c *xgb.Conn, Window xproto.Window, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, SizeID uint16, Rotation uint16, Rate uint16) SetScreenConfigCookie
    func SetScreenConfigUnchecked(c *xgb.Conn, Window xproto.Window, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, SizeID uint16, Rotation uint16, Rate uint16) SetScreenConfigCookie
    func (cook SetScreenConfigCookie) Reply() (*SetScreenConfigReply, error)
type SetScreenConfigReply
type SetScreenSizeCookie
    func SetScreenSize(c *xgb.Conn, Window xproto.Window, Width uint16, Height uint16, MmWidth uint32, MmHeight uint32) SetScreenSizeCookie
    func SetScreenSizeChecked(c *xgb.Conn, Window xproto.Window, Width uint16, Height uint16, MmWidth uint32, MmHeight uint32) SetScreenSizeCookie
    func (cook SetScreenSizeCookie) Check() error

Package files

randr.go

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
)

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

func BadCrtcErrorNew(buf []byte) xgb.Error

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

func BadModeErrorNew

func BadModeErrorNew(buf []byte) xgb.Error

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

func BadOutputErrorNew

func BadOutputErrorNew(buf []byte) xgb.Error

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

func BadProviderErrorNew

func BadProviderErrorNew(buf []byte) xgb.Error

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 Init

func Init(c *xgb.Conn) error

Init must be called before using the RANDR extension.

func ModeInfoListBytes

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

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

func ModeInfoRead

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

ModeInfoRead reads a byte slice into a ModeInfo value.

func ModeInfoReadList

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

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

func 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

func NotifyEventNew(buf []byte) xgb.Event

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

func ScreenChangeNotifyEventNew(buf []byte) xgb.Event

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.

type AddOutputModeCookie

AddOutputModeCookie is a cookie used only for AddOutputMode requests.

type AddOutputModeCookie struct {
    *xgb.Cookie
}

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

type BadCrtcError struct {
    Sequence uint16
    NiceName string
}

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

type BadModeError struct {
    Sequence uint16
    NiceName string
}

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

type BadOutputError struct {
    Sequence uint16
    NiceName string
}

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

type BadProviderError struct {
    Sequence uint16
    NiceName string
}

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.

type ChangeOutputPropertyCookie struct {
    *xgb.Cookie
}

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.

type ChangeProviderPropertyCookie struct {
    *xgb.Cookie
}

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.

type ConfigureOutputPropertyCookie struct {
    *xgb.Cookie
}

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.

type ConfigureProviderPropertyCookie struct {
    *xgb.Cookie
}

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.

type CreateModeCookie struct {
    *xgb.Cookie
}

func CreateMode

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

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

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

type Crtc uint32

func NewCrtcId

func NewCrtcId(c *xgb.Conn) (Crtc, error)

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.

type DeleteOutputModeCookie struct {
    *xgb.Cookie
}

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.

type DeleteOutputPropertyCookie struct {
    *xgb.Cookie
}

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.

type DeleteProviderPropertyCookie struct {
    *xgb.Cookie
}

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.

type DestroyModeCookie struct {
    *xgb.Cookie
}

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.

type GetCrtcGammaCookie struct {
    *xgb.Cookie
}

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

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))
}

type GetCrtcGammaSizeCookie

GetCrtcGammaSizeCookie is a cookie used only for GetCrtcGammaSize requests.

type GetCrtcGammaSizeCookie struct {
    *xgb.Cookie
}

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

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
}

type GetCrtcInfoCookie

GetCrtcInfoCookie is a cookie used only for GetCrtcInfo requests.

type GetCrtcInfoCookie struct {
    *xgb.Cookie
}

func GetCrtcInfo

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

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

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))
}

type GetCrtcTransformCookie

GetCrtcTransformCookie is a cookie used only for GetCrtcTransform requests.

type GetCrtcTransformCookie struct {
    *xgb.Cookie
}

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

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))
}

type GetOutputInfoCookie

GetOutputInfoCookie is a cookie used only for GetOutputInfo requests.

type GetOutputInfoCookie struct {
    *xgb.Cookie
}

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

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))
}

type GetOutputPrimaryCookie

GetOutputPrimaryCookie is a cookie used only for GetOutputPrimary requests.

type GetOutputPrimaryCookie struct {
    *xgb.Cookie
}

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

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
}

type GetOutputPropertyCookie

GetOutputPropertyCookie is a cookie used only for GetOutputProperty requests.

type GetOutputPropertyCookie struct {
    *xgb.Cookie
}

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

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))
}

type GetPanningCookie

GetPanningCookie is a cookie used only for GetPanning requests.

type GetPanningCookie struct {
    *xgb.Cookie
}

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

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
}

type GetProviderInfoCookie

GetProviderInfoCookie is a cookie used only for GetProviderInfo requests.

type GetProviderInfoCookie struct {
    *xgb.Cookie
}

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

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))
}

type GetProviderPropertyCookie

GetProviderPropertyCookie is a cookie used only for GetProviderProperty requests.

type GetProviderPropertyCookie struct {
    *xgb.Cookie
}

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

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))
}

type GetProvidersCookie

GetProvidersCookie is a cookie used only for GetProviders requests.

type GetProvidersCookie struct {
    *xgb.Cookie
}

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

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))
}

type GetScreenInfoCookie

GetScreenInfoCookie is a cookie used only for GetScreenInfo requests.

type GetScreenInfoCookie struct {
    *xgb.Cookie
}

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

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)
}

type GetScreenResourcesCookie

GetScreenResourcesCookie is a cookie used only for GetScreenResources requests.

type GetScreenResourcesCookie struct {
    *xgb.Cookie
}

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.

type GetScreenResourcesCurrentCookie struct {
    *xgb.Cookie
}

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

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))
}

type GetScreenResourcesReply

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))
}

type GetScreenSizeRangeCookie

GetScreenSizeRangeCookie is a cookie used only for GetScreenSizeRange requests.

type GetScreenSizeRangeCookie struct {
    *xgb.Cookie
}

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

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
}

type ListOutputPropertiesCookie

ListOutputPropertiesCookie is a cookie used only for ListOutputProperties requests.

type ListOutputPropertiesCookie struct {
    *xgb.Cookie
}

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

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))
}

type ListProviderPropertiesCookie

ListProviderPropertiesCookie is a cookie used only for ListProviderProperties requests.

type ListProviderPropertiesCookie struct {
    *xgb.Cookie
}

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

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

type Mode uint32

func NewModeId

func NewModeId(c *xgb.Conn) (Mode, error)

type ModeInfo

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

func (ModeInfo) Bytes

func (v ModeInfo) Bytes() []byte

Bytes writes a ModeInfo value to a byte slice.

type NotifyDataUnion

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

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 Output

type Output uint32

func NewOutputId

func NewOutputId(c *xgb.Conn) (Output, error)

type OutputChange

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

func (OutputChange) Bytes

func (v OutputChange) Bytes() []byte

Bytes writes a OutputChange value to a byte slice.

type OutputProperty

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

func (OutputProperty) Bytes

func (v OutputProperty) Bytes() []byte

Bytes writes a OutputProperty value to a byte slice.

type Provider

type Provider uint32

func NewProviderId

func NewProviderId(c *xgb.Conn) (Provider, error)

type ProviderChange

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

func (ProviderChange) Bytes

func (v ProviderChange) Bytes() []byte

Bytes writes a ProviderChange value to a byte slice.

type ProviderProperty

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

func (ProviderProperty) Bytes

func (v ProviderProperty) Bytes() []byte

Bytes writes a ProviderProperty value to a byte slice.

type QueryOutputPropertyCookie

QueryOutputPropertyCookie is a cookie used only for QueryOutputProperty requests.

type QueryOutputPropertyCookie struct {
    *xgb.Cookie
}

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

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))
}

type QueryProviderPropertyCookie

QueryProviderPropertyCookie is a cookie used only for QueryProviderProperty requests.

type QueryProviderPropertyCookie struct {
    *xgb.Cookie
}

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

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))
}

type QueryVersionCookie

QueryVersionCookie is a cookie used only for QueryVersion requests.

type QueryVersionCookie struct {
    *xgb.Cookie
}

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

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

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

func (RefreshRates) Bytes

func (v RefreshRates) Bytes() []byte

Bytes writes a RefreshRates value to a byte slice.

type ResourceChange

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

func (ResourceChange) Bytes

func (v ResourceChange) Bytes() []byte

Bytes writes a ResourceChange value to a byte slice.

type ScreenChangeNotifyEvent

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

func (ScreenChangeNotifyEvent) Bytes

func (v ScreenChangeNotifyEvent) Bytes() []byte

Bytes writes a ScreenChangeNotifyEvent value to a byte slice.

func (ScreenChangeNotifyEvent) 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

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

func (ScreenSize) Bytes

func (v ScreenSize) Bytes() []byte

Bytes writes a ScreenSize value to a byte slice.

type SelectInputCookie

SelectInputCookie is a cookie used only for SelectInput requests.

type SelectInputCookie struct {
    *xgb.Cookie
}

func SelectInput

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

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 (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.

type SetCrtcConfigCookie struct {
    *xgb.Cookie
}

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

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
}

type SetCrtcGammaCookie

SetCrtcGammaCookie is a cookie used only for SetCrtcGamma requests.

type SetCrtcGammaCookie struct {
    *xgb.Cookie
}

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.

type SetCrtcTransformCookie struct {
    *xgb.Cookie
}

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.

type SetOutputPrimaryCookie struct {
    *xgb.Cookie
}

func SetOutputPrimary

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

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.

type SetPanningCookie struct {
    *xgb.Cookie
}

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

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
}

type SetProviderOffloadSinkCookie

SetProviderOffloadSinkCookie is a cookie used only for SetProviderOffloadSink requests.

type SetProviderOffloadSinkCookie struct {
    *xgb.Cookie
}

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.

type SetProviderOutputSourceCookie struct {
    *xgb.Cookie
}

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.

type SetScreenConfigCookie struct {
    *xgb.Cookie
}

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

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
}

type SetScreenSizeCookie

SetScreenSizeCookie is a cookie used only for SetScreenSize requests.

type SetScreenSizeCookie struct {
    *xgb.Cookie
}

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.