Documentation ¶
Index ¶
- Constants
- func AddOutputMode(conn *x.Conn, output Output, mode Mode)
- func AddOutputModeChecked(conn *x.Conn, output Output, mode Mode) x.VoidCookie
- func ChangeOutputProperty(conn *x.Conn, output Output, property x.Atom, type0 x.Atom, format, mode uint8, ...)
- func ChangeOutputPropertyChecked(conn *x.Conn, output Output, property x.Atom, type0 x.Atom, format, mode uint8, ...) x.VoidCookie
- func ConfigureOutputProperty(conn *x.Conn, output Output, property x.Atom, pending, range0 bool, ...)
- func ConfigureOutputPropertyChecked(conn *x.Conn, output Output, property x.Atom, pending, range0 bool, ...) x.VoidCookie
- func DeleteMonitor(conn *x.Conn, window x.Window, name x.Atom)
- func DeleteMonitorChecked(conn *x.Conn, window x.Window, name x.Atom) x.VoidCookie
- func DeleteOutputMode(conn *x.Conn, output Output, mode Mode)
- func DeleteOutputModeChecked(conn *x.Conn, output Output, mode Mode) x.VoidCookie
- func DeleteOutputProperty(conn *x.Conn, output Output, property x.Atom)
- func DeleteOutputPropertyChecked(conn *x.Conn, output Output, property x.Atom) x.VoidCookie
- func DestroyMode(conn *x.Conn, mode Mode)
- func DestroyModeChecked(conn *x.Conn, mode Mode) x.VoidCookie
- func Ext() *x.Extension
- func SelectInput(conn *x.Conn, window x.Window, enable uint16)
- func SelectInputChecked(conn *x.Conn, window x.Window, enable uint16) x.VoidCookie
- func SetCrtcGamma(conn *x.Conn, crtc Crtc, red, green, blue []uint16)
- func SetCrtcGammaChecked(conn *x.Conn, crtc Crtc, red, green, blue []uint16) x.VoidCookie
- func SetCrtcTransform(conn *x.Conn, crtc Crtc, transform *render.Transform, filter string, ...)
- func SetCrtcTransformChecked(conn *x.Conn, crtc Crtc, transform *render.Transform, filter string, ...) x.VoidCookie
- func SetMonitor(conn *x.Conn, window x.Window, monitorInfo *MonitorInfo)
- func SetMonitorChecked(conn *x.Conn, window x.Window, monitorInfo *MonitorInfo) x.VoidCookie
- func SetOutputPrimary(conn *x.Conn, window x.Window, output Output)
- func SetOutputPrimaryChecked(conn *x.Conn, window x.Window, output Output) x.VoidCookie
- func SetProviderOffloadSink(conn *x.Conn, provider, sinkProvider Provider, configTimestamp x.Timestamp)
- func SetProviderOffloadSinkChecked(conn *x.Conn, provider, sinkProvider Provider, configTimestamp x.Timestamp) x.VoidCookie
- func SetProviderOutputSource(conn *x.Conn, provider, sourceProvider Provider, configTimestamp x.Timestamp)
- func SetProviderOutputSourceChecked(conn *x.Conn, provider, sourceProvider Provider, configTimestamp x.Timestamp) x.VoidCookie
- func SetScreenSize(conn *x.Conn, window x.Window, width, height uint16, mmWidth, mmHeight uint32)
- func SetScreenSizeChecked(conn *x.Conn, window x.Window, width, height uint16, mmWidth, mmHeight uint32) x.VoidCookie
- type CreateLeaseCookie
- type CreateModeCookie
- type CreateModeReply
- type Crtc
- type CrtcChangeNotifyEvent
- type GetCrtcGammaCookie
- type GetCrtcGammaReply
- type GetCrtcGammaSizeCookie
- type GetCrtcGammaSizeReply
- type GetCrtcInfoCookie
- type GetCrtcInfoReply
- type GetCrtcTransformCookie
- type GetCrtcTransformReply
- type GetMonitorsCookie
- type GetMonitorsReply
- type GetOutputInfoCookie
- type GetOutputInfoReply
- type GetOutputPrimaryCookie
- type GetOutputPrimaryReply
- type GetOutputPropertyCookie
- type GetOutputPropertyReply
- type GetPanningCookie
- type GetPanningReply
- type GetProviderInfoCookie
- type GetProviderInfoReply
- type GetProviderPropertyCookie
- type GetProvidersCookie
- type GetProvidersReply
- type GetScreenInfoCookie
- type GetScreenInfoReply
- type GetScreenResourcesCookie
- type GetScreenResourcesCurrentCookie
- type GetScreenResourcesCurrentReply
- type GetScreenResourcesReply
- type GetScreenSizeRangeCookie
- type GetScreenSizeRangeReply
- type Lease
- type ListOutputPropertiesCookie
- type ListOutputPropertiesReply
- type ListProviderPropertiesCookie
- type ListProviderPropertiesReply
- type Mode
- type ModeInfo
- type MonitorInfo
- type NotifyEvent
- func (e *NotifyEvent) NewCrtcChangeNotifyEvent() (*CrtcChangeNotifyEvent, error)
- func (e *NotifyEvent) NewOutputChangeNotifyEvent() (*OutputChangeNotifyEvent, error)
- func (e *NotifyEvent) NewOutputPropertyNotifyEvent() (*OutputPropertyNotifyEvent, error)
- func (e *NotifyEvent) NewResourceChangeNotifyEvent() (*ResourceChangeNotifyEvent, error)
- type Output
- type OutputChangeNotifyEvent
- type OutputPropertyNotifyEvent
- type Panning
- type Provider
- type QueryOutputPropertyCookie
- type QueryOutputPropertyReply
- type QueryProviderPropertyCookie
- type QueryVersionCookie
- type QueryVersionReply
- type RefreshRates
- type ResourceChangeNotifyEvent
- type ScreenChangeNotifyEvent
- type ScreenSize
- type SetCrtcConfigCookie
- type SetCrtcConfigReply
- type SetPanningCookie
- type SetPanningReply
- type SetScreenConfigCookie
- type SetScreenConfigReply
Constants ¶
View Source
const ( RotationRotate0 = 1 RotationRotate90 = 2 RotationRotate180 = 4 RotationRotate270 = 8 RotationReflectX = 16 RotationReflectY = 32 )
enum Rotation
View Source
const ( SetConfigSuccess = 0 SetConfigInvalidConfigTime = 1 SetConfigInvalidTime = 2 SetConfigFailed = 3 )
enum SetConfig
View Source
const ( NotifyMaskScreenChange = 1 NotifyMaskCrtcChange = 2 NotifyMaskOutputChange = 4 NotifyMaskOutputProperty = 8 NotifyMaskProviderChange = 16 NotifyMaskProviderProperty = 32 NotifyMaskResourceChange = 64 NotifyMaskLease = 128 )
enum NotifyMask
View Source
const ( ModeFlagHsyncPositive = 1 ModeFlagHsyncNegative = 2 ModeFlagVsyncPositive = 4 ModeFlagVsyncNegative = 8 ModeFlagInterlace = 16 ModeFlagDoubleScan = 32 ModeFlagCsync = 64 ModeFlagCsyncPositive = 128 ModeFlagCsyncNegative = 256 ModeFlagHskewPresent = 512 ModeFlagBcast = 1024 ModeFlagPixelMultiplex = 2048 ModeFlagDoubleClock = 4096 ModeFlagHalveClock = 8192 )
enum ModeFlag
View Source
const ( ConnectionConnected = 0 ConnectionDisconnected = 1 ConnectionUnknown = 2 )
enum Connection
View Source
const ( TransformUnit = 1 TransformScaleUp = 2 TransformScaleDown = 4 TransformProjective = 8 )
enum Transform
View Source
const ( ProviderCapabilitySourceOutput = 1 ProviderCapabilitySinkOutput = 2 ProviderCapabilitySourceOffload = 4 ProviderCapabilitySinkOffload = 8 )
enum ProviderCapability
View Source
const ( NotifyCrtcChange = 0 NotifyOutputChange = 1 NotifyOutputProperty = 2 NotifyProviderChange = 3 NotifyProviderProperty = 4 NotifyResourceChange = 5 NotifyLease = 6 )
enum Notify
View Source
const ( StatusSuccess = 0 StatusInvalidConfigTime = 1 StatusInvalidTime = 2 StatusFailed = 3 )
View Source
const AddOutputModeOpcode = 18
View Source
const BadCrtcErrorCode = 1
View Source
const BadModeErrorCode = 2
View Source
const BadOutputErrorCode = 0
View Source
const BadProviderErrorCode = 3
View Source
const ChangeOutputPropertyOpcode = 13
View Source
const ChangeProviderPropertyOpcode = 39
View Source
const ConfigureOutputPropertyOpcode = 12
View Source
const ConfigureProviderPropertyOpcode = 38
View Source
const CreateLeaseOpcode = 45
View Source
const CreateModeOpcode = 16
View Source
const DeleteMonitorOpcode = 44
View Source
const DeleteOutputModeOpcode = 19
View Source
const DeleteOutputPropertyOpcode = 14
View Source
const DeleteProviderPropertyOpcode = 40
View Source
const DestroyModeOpcode = 17
View Source
const FreeLeaseOpcode = 46
View Source
const GetCrtcGammaOpcode = 23
View Source
const GetCrtcGammaSizeOpcode = 22
View Source
const GetCrtcInfoOpcode = 20
View Source
const GetCrtcTransformOpcode = 27
View Source
const GetMonitorsOpcode = 42
View Source
const GetOutputInfoOpcode = 9
View Source
const GetOutputPrimaryOpcode = 31
View Source
const GetOutputPropertyOpcode = 15
View Source
const GetPanningOpcode = 28
View Source
const GetProviderInfoOpcode = 33
View Source
const GetProviderPropertyOpcode = 41
View Source
const GetProvidersOpcode = 32
View Source
const GetScreenInfoOpcode = 5
View Source
const GetScreenResourcesCurrentOpcode = 25
View Source
const GetScreenResourcesOpcode = 8
View Source
const GetScreenSizeRangeOpcode = 6
View Source
const ListOutputPropertiesOpcode = 10
View Source
const ListProviderPropertiesOpcode = 36
View Source
const MajorVersion = 1
_ns.ext_name: RandR
View Source
const MinorVersion = 6
View Source
const NotifyEventCode = 1
View Source
const QueryOutputPropertyOpcode = 11
View Source
const QueryProviderPropertyOpcode = 37
View Source
const QueryVersionOpcode = 0
View Source
const ScreenChangeNotifyEventCode = 0
View Source
const SelectInputOpcode = 4
View Source
const SetCrtcConfigOpcode = 21
View Source
const SetCrtcGammaOpcode = 24
View Source
const SetCrtcTransformOpcode = 26
View Source
const SetMonitorOpcode = 43
View Source
const SetOutputPrimaryOpcode = 30
View Source
const SetPanningOpcode = 29
View Source
const SetProviderOffloadSinkOpcode = 34
View Source
const SetProviderOutputSourceOpcode = 35
View Source
const SetScreenConfigOpcode = 2
View Source
const SetScreenSizeOpcode = 7
Variables ¶
This section is empty.
Functions ¶
func AddOutputModeChecked ¶
func ChangeOutputProperty ¶
func ConfigureOutputProperty ¶
func DeleteMonitorChecked ¶
func DeleteOutputModeChecked ¶
func DestroyMode ¶
func DestroyModeChecked ¶
func DestroyModeChecked(conn *x.Conn, mode Mode) x.VoidCookie
func SelectInputChecked ¶
func SetCrtcGammaChecked ¶
func SetCrtcTransform ¶
func SetCrtcTransformChecked ¶
func SetMonitor ¶
func SetMonitor(conn *x.Conn, window x.Window, monitorInfo *MonitorInfo)
func SetMonitorChecked ¶
func SetMonitorChecked(conn *x.Conn, window x.Window, monitorInfo *MonitorInfo) x.VoidCookie
func SetOutputPrimaryChecked ¶
func SetProviderOffloadSink ¶
func SetProviderOutputSource ¶
func SetScreenSize ¶
func SetScreenSizeChecked ¶
Types ¶
type CreateLeaseCookie ¶
type CreateModeCookie ¶
func CreateMode ¶
func (CreateModeCookie) Reply ¶
func (cookie CreateModeCookie) Reply(conn *x.Conn) (*CreateModeReply, error)
type CreateModeReply ¶
type CreateModeReply struct {
Mode Mode
}
type CrtcChangeNotifyEvent ¶
type GetCrtcGammaCookie ¶
func GetCrtcGamma ¶
func GetCrtcGamma(conn *x.Conn, crtc Crtc) GetCrtcGammaCookie
func (GetCrtcGammaCookie) Reply ¶
func (cookie GetCrtcGammaCookie) Reply(conn *x.Conn) (*GetCrtcGammaReply, error)
type GetCrtcGammaReply ¶
type GetCrtcGammaSizeCookie ¶
func GetCrtcGammaSize ¶
func GetCrtcGammaSize(conn *x.Conn, crtc Crtc) GetCrtcGammaSizeCookie
func (GetCrtcGammaSizeCookie) Reply ¶
func (cookie GetCrtcGammaSizeCookie) Reply(conn *x.Conn) (*GetCrtcGammaSizeReply, error)
type GetCrtcGammaSizeReply ¶
type GetCrtcGammaSizeReply struct {
Size uint16
}
type GetCrtcInfoCookie ¶
func GetCrtcInfo ¶
func (GetCrtcInfoCookie) Reply ¶
func (cookie GetCrtcInfoCookie) Reply(conn *x.Conn) (*GetCrtcInfoReply, error)
type GetCrtcInfoReply ¶
type GetCrtcTransformCookie ¶
func GetCrtcTransform ¶
func GetCrtcTransform(conn *x.Conn, crtc Crtc) GetCrtcTransformCookie
func (GetCrtcTransformCookie) Reply ¶
func (cookie GetCrtcTransformCookie) Reply(conn *x.Conn) (*GetCrtcTransformReply, error)
type GetCrtcTransformReply ¶
type GetCrtcTransformReply struct { PendingTransform render.Transform HasTransform bool CurrentTransform render.Transform PendingLen uint16 PendingNParams uint16 CurrentLen uint16 CurrentNParams uint16 PendingFilter string PendingParams []render.Fixed CurrentFilter string CurrentParams []render.Fixed }
type GetMonitorsCookie ¶
func GetMonitors ¶
func (GetMonitorsCookie) Reply ¶
func (cookie GetMonitorsCookie) Reply(conn *x.Conn) (*GetMonitorsReply, error)
type GetMonitorsReply ¶
type GetMonitorsReply struct { Timestamp x.Timestamp NMonitors uint32 NOutputs uint32 Monitors []MonitorInfo }
type GetOutputInfoCookie ¶
func GetOutputInfo ¶
func (GetOutputInfoCookie) Reply ¶
func (cookie GetOutputInfoCookie) Reply(conn *x.Conn) (*GetOutputInfoReply, error)
type GetOutputInfoReply ¶
type GetOutputInfoReply struct { Status uint8 Timestamp x.Timestamp Crtc Crtc MmWidth uint32 MmHeight uint32 Connection uint8 SubPixelOrder uint8 NumPreferred uint16 Crtcs []Crtc Modes []Mode Clones []Output Name string }
func (*GetOutputInfoReply) GetPreferredMode ¶
func (r *GetOutputInfoReply) GetPreferredMode() Mode
type GetOutputPrimaryCookie ¶
func GetOutputPrimary ¶
func GetOutputPrimary(conn *x.Conn, window x.Window) GetOutputPrimaryCookie
func (GetOutputPrimaryCookie) Reply ¶
func (cookie GetOutputPrimaryCookie) Reply(conn *x.Conn) (*GetOutputPrimaryReply, error)
type GetOutputPrimaryReply ¶
type GetOutputPrimaryReply struct {
Output Output
}
type GetOutputPropertyCookie ¶
func GetOutputProperty ¶
func (GetOutputPropertyCookie) Reply ¶
func (cookie GetOutputPropertyCookie) Reply(conn *x.Conn) (*GetOutputPropertyReply, error)
type GetOutputPropertyReply ¶
type GetPanningCookie ¶
func GetPanning ¶
func GetPanning(conn *x.Conn, crtc Crtc) GetPanningCookie
func (GetPanningCookie) Reply ¶
func (cookie GetPanningCookie) Reply(conn *x.Conn) (*GetPanningReply, error)
type GetPanningReply ¶
type GetProviderInfoCookie ¶
func GetProviderInfo ¶
func (GetProviderInfoCookie) Reply ¶
func (cookie GetProviderInfoCookie) Reply(conn *x.Conn) (*GetProviderInfoReply, error)
type GetProviderInfoReply ¶
type GetProvidersCookie ¶
func GetProviders ¶
func GetProviders(conn *x.Conn, window x.Window) GetProvidersCookie
func (GetProvidersCookie) Reply ¶
func (cookie GetProvidersCookie) Reply(conn *x.Conn) (*GetProvidersReply, error)
type GetProvidersReply ¶
type GetScreenInfoCookie ¶
func GetScreenInfo ¶
func GetScreenInfo(conn *x.Conn, window x.Window) GetScreenInfoCookie
func (GetScreenInfoCookie) Reply ¶
func (cookie GetScreenInfoCookie) Reply(conn *x.Conn) (*GetScreenInfoReply, error)
type GetScreenInfoReply ¶
type GetScreenInfoReply struct { Rotations uint8 Root x.Window Timestamp x.Timestamp ConfigTimestamp x.Timestamp NSizes uint16 SizeID uint16 Rotation uint16 Rate uint16 NInfo uint16 // useless Sizes []ScreenSize Rates []RefreshRates }
type GetScreenResourcesCookie ¶
func GetScreenResources ¶
func GetScreenResources(conn *x.Conn, window x.Window) GetScreenResourcesCookie
func (GetScreenResourcesCookie) Reply ¶
func (cookie GetScreenResourcesCookie) Reply(conn *x.Conn) (*GetScreenResourcesReply, error)
type GetScreenResourcesCurrentCookie ¶
func GetScreenResourcesCurrent ¶
func GetScreenResourcesCurrent(conn *x.Conn, window x.Window) GetScreenResourcesCurrentCookie
func (GetScreenResourcesCurrentCookie) Reply ¶
func (cookie GetScreenResourcesCurrentCookie) Reply(conn *x.Conn) (*GetScreenResourcesCurrentReply, error)
type GetScreenResourcesCurrentReply ¶
type GetScreenResourcesCurrentReply GetScreenResourcesReply
type GetScreenResourcesReply ¶
type GetScreenSizeRangeCookie ¶
func GetScreenSizeRange ¶
func GetScreenSizeRange(conn *x.Conn, window x.Window) GetScreenSizeRangeCookie
func (GetScreenSizeRangeCookie) Reply ¶
func (cookie GetScreenSizeRangeCookie) Reply(conn *x.Conn) (*GetScreenSizeRangeReply, error)
type GetScreenSizeRangeReply ¶
type ListOutputPropertiesCookie ¶
func ListOutputProperties ¶
func ListOutputProperties(conn *x.Conn, output Output) ListOutputPropertiesCookie
func (ListOutputPropertiesCookie) Reply ¶
func (cookie ListOutputPropertiesCookie) Reply(conn *x.Conn) (*ListOutputPropertiesReply, error)
type ListOutputPropertiesReply ¶
type ListOutputPropertiesReply struct { NumAtoms uint16 Atoms []x.Atom }
type ListProviderPropertiesCookie ¶
func ListProviderProperties ¶
func ListProviderProperties(conn *x.Conn, provider Provider) ListProviderPropertiesCookie
func (ListProviderPropertiesCookie) Reply ¶
func (cookie ListProviderPropertiesCookie) Reply(conn *x.Conn) (*ListProviderPropertiesReply, error)
type ListProviderPropertiesReply ¶
type ListProviderPropertiesReply struct { NumAtoms uint16 Atoms []x.Atom }
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 Name string ModeFlags uint32 // contains filtered or unexported fields }
size: 8 * 4b
type MonitorInfo ¶
type MonitorInfo struct { Name x.Atom Primary bool Automatic bool NOutputs uint16 X, Y int16 Width, Height uint16 // pixels MmWidth, MmHeight uint32 // in millimeters Outputs []Output }
size: (6 + NOutputs) * 4b
type NotifyEvent ¶
func NewNotifyEvent ¶
func NewNotifyEvent(data []byte) (*NotifyEvent, error)
func (*NotifyEvent) NewCrtcChangeNotifyEvent ¶
func (e *NotifyEvent) NewCrtcChangeNotifyEvent() (*CrtcChangeNotifyEvent, error)
func (*NotifyEvent) NewOutputChangeNotifyEvent ¶
func (e *NotifyEvent) NewOutputChangeNotifyEvent() (*OutputChangeNotifyEvent, error)
func (*NotifyEvent) NewOutputPropertyNotifyEvent ¶
func (e *NotifyEvent) NewOutputPropertyNotifyEvent() (*OutputPropertyNotifyEvent, error)
func (*NotifyEvent) NewResourceChangeNotifyEvent ¶
func (e *NotifyEvent) NewResourceChangeNotifyEvent() (*ResourceChangeNotifyEvent, error)
type OutputChangeNotifyEvent ¶
type Panning ¶
type Panning struct {
Left, Top, Width, Height uint16
TrackLeft, TrackTop, TrackWidth, TrackHeight uint16
BorderLeft, BorderTop, BorderRight, BorderBottom int16
}
size: 6 * 4b
type QueryOutputPropertyCookie ¶
func QueryOutputProperty ¶
func (QueryOutputPropertyCookie) Reply ¶
func (cookie QueryOutputPropertyCookie) Reply(conn *x.Conn) (*QueryOutputPropertyReply, error)
type QueryVersionCookie ¶
func QueryVersion ¶
func QueryVersion(conn *x.Conn, clientMajorVersion, clientMinorVersion uint32) QueryVersionCookie
func (QueryVersionCookie) Reply ¶
func (cookie QueryVersionCookie) Reply(conn *x.Conn) (*QueryVersionReply, error)
type QueryVersionReply ¶
type ResourceChangeNotifyEvent ¶
type ResourceChangeNotifyEvent struct { Timestamp x.Timestamp Window x.Window }
type ScreenChangeNotifyEvent ¶
type ScreenChangeNotifyEvent struct { Rotation uint8 Sequence uint16 Timestamp x.Timestamp ConfigTimestamp x.Timestamp Root x.Window RequestWindow x.Window SizeID uint16 SubpixelOrder uint16 Width uint16 Height uint16 MmWidth uint16 MmHeight uint16 }
func NewScreenChangeNotifyEvent ¶
func NewScreenChangeNotifyEvent(data []byte) (*ScreenChangeNotifyEvent, error)
type ScreenSize ¶
type ScreenSize struct { Width uint16 // pixels Height uint16 MWidth uint16 // millimeters MHeight uint16 }
size: 2 * 4b
type SetCrtcConfigCookie ¶
func SetCrtcConfig ¶
func (SetCrtcConfigCookie) Reply ¶
func (cookie SetCrtcConfigCookie) Reply(conn *x.Conn) (*SetCrtcConfigReply, error)
type SetCrtcConfigReply ¶
type SetCrtcConfigReply struct { Status uint8 Timestamp x.Timestamp }
type SetPanningCookie ¶
func SetPanning ¶
func (SetPanningCookie) Reply ¶
func (cookie SetPanningCookie) Reply(conn *x.Conn) (*SetPanningReply, error)
type SetPanningReply ¶
type SetPanningReply struct { Status uint8 Timestamp x.Timestamp }
type SetScreenConfigCookie ¶
func SetScreenConfig ¶
func (SetScreenConfigCookie) Reply ¶
func (cookie SetScreenConfigCookie) Reply(conn *x.Conn) (*SetScreenConfigReply, error)
type SetScreenConfigReply ¶
Click to show internal directories.
Click to hide internal directories.