Documentation
¶
Overview ¶
Package headless is a backend with virtual outputs rendered in software and synthetic input devices, for tests and the compositor-in-the-loop harness.
Index ¶
- type Backend
- func (b *Backend) AddNamedOutput(name string, modes ...backend.Mode) (*Output, error)
- func (b *Backend) AddOutput(modes ...backend.Mode) (*Output, error)
- func (b *Backend) Close() error
- func (b *Backend) EnableAdaptiveSync()
- func (b *Backend) InheritFrames()
- func (b *Backend) Keyboard() *Keyboard
- func (b *Backend) Outputs() []*Output
- func (b *Backend) PlugKeyboard(name string) (*Keyboard, error)
- func (b *Backend) Pointer() *Pointer
- func (b *Backend) RefuseDepth10()
- func (b *Backend) RefuseHDR()
- func (b *Backend) RefuseOverlayFlips(refuse bool)
- func (b *Backend) RefuseWorkingSpace()
- func (b *Backend) RemoveOutput(o *Output) error
- func (b *Backend) Renderer() render.Renderer
- func (b *Backend) SetCursorPlanes(size image.Point) error
- func (b *Backend) SetOverlayPlanes(n int, t gpu.ScanoutTarget) error
- func (b *Backend) Start(h backend.Handler) error
- func (b *Backend) Switches() *Switches
- func (b *Backend) Touch() *Touch
- type ColorSets
- type Cursor
- func (c *Cursor) BeginCursor() (backend.Frame, error)
- func (c *Cursor) Commits() uint64
- func (c *Cursor) Copies() uint64
- func (c *Cursor) CursorSize() image.Point
- func (c *Cursor) HideCursor() error
- func (c *Cursor) Images() uint64
- func (c *Cursor) LoadCursor(pix []byte, stride int, size, hotspot image.Point) error
- func (c *Cursor) MoveCursor(at image.Point) error
- func (c *Cursor) Moves() uint64
- func (c *Cursor) Pixels() []byte
- func (c *Cursor) Position() image.Point
- func (c *Cursor) ReadsBack()
- func (c *Cursor) Refuse(err error)
- func (c *Cursor) SetCursor(hotspot image.Point) error
- func (c *Cursor) Visible() bool
- type Keyboard
- type Output
- func (o *Output) AbortFrame()
- func (o *Output) AdaptiveSync() bool
- func (o *Output) AdaptiveSyncCapable() bool
- func (o *Output) AllowScanout(t gpu.ScanoutTarget)
- func (o *Output) BeginFrame() (backend.Frame, error)
- func (o *Output) CapFrameRate(hz int)
- func (o *Output) ColorSets() ColorSets
- func (o *Output) ColorTransform() backend.Matrix
- func (o *Output) Commit(s backend.OutputState) error
- func (o *Output) ContentType() wm.ContentType
- func (o *Output) Cursor() *Cursor
- func (o *Output) CursorPlane() (backend.CursorPlane, error)
- func (o *Output) Degamma() []uint16
- func (o *Output) DegammaSize() int
- func (o *Output) Description() string
- func (o *Output) EnableColorTransform()
- func (o *Output) EnableHardwareClock()
- func (o *Output) ExpectFrameWork(pixels int)
- func (o *Output) FailCommits(err error)
- func (o *Output) FailPresents(err error)
- func (o *Output) FillFrame(filled bool)
- func (o *Output) FillsFrame() bool
- func (o *Output) FlipOverlays() (backend.OverlayFlip, error)
- func (o *Output) ForgetScanout(backend.ScanoutKey) error
- func (o *Output) FrameOwed() bool
- func (o *Output) Frames() uint64
- func (o *Output) Gamma() []uint16
- func (o *Output) GammaSize() int
- func (o *Output) HDRCapabilities() (edid.HDR, error)
- func (o *Output) HDRCommits() uint64
- func (o *Output) HasColorTransform() bool
- func (*Output) Identity() edid.Info
- func (o *Output) Inherited() bool
- func (o *Output) LastDamage() render.Region
- func (o *Output) LoseDeviceInFrame()
- func (o *Output) Modes() []backend.Mode
- func (o *Output) Name() string
- func (o *Output) OverlayFlips() uint64
- func (o *Output) OverlayPlanes() int
- func (o *Output) OverlayTarget() gpu.ScanoutTarget
- func (o *Output) PhysicalSize() image.Point
- func (o *Output) Present(damage render.Region) error
- func (o *Output) Presents() uint64
- func (o *Output) Primary() (*soft.Buffer, error)
- func (o *Output) ScannedAt() backend.Placement
- func (o *Output) Scanout(_ backend.ScanoutKey, d gpu.DMABUF, at backend.Placement, release func() error, ...) (bool, error)
- func (o *Output) ScanoutFormats() gpu.ScanoutTarget
- func (o *Output) Scanouts() uint64
- func (o *Output) ScheduleFrame() error
- func (o *Output) SetAdaptiveSync(on bool) error
- func (o *Output) SetColorTransform(m backend.Matrix) error
- func (o *Output) SetContentType(t wm.ContentType)
- func (o *Output) SetDegamma(ramps []uint16) error
- func (o *Output) SetDegammaSize(n int)
- func (o *Output) SetGamma(ramps []uint16) error
- func (o *Output) SetGammaSize(n int)
- func (o *Output) SetOverlays(layers []backend.Overlay) error
- func (o *Output) ShownOverlays() []backend.Placement
- func (o *Output) ShowsClientBuffer() bool
- func (o *Output) Snapshot() (*soft.Buffer, error)
- func (o *Output) Stalled() bool
- func (o *Output) State() backend.OutputState
- func (o *Output) TakePresents(n int)
- func (o *Output) Takeover() *soft.Buffer
- func (o *Output) TearFrame(tear bool)
- func (o *Output) TearsFrames() bool
- func (o *Output) TestOverlays(layers []backend.Overlay) uint
- func (o *Output) Torn() uint64
- type Pointer
- func (p *Pointer) Axis(orientation backend.Orientation, source backend.AxisSource, value float64, ...) error
- func (p *Pointer) Button(button uint32, pressed bool) error
- func (d *Pointer) Capabilities() backend.Capability
- func (p *Pointer) Frame() error
- func (p *Pointer) GestureBegin(g backend.Gesture, fingers uint32) error
- func (p *Pointer) GestureEnd(g backend.Gesture, cancelled bool) error
- func (p *Pointer) GestureEndAt(at time.Duration, g backend.Gesture, cancelled bool) error
- func (p *Pointer) Move(dx, dy float64) error
- func (p *Pointer) MoveTo(o backend.Output, x, y float64) error
- func (d *Pointer) Name() string
- func (p *Pointer) Pinch(dx, dy, scale, rotation float64) error
- func (p *Pointer) Swipe(dx, dy float64) error
- func (p *Pointer) SwipeAt(at time.Duration, dx, dy float64) error
- type Switches
- type Touch
- func (t *Touch) Cancel(id int32) error
- func (d *Touch) Capabilities() backend.Capability
- func (t *Touch) Down(id int32, o backend.Output, x, y float64) error
- func (t *Touch) DownAt(at time.Duration, id int32, o backend.Output, x, y float64) error
- func (t *Touch) Frame() error
- func (t *Touch) Motion(id int32, x, y float64) error
- func (t *Touch) MotionAt(at time.Duration, id int32, x, y float64) error
- func (d *Touch) Name() string
- func (t *Touch) Up(id int32) error
- func (t *Touch) UpAt(at time.Duration, id int32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func (*Backend) AddNamedOutput ¶
func (*Backend) EnableAdaptiveSync ¶
func (b *Backend) EnableAdaptiveSync()
func (*Backend) InheritFrames ¶
func (b *Backend) InheritFrames()
func (*Backend) RefuseDepth10 ¶
func (b *Backend) RefuseDepth10()
func (*Backend) RefuseOverlayFlips ¶
func (*Backend) RefuseWorkingSpace ¶
func (b *Backend) RefuseWorkingSpace()
func (*Backend) RemoveOutput ¶
func (*Backend) SetOverlayPlanes ¶
func (b *Backend) SetOverlayPlanes(n int, t gpu.ScanoutTarget) error
type Cursor ¶
type Cursor struct {
// contains filtered or unexported fields
}
func (*Cursor) CursorSize ¶
func (*Cursor) HideCursor ¶
func (*Cursor) LoadCursor ¶
type Keyboard ¶
type Keyboard struct {
// contains filtered or unexported fields
}
func (*Keyboard) Capabilities ¶
func (d *Keyboard) Capabilities() backend.Capability
type Output ¶
type Output struct {
// contains filtered or unexported fields
}
func (*Output) AbortFrame ¶
func (o *Output) AbortFrame()
func (*Output) AdaptiveSync ¶
func (*Output) AdaptiveSyncCapable ¶
func (*Output) AllowScanout ¶
func (o *Output) AllowScanout(t gpu.ScanoutTarget)
func (*Output) CapFrameRate ¶
func (*Output) ColorTransform ¶
func (*Output) ContentType ¶
func (o *Output) ContentType() wm.ContentType
func (*Output) CursorPlane ¶
func (o *Output) CursorPlane() (backend.CursorPlane, error)
func (*Output) DegammaSize ¶
func (*Output) Description ¶
func (*Output) EnableColorTransform ¶
func (o *Output) EnableColorTransform()
func (*Output) EnableHardwareClock ¶
func (o *Output) EnableHardwareClock()
func (*Output) ExpectFrameWork ¶
func (*Output) FailCommits ¶
func (*Output) FailPresents ¶
func (*Output) FillsFrame ¶
func (*Output) FlipOverlays ¶
func (o *Output) FlipOverlays() (backend.OverlayFlip, error)
func (*Output) ForgetScanout ¶
func (o *Output) ForgetScanout(backend.ScanoutKey) error
func (*Output) HDRCommits ¶
func (*Output) HasColorTransform ¶
func (*Output) LastDamage ¶
func (*Output) LoseDeviceInFrame ¶
func (o *Output) LoseDeviceInFrame()
func (*Output) OverlayFlips ¶
func (*Output) OverlayPlanes ¶
func (*Output) OverlayTarget ¶
func (o *Output) OverlayTarget() gpu.ScanoutTarget
func (*Output) PhysicalSize ¶
func (*Output) ScanoutFormats ¶
func (o *Output) ScanoutFormats() gpu.ScanoutTarget
func (*Output) ScheduleFrame ¶
func (*Output) SetAdaptiveSync ¶
func (*Output) SetContentType ¶
func (o *Output) SetContentType(t wm.ContentType)
func (*Output) SetDegamma ¶
func (*Output) SetDegammaSize ¶
func (*Output) SetGammaSize ¶
func (*Output) ShownOverlays ¶
func (*Output) ShowsClientBuffer ¶
func (*Output) State ¶
func (o *Output) State() backend.OutputState
func (*Output) TakePresents ¶
func (*Output) TearsFrames ¶
type Pointer ¶
type Pointer struct {
// contains filtered or unexported fields
}
func (*Pointer) Axis ¶
func (p *Pointer) Axis(orientation backend.Orientation, source backend.AxisSource, value float64, value120 int32) error
func (*Pointer) Capabilities ¶
func (d *Pointer) Capabilities() backend.Capability
func (*Pointer) GestureBegin ¶
func (*Pointer) GestureEndAt ¶
type Switches ¶
type Switches struct {
// contains filtered or unexported fields
}
func (*Switches) Capabilities ¶
func (d *Switches) Capabilities() backend.Capability
type Touch ¶
type Touch struct {
// contains filtered or unexported fields
}
func (*Touch) Capabilities ¶
func (d *Touch) Capabilities() backend.Capability
Click to show internal directories.
Click to hide internal directories.