mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-05 15:33:42 +00:00
Define common display interface (#31)
* issue #27 definition of Displayer interface
This commit is contained in:
committed by
Ron Evans
parent
cd992bd7d6
commit
772a1044c4
@@ -0,0 +1,14 @@
|
||||
package drivers
|
||||
|
||||
import "image/color"
|
||||
|
||||
type Displayer interface {
|
||||
// Size returns the current size of the display.
|
||||
Size() (x, y int16)
|
||||
|
||||
// SetPizel modifies the internal buffer.
|
||||
SetPixel(x, y int16, c color.RGBA)
|
||||
|
||||
// Display sends the buffer (if any) to the screen.
|
||||
Display() error
|
||||
}
|
||||
Reference in New Issue
Block a user