ebiten/ui/ui.go

21 lines
306 B
Go
Raw Normal View History

package ui
2013-06-18 17:48:41 +02:00
import (
2014-12-05 14:16:58 +01:00
"github.com/hajimehoshi/ebiten/graphics"
2013-06-18 17:48:41 +02:00
)
2013-11-29 19:21:10 +01:00
type UI interface {
2014-12-06 20:14:35 +01:00
Start(widht, height, scale int, title string) (Canvas, error)
2014-01-13 07:26:20 +01:00
DoEvents()
Terminate()
2013-11-29 19:21:10 +01:00
}
2013-12-09 14:40:54 +01:00
2014-12-06 20:14:35 +01:00
type Drawer interface {
Draw(c graphics.Context) error
}
2014-05-11 14:24:37 +02:00
type Canvas interface {
2014-12-06 20:14:35 +01:00
Draw(drawer Drawer) error
2014-05-12 03:04:28 +02:00
IsClosed() bool
2013-12-09 14:40:54 +01:00
}