drm

package
v0.0.0-...-143e6d5 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

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
}

Backend is a DRM/KMS display backend.

func New

func New() *Backend

New creates a new DRM/KMS backend.

func (*Backend) Buffer

func (b *Backend) Buffer() *graphics.Buffer

Buffer returns the back buffer for drawing.

func (*Backend) Close

func (b *Backend) Close() error

Close restores the display and cleans up.

func (*Backend) Flush

func (b *Backend) Flush() error

Flush copies the entire back buffer to the display.

func (*Backend) FlushRect

func (b *Backend) FlushRect(r graphics.Rect) error

FlushRect copies a region from the back buffer to the display.

func (*Backend) FlushRects

func (b *Backend) FlushRects(rects []graphics.Rect) error

FlushRects copies multiple regions from the back buffer to the display. This reduces per-rect overhead and allows one hardware dirty notification.

func (*Backend) HasSystemCursor

func (b *Backend) HasSystemCursor() bool

HasSystemCursor returns false.

func (*Backend) Info

func (b *Backend) Info() string

Info returns backend information.

func (*Backend) Open

func (b *Backend) Open() error

Open opens the DRM device, finds a connected display, and sets the mode.

func (*Backend) Size

func (b *Backend) Size() (int, int)

Size returns the display dimensions.

Jump to

Keyboard shortcuts

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