randr

package
v0.0.0-...-c8e43d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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 AddOutputMode

func AddOutputMode(conn *x.Conn, output Output, mode Mode)

func AddOutputModeChecked

func AddOutputModeChecked(conn *x.Conn, output Output, mode Mode) x.VoidCookie

func ChangeOutputProperty

func ChangeOutputProperty(conn *x.Conn, output Output, property x.Atom, type0 x.Atom, format, mode uint8, data []byte)

func ChangeOutputPropertyChecked

func ChangeOutputPropertyChecked(conn *x.Conn, output Output, property x.Atom, type0 x.Atom, format, mode uint8, data []byte) x.VoidCookie

func ConfigureOutputProperty

func ConfigureOutputProperty(conn *x.Conn, output Output, property x.Atom, pending, range0 bool, values []int32)

func ConfigureOutputPropertyChecked

func ConfigureOutputPropertyChecked(conn *x.Conn, output Output, property x.Atom, pending, range0 bool, values []int32) x.VoidCookie

func DeleteMonitor

func DeleteMonitor(conn *x.Conn, window x.Window, name x.Atom)

func DeleteMonitorChecked

func DeleteMonitorChecked(conn *x.Conn, window x.Window, name x.Atom) x.VoidCookie

func DeleteOutputMode

func DeleteOutputMode(conn *x.Conn, output Output, mode Mode)

func DeleteOutputModeChecked

func DeleteOutputModeChecked(conn *x.Conn, output Output, mode Mode) x.VoidCookie

func DeleteOutputProperty

func DeleteOutputProperty(conn *x.Conn, output Output, property x.Atom)

func DeleteOutputPropertyChecked

func DeleteOutputPropertyChecked(conn *x.Conn, output Output, property x.Atom) x.VoidCookie

func DestroyMode

func DestroyMode(conn *x.Conn, mode Mode)

func DestroyModeChecked

func DestroyModeChecked(conn *x.Conn, mode Mode) x.VoidCookie

func Ext

func Ext() *x.Extension

func SelectInput

func SelectInput(conn *x.Conn, window x.Window, enable uint16)

func SelectInputChecked

func SelectInputChecked(conn *x.Conn, window x.Window, enable uint16) x.VoidCookie

func SetCrtcGamma

func SetCrtcGamma(conn *x.Conn, crtc Crtc, red, green, blue []uint16)

func SetCrtcGammaChecked

func SetCrtcGammaChecked(conn *x.Conn, crtc Crtc, red, green, blue []uint16) x.VoidCookie

func SetCrtcTransform

func SetCrtcTransform(conn *x.Conn, crtc Crtc, transform *render.Transform, filter string, filterParams []render.Fixed)

func SetCrtcTransformChecked

func SetCrtcTransformChecked(conn *x.Conn, crtc Crtc, transform *render.Transform, filter string, filterParams []render.Fixed) x.VoidCookie

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 SetOutputPrimary

func SetOutputPrimary(conn *x.Conn, window x.Window, output Output)

func SetOutputPrimaryChecked

func SetOutputPrimaryChecked(conn *x.Conn, window x.Window, output Output) x.VoidCookie

func SetProviderOffloadSink

func SetProviderOffloadSink(conn *x.Conn, provider, sinkProvider Provider, configTimestamp x.Timestamp)

func SetProviderOffloadSinkChecked

func SetProviderOffloadSinkChecked(conn *x.Conn, provider, sinkProvider Provider, configTimestamp x.Timestamp) x.VoidCookie

func SetProviderOutputSource

func SetProviderOutputSource(conn *x.Conn, provider, sourceProvider Provider, configTimestamp x.Timestamp)

func SetProviderOutputSourceChecked

func SetProviderOutputSourceChecked(conn *x.Conn, provider, sourceProvider Provider, configTimestamp x.Timestamp) x.VoidCookie

func SetScreenSize

func SetScreenSize(conn *x.Conn, window x.Window, width, height uint16, mmWidth, mmHeight uint32)

func SetScreenSizeChecked

func SetScreenSizeChecked(conn *x.Conn, window x.Window, width, height uint16, mmWidth, mmHeight uint32) x.VoidCookie

Types

type CreateLeaseCookie

type CreateLeaseCookie x.SeqNum

type CreateModeCookie

type CreateModeCookie x.SeqNum

func CreateMode

func CreateMode(conn *x.Conn, window x.Window, modeInfo *ModeInfo) CreateModeCookie

func (CreateModeCookie) Reply

func (cookie CreateModeCookie) Reply(conn *x.Conn) (*CreateModeReply, error)

type CreateModeReply

type CreateModeReply struct {
	Mode Mode
}

type Crtc

type Crtc uint32

simple ('xcb', 'RandR', 'CRTC')

type CrtcChangeNotifyEvent

type CrtcChangeNotifyEvent struct {
	Timestamp     x.Timestamp
	Window        x.Window
	Crtc          Crtc
	Mode          Mode
	Rotation      uint16
	X, Y          int16
	Width, Height uint16
}

type GetCrtcGammaCookie

type GetCrtcGammaCookie x.SeqNum

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 GetCrtcGammaReply struct {
	Size  uint16
	Red   []uint16
	Green []uint16
	Blue  []uint16
}

type GetCrtcGammaSizeCookie

type GetCrtcGammaSizeCookie x.SeqNum

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

type GetCrtcInfoCookie x.SeqNum

func GetCrtcInfo

func GetCrtcInfo(conn *x.Conn, crtc Crtc, configTimestamp x.Timestamp) GetCrtcInfoCookie

func (GetCrtcInfoCookie) Reply

func (cookie GetCrtcInfoCookie) Reply(conn *x.Conn) (*GetCrtcInfoReply, error)

type GetCrtcInfoReply

type GetCrtcInfoReply struct {
	Status          uint8
	Timestamp       x.Timestamp
	X               int16
	Y               int16
	Width           uint16
	Height          uint16
	Mode            Mode
	Rotation        uint16
	Rotations       uint16
	Outputs         []Output
	PossibleOutputs []Output
}

type GetCrtcTransformCookie

type GetCrtcTransformCookie x.SeqNum

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

type GetMonitorsCookie x.SeqNum

func GetMonitors

func GetMonitors(conn *x.Conn, window x.Window, getActive bool) GetMonitorsCookie

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

type GetOutputInfoCookie x.SeqNum

func GetOutputInfo

func GetOutputInfo(conn *x.Conn, output Output, configTimestamp x.Timestamp) GetOutputInfoCookie

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

type GetOutputPrimaryCookie x.SeqNum

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

type GetOutputPropertyCookie x.SeqNum

func GetOutputProperty

func GetOutputProperty(conn *x.Conn, output Output, property, Type x.Atom, longOffset, longLength uint32, delete, pending bool) GetOutputPropertyCookie

func (GetOutputPropertyCookie) Reply

func (cookie GetOutputPropertyCookie) Reply(conn *x.Conn) (*GetOutputPropertyReply, error)

type GetOutputPropertyReply

type GetOutputPropertyReply struct {
	Format     byte
	Type       x.Atom
	BytesAfter uint32
	ValueLen   uint32
	Value      []byte
}

type GetPanningCookie

type GetPanningCookie x.SeqNum

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 GetPanningReply struct {
	Status    uint8
	Timestamp x.Timestamp
	Panning
}

type GetProviderInfoCookie

type GetProviderInfoCookie x.SeqNum

func GetProviderInfo

func GetProviderInfo(conn *x.Conn, provider Provider, configTimestamp x.Timestamp) GetProviderInfoCookie

func (GetProviderInfoCookie) Reply

func (cookie GetProviderInfoCookie) Reply(conn *x.Conn) (*GetProviderInfoReply, error)

type GetProviderInfoReply

type GetProviderInfoReply struct {
	Status                 uint8
	Timestamp              x.Timestamp
	Capabilities           uint32
	NumCrtcs               uint16
	NumOutputs             uint16
	NumAssociatedProviders uint16
	NameLen                uint16
	Crtcs                  []Crtc
	Outputs                []Output
	AssociatedProviders    []Provider
	AssociatedCapability   []uint32
	Name                   string
}

type GetProviderPropertyCookie

type GetProviderPropertyCookie x.SeqNum

type GetProvidersCookie

type GetProvidersCookie x.SeqNum

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 GetProvidersReply struct {
	Timestamp    x.Timestamp
	NumProviders uint16
	Providers    []Provider
}

type GetScreenInfoCookie

type GetScreenInfoCookie x.SeqNum

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

type GetScreenResourcesCookie x.SeqNum

func GetScreenResources

func GetScreenResources(conn *x.Conn, window x.Window) GetScreenResourcesCookie

func (GetScreenResourcesCookie) Reply

type GetScreenResourcesCurrentCookie

type GetScreenResourcesCurrentCookie x.SeqNum

func GetScreenResourcesCurrent

func GetScreenResourcesCurrent(conn *x.Conn, window x.Window) GetScreenResourcesCurrentCookie

func (GetScreenResourcesCurrentCookie) Reply

type GetScreenResourcesCurrentReply

type GetScreenResourcesCurrentReply GetScreenResourcesReply

type GetScreenResourcesReply

type GetScreenResourcesReply struct {
	Timestamp       x.Timestamp
	ConfigTimestamp x.Timestamp
	Crtcs           []Crtc
	Outputs         []Output // size: xgb.Pad((int(NumOutputs) * 4))
	Modes           []ModeInfo
}

type GetScreenSizeRangeCookie

type GetScreenSizeRangeCookie x.SeqNum

func GetScreenSizeRange

func GetScreenSizeRange(conn *x.Conn, window x.Window) GetScreenSizeRangeCookie

func (GetScreenSizeRangeCookie) Reply

type GetScreenSizeRangeReply

type GetScreenSizeRangeReply struct {
	MinWidth  uint16
	MinHeight uint16
	MaxWidth  uint16
	MaxHeight uint16
}

type Lease

type Lease uint32

simple ('xcb', 'RandR', 'LEASE')

type ListOutputPropertiesCookie

type ListOutputPropertiesCookie x.SeqNum

func ListOutputProperties

func ListOutputProperties(conn *x.Conn, output Output) ListOutputPropertiesCookie

func (ListOutputPropertiesCookie) Reply

type ListOutputPropertiesReply

type ListOutputPropertiesReply struct {
	NumAtoms uint16
	Atoms    []x.Atom
}

type ListProviderPropertiesCookie

type ListProviderPropertiesCookie x.SeqNum

func ListProviderProperties

func ListProviderProperties(conn *x.Conn, provider Provider) ListProviderPropertiesCookie

func (ListProviderPropertiesCookie) Reply

type ListProviderPropertiesReply

type ListProviderPropertiesReply struct {
	NumAtoms uint16
	Atoms    []x.Atom
}

type Mode

type Mode uint32

simple ('xcb', 'RandR', 'MODE')

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

type NotifyEvent struct {
	SubCode  uint8
	Sequence uint16
	Data     []byte
}

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 Output

type Output uint32

simple ('xcb', 'RandR', 'OUTPUT')

type OutputChangeNotifyEvent

type OutputChangeNotifyEvent struct {
	Timestamp       x.Timestamp
	ConfigTimestamp x.Timestamp
	Window          x.Window
	Output          Output
	Crtc            Crtc
	Mode            Mode
	Rotation        uint16
	Connection      uint8
	SubPixelOrder   uint8
}

type OutputPropertyNotifyEvent

type OutputPropertyNotifyEvent struct {
	Window    x.Window
	Output    Output
	Atom      x.Atom
	Timestamp x.Timestamp
	Status    uint8
}

type Panning

type Panning struct {
	Left, Top, Width, Height                         uint16
	TrackLeft, TrackTop, TrackWidth, TrackHeight     uint16
	BorderLeft, BorderTop, BorderRight, BorderBottom int16
}

size: 6 * 4b

type Provider

type Provider uint32

simple ('xcb', 'RandR', 'PROVIDER')

type QueryOutputPropertyCookie

type QueryOutputPropertyCookie x.SeqNum

func QueryOutputProperty

func QueryOutputProperty(conn *x.Conn, output Output, property x.Atom) QueryOutputPropertyCookie

func (QueryOutputPropertyCookie) Reply

type QueryOutputPropertyReply

type QueryOutputPropertyReply struct {
	Pending     bool
	Range       bool
	Immutable   bool
	ValidValues []int32
}

type QueryProviderPropertyCookie

type QueryProviderPropertyCookie x.SeqNum

type QueryVersionCookie

type QueryVersionCookie x.SeqNum

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 QueryVersionReply struct {
	ServerMajorVersion uint32
	ServerMinorVersion uint32
}

type RefreshRates

type RefreshRates struct {
	NRates uint16
	Rates  []uint16
}

size: ?

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

type SetCrtcConfigCookie x.SeqNum

func SetCrtcConfig

func SetCrtcConfig(conn *x.Conn, crtc Crtc, timestamp, configTimestamp x.Timestamp, X, y int16, mode Mode, rotation uint16, outputs []Output) SetCrtcConfigCookie

func (SetCrtcConfigCookie) Reply

func (cookie SetCrtcConfigCookie) Reply(conn *x.Conn) (*SetCrtcConfigReply, error)

type SetCrtcConfigReply

type SetCrtcConfigReply struct {
	Status    uint8
	Timestamp x.Timestamp
}

type SetPanningCookie

type SetPanningCookie x.SeqNum

func SetPanning

func SetPanning(conn *x.Conn, crtc Crtc, timestamp x.Timestamp, panning *Panning) SetPanningCookie

func (SetPanningCookie) Reply

func (cookie SetPanningCookie) Reply(conn *x.Conn) (*SetPanningReply, error)

type SetPanningReply

type SetPanningReply struct {
	Status    uint8
	Timestamp x.Timestamp
}

type SetScreenConfigCookie

type SetScreenConfigCookie x.SeqNum

func SetScreenConfig

func SetScreenConfig(conn *x.Conn, window x.Window, timestamp x.Timestamp, configTimestamp x.Timestamp, sizeID uint16, rotation uint16, rate uint16) SetScreenConfigCookie

func (SetScreenConfigCookie) Reply

func (cookie SetScreenConfigCookie) Reply(conn *x.Conn) (*SetScreenConfigReply, error)

type SetScreenConfigReply

type SetScreenConfigReply struct {
	Status          uint8
	NewTimestamp    x.Timestamp
	ConfigTimestamp x.Timestamp
	Root            x.Window
	SubpixelOrder   uint16
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL