dev

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Display

type Display interface {
	// Init performs Display device initialization.
	Init() error
	// Sleep puts Display to deep-sleep mode to save power.
	Sleep() error
	// Reset performs hardware reset of the Display.
	Reset() error
	// Draw sends image to Display. Use Refresh() or DrawAndRefresh() to display image.
	Draw(image.Image) error
	// DrawAndRefresh sends image to Display and triggers update of the frame.
	DrawAndRefresh(image.Image) error
	// Clear clears the Display's content.
	Clear() error
	// ClearAndRefresh clears the Display's and triggers update.
	ClearAndRefresh() error
	// Refresh updates the Display.
	Refresh() error
	// Bounds returns Display dimensions.
	Bounds() image.Rectangle
	// Active checks whether the Display device is connected and active.
	Active() bool
	// Close closes connection to Display device and clears allocated resources.
	Close() error
}

Display defines base methods for controlling display device.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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