redo-event-system #1

Merged
sashakoshka merged 7 commits from redo-event-system into main 2022-11-09 16:54:11 -07:00
Showing only changes of commit 60269d554c - Show all commits

View File

@ -4,17 +4,8 @@ import "time"
import "errors"
type Backend interface {
Run (callback func (application *Application)) ()
Await (timeout time.Duration) (keepRunning bool)
Poll () (keepRunning bool)
SetTitle (title string)
JustPressed (button Button) (pressed bool)
JustReleased (button Button) (released bool)
Pressed (button Button) (pressed bool)
Repeated (button Button) (repeated bool)
Typed () (text string)
Resized () (resized bool)
MousePosition () (x, y int)
Run () (chan(Event))
SetTitle (title string)
}
type BackendFactory func (application *Application) (backend Backend, err error)