xgb: github.com/BurntSushi/xgb/randr Index | Files

package randr

import "github.com/BurntSushi/xgb/randr"

Package randr is the X client API for the RANDR extension.

Index

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

func BadCrtcErrorNew Uses

func BadCrtcErrorNew(buf []byte) xgb.Error

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

func BadModeErrorNew Uses

func BadModeErrorNew(buf []byte) xgb.Error

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

func BadOutputErrorNew Uses

func BadOutputErrorNew(buf []byte) xgb.Error

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

func BadProviderErrorNew Uses

func BadProviderErrorNew(buf []byte) xgb.Error

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

func CrtcChangeListBytes Uses

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

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

func CrtcChangeRead Uses

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

CrtcChangeRead reads a byte slice into a CrtcChange value.

func CrtcChangeReadList Uses

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

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

func Init Uses

func Init(c *xgb.Conn) error

Init must be called before using the RANDR extension.

func ModeInfoListBytes Uses

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

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

func ModeInfoRead Uses

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

ModeInfoRead reads a byte slice into a ModeInfo value.

func ModeInfoReadList Uses

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

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

func NotifyDataUnionListBytes Uses

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

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

func NotifyDataUnionRead Uses

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

NotifyDataUnionRead reads a byte slice into a NotifyDataUnion value.

func NotifyDataUnionReadList Uses

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

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

func NotifyEventNew Uses

func NotifyEventNew(buf []byte) xgb.Event

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

func OutputChangeListBytes Uses

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

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

func OutputChangeRead Uses

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

OutputChangeRead reads a byte slice into a OutputChange value.

func OutputChangeReadList Uses

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

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

func OutputPropertyListBytes Uses

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

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

func OutputPropertyRead Uses

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

OutputPropertyRead reads a byte slice into a OutputProperty value.

func OutputPropertyReadList Uses

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

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

func ProviderChangeListBytes Uses

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

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

func ProviderChangeRead Uses

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

ProviderChangeRead reads a byte slice into a ProviderChange value.

func ProviderChangeReadList Uses

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

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

func ProviderPropertyListBytes Uses

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

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

func ProviderPropertyRead Uses

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

ProviderPropertyRead reads a byte slice into a ProviderProperty value.

func ProviderPropertyReadList Uses

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

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

func RefreshRatesListBytes Uses

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

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

func RefreshRatesListSize Uses

func RefreshRatesListSize(list []RefreshRates) int

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

func RefreshRatesRead Uses

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

RefreshRatesRead reads a byte slice into a RefreshRates value.

func RefreshRatesReadList Uses

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

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

func ResourceChangeListBytes Uses

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

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

func ResourceChangeRead Uses

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

ResourceChangeRead reads a byte slice into a ResourceChange value.

func ResourceChangeReadList Uses

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

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

func ScreenChangeNotifyEventNew Uses

func ScreenChangeNotifyEventNew(buf []byte) xgb.Event

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

func ScreenSizeListBytes Uses

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

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

func ScreenSizeRead Uses

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

ScreenSizeRead reads a byte slice into a ScreenSize value.

func ScreenSizeReadList Uses

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

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

type AddOutputModeCookie Uses

type AddOutputModeCookie struct {
    *xgb.Cookie
}

AddOutputModeCookie is a cookie used only for AddOutputMode requests.

func AddOutputMode Uses

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 Uses

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 Uses

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 Uses

type BadCrtcError struct {
    Sequence uint16
    NiceName string
}

func (BadCrtcError) BadId Uses

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 Uses

func (err BadCrtcError) Error() string

func (BadCrtcError) SequenceId Uses

func (err BadCrtcError) SequenceId() uint16

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

type BadModeError Uses

type BadModeError struct {
    Sequence uint16
    NiceName string
}

func (BadModeError) BadId Uses

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 Uses

func (err BadModeError) Error() string

func (BadModeError) SequenceId Uses

func (err BadModeError) SequenceId() uint16

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

type BadOutputError Uses

type BadOutputError struct {
    Sequence uint16
    NiceName string
}

func (BadOutputError) BadId Uses

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 Uses

func (err BadOutputError) Error() string

func (BadOutputError) SequenceId Uses

func (err BadOutputError) SequenceId() uint16

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

type BadProviderError Uses

type BadProviderError struct {
    Sequence uint16
    NiceName string
}

func (BadProviderError) BadId Uses

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 Uses

func (err BadProviderError) Error() string

func (BadProviderError) SequenceId Uses

func (err BadProviderError) SequenceId() uint16

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

type ChangeOutputPropertyCookie Uses

type ChangeOutputPropertyCookie struct {
    *xgb.Cookie
}

ChangeOutputPropertyCookie is a cookie used only for ChangeOutputProperty requests.

func ChangeOutputProperty Uses

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 Uses

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 Uses

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 Uses

type ChangeProviderPropertyCookie struct {
    *xgb.Cookie
}

ChangeProviderPropertyCookie is a cookie used only for ChangeProviderProperty requests.

func ChangeProviderProperty Uses

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 Uses

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 Uses

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 Uses

type ConfigureOutputPropertyCookie struct {
    *xgb.Cookie
}

ConfigureOutputPropertyCookie is a cookie used only for ConfigureOutputProperty requests.

func ConfigureOutputProperty Uses

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 Uses

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 Uses

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 Uses

type ConfigureProviderPropertyCookie struct {
    *xgb.Cookie
}

ConfigureProviderPropertyCookie is a cookie used only for ConfigureProviderProperty requests.

func ConfigureProviderProperty Uses

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 Uses

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 Uses

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 Uses

type CreateModeCookie struct {
    *xgb.Cookie
}

CreateModeCookie is a cookie used only for CreateMode requests.

func CreateMode Uses

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 Uses

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 Uses

func (cook CreateModeCookie) Reply() (*CreateModeReply, error)

Reply blocks and returns the reply data for a CreateMode request.

type CreateModeReply Uses

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 Crtc Uses

type Crtc uint32

func NewCrtcId Uses

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

type CrtcChange Uses

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 Uses

func (v CrtcChange) Bytes() []byte

Bytes writes a CrtcChange value to a byte slice.

type DeleteOutputModeCookie Uses

type DeleteOutputModeCookie struct {
    *xgb.Cookie
}

DeleteOutputModeCookie is a cookie used only for DeleteOutputMode requests.

func DeleteOutputMode Uses

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 Uses

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 Uses

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 Uses

type DeleteOutputPropertyCookie struct {
    *xgb.Cookie
}

DeleteOutputPropertyCookie is a cookie used only for DeleteOutputProperty requests.

func DeleteOutputProperty Uses

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 Uses

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 Uses

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 Uses

type DeleteProviderPropertyCookie struct {
    *xgb.Cookie
}

DeleteProviderPropertyCookie is a cookie used only for DeleteProviderProperty requests.

func DeleteProviderProperty Uses

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 Uses

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 Uses

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 Uses

type DestroyModeCookie struct {
    *xgb.Cookie
}

DestroyModeCookie is a cookie used only for DestroyMode requests.

func DestroyMode Uses

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 Uses

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 Uses

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 Uses

type GetCrtcGammaCookie struct {
    *xgb.Cookie
}

GetCrtcGammaCookie is a cookie used only for GetCrtcGamma requests.

func GetCrtcGamma Uses

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 Uses

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 Uses

func (cook GetCrtcGammaCookie) Reply() (*GetCrtcGammaReply, error)

Reply blocks and returns the reply data for a GetCrtcGamma request.

type GetCrtcGammaReply Uses

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 Uses

type GetCrtcGammaSizeCookie struct {
    *xgb.Cookie
}

GetCrtcGammaSizeCookie is a cookie used only for GetCrtcGammaSize requests.

func GetCrtcGammaSize Uses

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 Uses

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 Uses

func (cook GetCrtcGammaSizeCookie) Reply() (*GetCrtcGammaSizeReply, error)

Reply blocks and returns the reply data for a GetCrtcGammaSize request.

type GetCrtcGammaSizeReply Uses

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 Uses

type GetCrtcInfoCookie struct {
    *xgb.Cookie
}

GetCrtcInfoCookie is a cookie used only for GetCrtcInfo requests.

func GetCrtcInfo Uses

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 Uses

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 Uses

func (cook GetCrtcInfoCookie) Reply() (*GetCrtcInfoReply, error)

Reply blocks and returns the reply data for a GetCrtcInfo request.

type GetCrtcInfoReply Uses

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 Uses

type GetCrtcTransformCookie struct {
    *xgb.Cookie
}

GetCrtcTransformCookie is a cookie used only for GetCrtcTransform requests.

func GetCrtcTransform Uses

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 Uses

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 Uses

func (cook GetCrtcTransformCookie) Reply() (*GetCrtcTransformReply, error)

Reply blocks and returns the reply data for a GetCrtcTransform request.

type GetCrtcTransformReply Uses

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 Uses

type GetOutputInfoCookie struct {
    *xgb.Cookie
}

GetOutputInfoCookie is a cookie used only for GetOutputInfo requests.

func GetOutputInfo Uses

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 Uses

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 Uses

func (cook GetOutputInfoCookie) Reply() (*GetOutputInfoReply, error)

Reply blocks and returns the reply data for a GetOutputInfo request.

type GetOutputInfoReply Uses

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 Uses

type GetOutputPrimaryCookie struct {
    *xgb.Cookie
}

GetOutputPrimaryCookie is a cookie used only for GetOutputPrimary requests.

func GetOutputPrimary Uses

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 Uses

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 Uses

func (cook GetOutputPrimaryCookie) Reply() (*GetOutputPrimaryReply, error)

Reply blocks and returns the reply data for a GetOutputPrimary request.

type GetOutputPrimaryReply Uses

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 Uses

type GetOutputPropertyCookie struct {
    *xgb.Cookie
}

GetOutputPropertyCookie is a cookie used only for GetOutputProperty requests.

func GetOutputProperty Uses

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 Uses

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 Uses

func (cook GetOutputPropertyCookie) Reply() (*GetOutputPropertyReply, error)

Reply blocks and returns the reply data for a GetOutputProperty request.

type GetOutputPropertyReply Uses

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 Uses

type GetPanningCookie struct {
    *xgb.Cookie
}

GetPanningCookie is a cookie used only for GetPanning requests.

func GetPanning Uses

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 Uses

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 Uses

func (cook GetPanningCookie) Reply() (*GetPanningReply, error)

Reply blocks and returns the reply data for a GetPanning request.

type GetPanningReply Uses

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 Uses

type GetProviderInfoCookie struct {
    *xgb.Cookie
}

GetProviderInfoCookie is a cookie used only for GetProviderInfo requests.

func GetProviderInfo Uses

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 Uses

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 Uses

func (cook GetProviderInfoCookie) Reply() (*GetProviderInfoReply, error)

Reply blocks and returns the reply data for a GetProviderInfo request.

type GetProviderInfoReply Uses

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 Uses

type GetProviderPropertyCookie struct {
    *xgb.Cookie
}

GetProviderPropertyCookie is a cookie used only for GetProviderProperty requests.

func GetProviderProperty Uses

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 Uses

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 Uses

func (cook GetProviderPropertyCookie) Reply() (*GetProviderPropertyReply, error)

Reply blocks and returns the reply data for a GetProviderProperty request.

type GetProviderPropertyReply Uses

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 Uses

type GetProvidersCookie struct {
    *xgb.Cookie
}

GetProvidersCookie is a cookie used only for GetProviders requests.

func GetProviders Uses

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 Uses

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 Uses

func (cook GetProvidersCookie) Reply() (*GetProvidersReply, error)

Reply blocks and returns the reply data for a GetProviders request.

type GetProvidersReply Uses

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 Uses

type GetScreenInfoCookie struct {
    *xgb.Cookie
}

GetScreenInfoCookie is a cookie used only for GetScreenInfo requests.

func GetScreenInfo Uses

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 Uses

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 Uses

func (cook GetScreenInfoCookie) Reply() (*GetScreenInfoReply, error)

Reply blocks and returns the reply data for a GetScreenInfo request.

type GetScreenInfoReply Uses

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 Uses

type GetScreenResourcesCookie struct {
    *xgb.Cookie
}

GetScreenResourcesCookie is a cookie used only for GetScreenResources requests.

func GetScreenResources Uses

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 Uses

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 Uses

func (cook GetScreenResourcesCookie) Reply() (*GetScreenResourcesReply, error)

Reply blocks and returns the reply data for a GetScreenResources request.

type GetScreenResourcesCurrentCookie Uses

type GetScreenResourcesCurrentCookie struct {
    *xgb.Cookie
}

GetScreenResourcesCurrentCookie is a cookie used only for GetScreenResourcesCurrent requests.

func GetScreenResourcesCurrent Uses

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 Uses

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 Uses

func (cook GetScreenResourcesCurrentCookie) Reply() (*GetScreenResourcesCurrentReply, error)

Reply blocks and returns the reply data for a GetScreenResourcesCurrent request.

type GetScreenResourcesCurrentReply Uses

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 Uses

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 Uses

type GetScreenSizeRangeCookie struct {
    *xgb.Cookie
}

GetScreenSizeRangeCookie is a cookie used only for GetScreenSizeRange requests.

func GetScreenSizeRange Uses

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 Uses

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 Uses

func (cook GetScreenSizeRangeCookie) Reply() (*GetScreenSizeRangeReply, error)

Reply blocks and returns the reply data for a GetScreenSizeRange request.

type GetScreenSizeRangeReply Uses

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 Uses

type ListOutputPropertiesCookie struct {
    *xgb.Cookie
}

ListOutputPropertiesCookie is a cookie used only for ListOutputProperties requests.

func ListOutputProperties Uses

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 Uses

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 Uses

func (cook ListOutputPropertiesCookie) Reply() (*ListOutputPropertiesReply, error)

Reply blocks and returns the reply data for a ListOutputProperties request.

type ListOutputPropertiesReply Uses

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 Uses

type ListProviderPropertiesCookie struct {
    *xgb.Cookie
}

ListProviderPropertiesCookie is a cookie used only for ListProviderProperties requests.

func ListProviderProperties Uses

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 Uses

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 Uses

func (cook ListProviderPropertiesCookie) Reply() (*ListProviderPropertiesReply, error)

Reply blocks and returns the reply data for a ListProviderProperties request.

type ListProviderPropertiesReply Uses

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 Mode Uses

type Mode uint32

func NewModeId Uses

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

type ModeInfo Uses

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 Uses

func (v ModeInfo) Bytes() []byte

Bytes writes a ModeInfo value to a byte slice.

type NotifyDataUnion Uses

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 Uses

func NotifyDataUnionCcNew(Cc CrtcChange) NotifyDataUnion

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

func NotifyDataUnionOcNew Uses

func NotifyDataUnionOcNew(Oc OutputChange) NotifyDataUnion

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

func NotifyDataUnionOpNew Uses

func NotifyDataUnionOpNew(Op OutputProperty) NotifyDataUnion

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

func NotifyDataUnionPcNew Uses

func NotifyDataUnionPcNew(Pc ProviderChange) NotifyDataUnion

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

func NotifyDataUnionPpNew Uses

func NotifyDataUnionPpNew(Pp ProviderProperty) NotifyDataUnion

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

func NotifyDataUnionRcNew Uses

func NotifyDataUnionRcNew(Rc ResourceChange) NotifyDataUnion

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

func (NotifyDataUnion) Bytes Uses

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 Uses

type NotifyEvent struct {
    Sequence uint16
    SubCode  byte
    U        NotifyDataUnion
}

func (NotifyEvent) Bytes Uses

func (v NotifyEvent) Bytes() []byte

Bytes writes a NotifyEvent value to a byte slice.

func (NotifyEvent) SequenceId Uses

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 Uses

func (v NotifyEvent) String() string

String is a rudimentary string representation of NotifyEvent.

type Output Uses

type Output uint32

func NewOutputId Uses

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

type OutputChange Uses

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 Uses

func (v OutputChange) Bytes() []byte

Bytes writes a OutputChange value to a byte slice.

type OutputProperty Uses

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

func (OutputProperty) Bytes Uses

func (v OutputProperty) Bytes() []byte

Bytes writes a OutputProperty value to a byte slice.

type Provider Uses

type Provider uint32

func NewProviderId Uses

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

type ProviderChange Uses

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

func (ProviderChange) Bytes Uses

func (v ProviderChange) Bytes() []byte

Bytes writes a ProviderChange value to a byte slice.

type ProviderProperty Uses

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

func (ProviderProperty) Bytes Uses

func (v ProviderProperty) Bytes() []byte

Bytes writes a ProviderProperty value to a byte slice.

type QueryOutputPropertyCookie Uses

type QueryOutputPropertyCookie struct {
    *xgb.Cookie
}

QueryOutputPropertyCookie is a cookie used only for QueryOutputProperty requests.

func QueryOutputProperty Uses

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 Uses

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 Uses

func (cook QueryOutputPropertyCookie) Reply() (*QueryOutputPropertyReply, error)

Reply blocks and returns the reply data for a QueryOutputProperty request.

type QueryOutputPropertyReply Uses

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 Uses

type QueryProviderPropertyCookie struct {
    *xgb.Cookie
}

QueryProviderPropertyCookie is a cookie used only for QueryProviderProperty requests.

func QueryProviderProperty Uses

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 Uses

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 Uses

func (cook QueryProviderPropertyCookie) Reply() (*QueryProviderPropertyReply, error)

Reply blocks and returns the reply data for a QueryProviderProperty request.

type QueryProviderPropertyReply Uses

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 Uses

type QueryVersionCookie struct {
    *xgb.Cookie
}

QueryVersionCookie is a cookie used only for QueryVersion requests.

func QueryVersion Uses

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 Uses

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 Uses

func (cook QueryVersionCookie) Reply() (*QueryVersionReply, error)

Reply blocks and returns the reply data for a QueryVersion request.

type QueryVersionReply Uses

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 Uses

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

func (RefreshRates) Bytes Uses

func (v RefreshRates) Bytes() []byte

Bytes writes a RefreshRates value to a byte slice.

type ResourceChange Uses

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

func (ResourceChange) Bytes Uses

func (v ResourceChange) Bytes() []byte

Bytes writes a ResourceChange value to a byte slice.

type ScreenChangeNotifyEvent Uses

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 Uses

func (v ScreenChangeNotifyEvent) Bytes() []byte

Bytes writes a ScreenChangeNotifyEvent value to a byte slice.

func (ScreenChangeNotifyEvent) SequenceId Uses

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 Uses

func (v ScreenChangeNotifyEvent) String() string

String is a rudimentary string representation of ScreenChangeNotifyEvent.

type ScreenSize Uses

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

func (ScreenSize) Bytes Uses

func (v ScreenSize) Bytes() []byte

Bytes writes a ScreenSize value to a byte slice.

type SelectInputCookie Uses

type SelectInputCookie struct {
    *xgb.Cookie
}

SelectInputCookie is a cookie used only for SelectInput requests.

func SelectInput Uses

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 Uses

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 Uses

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 Uses

type SetCrtcConfigCookie struct {
    *xgb.Cookie
}

SetCrtcConfigCookie is a cookie used only for SetCrtcConfig requests.

func SetCrtcConfig Uses

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 Uses

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 Uses

func (cook SetCrtcConfigCookie) Reply() (*SetCrtcConfigReply, error)

Reply blocks and returns the reply data for a SetCrtcConfig request.

type SetCrtcConfigReply Uses

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 Uses

type SetCrtcGammaCookie struct {
    *xgb.Cookie
}

SetCrtcGammaCookie is a cookie used only for SetCrtcGamma requests.

func SetCrtcGamma Uses

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 Uses

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 Uses

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 Uses

type SetCrtcTransformCookie struct {
    *xgb.Cookie
}

SetCrtcTransformCookie is a cookie used only for SetCrtcTransform requests.

func SetCrtcTransform Uses

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 Uses

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 Uses

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 Uses

type SetOutputPrimaryCookie struct {
    *xgb.Cookie
}

SetOutputPrimaryCookie is a cookie used only for SetOutputPrimary requests.

func SetOutputPrimary Uses

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 Uses

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 Uses

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 Uses

type SetPanningCookie struct {
    *xgb.Cookie
}

SetPanningCookie is a cookie used only for SetPanning requests.

func SetPanning Uses

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 Uses

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 Uses

func (cook SetPanningCookie) Reply() (*SetPanningReply, error)

Reply blocks and returns the reply data for a SetPanning request.

type SetPanningReply Uses

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 Uses

type SetProviderOffloadSinkCookie struct {
    *xgb.Cookie
}

SetProviderOffloadSinkCookie is a cookie used only for SetProviderOffloadSink requests.

func SetProviderOffloadSink Uses

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 Uses

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 Uses

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 Uses

type SetProviderOutputSourceCookie struct {
    *xgb.Cookie
}

SetProviderOutputSourceCookie is a cookie used only for SetProviderOutputSource requests.

func SetProviderOutputSource Uses

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 Uses

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 Uses

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 Uses

type SetScreenConfigCookie struct {
    *xgb.Cookie
}

SetScreenConfigCookie is a cookie used only for SetScreenConfig requests.

func SetScreenConfig Uses

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 Uses

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 Uses

func (cook SetScreenConfigCookie) Reply() (*SetScreenConfigReply, error)

Reply blocks and returns the reply data for a SetScreenConfig request.

type SetScreenConfigReply Uses

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 Uses

type SetScreenSizeCookie struct {
    *xgb.Cookie
}

SetScreenSizeCookie is a cookie used only for SetScreenSize requests.

func SetScreenSize Uses

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 Uses

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 Uses

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.

Package randr imports 3 packages (graph) and is imported by 15 packages. Updated 2016-11-06. Refresh now. Tools for package owners.