framebuffer

package
v0.0.0-...-6af99f7 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: GPL-3.0 Imports: 7 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 represents the Linux framebuffer backend.

func New

func New() *Backend

New creates a new framebuffer 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 closes the framebuffer device and restores text mode.

func (*Backend) Flush

func (b *Backend) Flush() error

Flush copies the entire back buffer to the screen.

func (*Backend) FlushRect

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

FlushRect copies only the given rectangle from the back buffer to the screen.

func (*Backend) HasSystemCursor

func (b *Backend) HasSystemCursor() bool

HasSystemCursor returns false since the framebuffer has no system cursor.

func (*Backend) Info

func (b *Backend) Info() string

Info returns information about the framebuffer.

func (*Backend) Open

func (b *Backend) Open() error

Open opens the framebuffer device.

func (*Backend) OpenDevice

func (b *Backend) OpenDevice(device string) error

OpenDevice opens a specific framebuffer device.

func (*Backend) PixelFormat

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

PixelFormat returns the detected pixel format.

func (*Backend) Size

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

Size returns the screen dimensions.

func (*Backend) Start

func (b *Backend) Start()

Start is a no-op for the framebuffer backend.

Jump to

Keyboard shortcuts

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