Added a global Do function

This commit is contained in:
Sasha Koshka 2023-07-16 00:33:44 -04:00
parent 32e58ce63d
commit 1cb3be8de8

View File

@ -35,6 +35,10 @@ func Stop () {
backend = nil
}
func Do (callback func ()) {
backend.Do(callback)
}
func NewWindow (bounds image.Rectangle) (MainWindow, error) {
assertBackend()
return backend.NewWindow(bounds)