mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 19:22:49 +01:00
21 lines
306 B
Go
21 lines
306 B
Go
package ui
|
|
|
|
import (
|
|
"github.com/hajimehoshi/ebiten/graphics"
|
|
)
|
|
|
|
type UI interface {
|
|
Start(widht, height, scale int, title string) (Canvas, error)
|
|
DoEvents()
|
|
Terminate()
|
|
}
|
|
|
|
type Drawer interface {
|
|
Draw(c graphics.Context) error
|
|
}
|
|
|
|
type Canvas interface {
|
|
Draw(drawer Drawer) error
|
|
IsClosed() bool
|
|
}
|