fbdev

package
v0.0.0-...-8e656ca Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2014 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FBIOGET_VSCREENINFO uintptr = 0x4600
	FBIOPUT_VSCREENINFO uintptr = 0x4601
	FBIOGET_FSCREENINFO uintptr = 0x4602
)
View Source
const (
	PROT_READ  int = 0x1
	PROT_WRITE int = 0x2
	PROT_EXEC  int = 0x4
)
View Source
const (
	MAP_SHARED  int = 0x1
	MAP_PRIVATE int = 0x2
)
View Source
const (
	KDSETMODE   uintptr = 0x4b3a
	KD_TEXT     int     = 0x0
	KD_GRAPHICS int     = 0x1
	KDGETMODE   uintptr = 0x4b3b
)
View Source
const (
	I_A = 3
	I_R = 2
	I_G = 1
	I_B = 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Framebuffer

type Framebuffer struct {
	Vinfo        varScreenInfo
	Mem          []byte
	MemOffscreen []byte
	// contains filtered or unexported fields
}

func Init

func Init(fbdev, tty string) (*Framebuffer, error)

Initialize frame buffer device

func (*Framebuffer) At

func (fb *Framebuffer) At(x, y int) color.Color

func (*Framebuffer) Bounds

func (fb *Framebuffer) Bounds() image.Rectangle

func (*Framebuffer) Close

func (fb *Framebuffer) Close()

func (*Framebuffer) ColorModel

func (fb *Framebuffer) ColorModel() color.Model

func (*Framebuffer) Set

func (fb *Framebuffer) Set(x, y int, c color.Color)

Jump to

Keyboard shortcuts

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