Checkpoint
This commit is contained in:
138 files changed
+1898
-57607
No files matched your search
@@ -0,0 +1,26 @@
|
||||
package hardware
|
||||
|
||||
import (
|
||||
"image"
|
||||
"image/color"
|
||||
"image/draw"
|
||||
)
|
||||
|
||||
// Display driver.
|
||||
type Display interface {
|
||||
Driver
|
||||
|
||||
// Draw an image on the display.
|
||||
Draw(r image.Rectangle, src image.Image, sp image.Point) error
|
||||
|
||||
// Size of the display.
|
||||
Size() image.Point
|
||||
|
||||
// Fill with one color.
|
||||
Fill(color.Color) error
|
||||
|
||||
// Refresh the display.
|
||||
Refresh() error
|
||||
|
||||
draw.Image
|
||||
}
|
||||
Reference in new issue
Block a user