Moved to a proper package; main() is now a test and go test -c is used to build. Once I iron out a bug with Windows event handling, I'll add a README.
This commit is contained in:
parent
c02948847e
commit
fb82e651a4
|
@ -1,5 +1,5 @@
|
||||||
// 12 february 2014
|
// 12 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// +build !windows,!darwin,!plan9
|
// +build !windows,!darwin,!plan9
|
||||||
|
|
||||||
// 16 february 2014
|
// 16 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// 13 february 2014
|
// 13 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// 14 february 2014
|
// 14 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// 7 february 2014
|
// 7 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// 11 february 2014
|
// 11 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
// ...
|
// ...
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// 9 february 2014
|
// 9 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
// "syscall"
|
// "syscall"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// 7 february 2014
|
// 7 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// +build !windows,!darwin,!plan9
|
// +build !windows,!darwin,!plan9
|
||||||
|
|
||||||
// 7 february 2014
|
// 7 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// 7 february 2014
|
// 7 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// TODO is there a way to simplify the above? :/
|
// TODO is there a way to simplify the above? :/
|
||||||
|
|
||||||
// 16 february 2014
|
// 16 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// +build !windows,!darwin,!plan9
|
// +build !windows,!darwin,!plan9
|
||||||
|
|
||||||
// 17 february 2014
|
// 17 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
2
init.go
2
init.go
|
@ -1,5 +1,5 @@
|
||||||
// 11 february 2014
|
// 11 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// 8 february 2014
|
// 8 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
2
label.go
2
label.go
|
@ -1,5 +1,5 @@
|
||||||
// 14 february 2014
|
// 14 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// 14 february 2014
|
// 14 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// 14 february 2014
|
// 14 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// +build !windows,!darwin,!plan9
|
// +build !windows,!darwin,!plan9
|
||||||
|
|
||||||
// 17 february 2014
|
// 17 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
// 11 february 2014
|
// 11 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func TestMain(t *testing.T) {
|
||||||
w := NewWindow("Main Window", 320, 240)
|
w := NewWindow("Main Window", 320, 240)
|
||||||
w.Closing = Event()
|
w.Closing = Event()
|
||||||
b := NewButton("Click Me")
|
b := NewButton("Click Me")
|
||||||
|
@ -67,5 +68,6 @@ mainloop:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
w.Hide()
|
w.Hide()
|
||||||
|
println("exited loop")
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// 10 february 2014
|
// 10 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
// "syscall"
|
// "syscall"
|
||||||
|
|
2
stack.go
2
stack.go
|
@ -1,5 +1,5 @@
|
||||||
// 13 february 2014
|
// 13 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// 8 february 2014
|
// 8 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// 11 february 2014
|
// 11 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// +build !windows,!darwin,!plan9
|
// +build !windows,!darwin,!plan9
|
||||||
|
|
||||||
// 16 february 2014
|
// 16 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// 11 february 2014
|
// 11 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// +build !windows,!darwin,!plan9
|
// +build !windows,!darwin,!plan9
|
||||||
|
|
||||||
// 16 february 2014
|
// 16 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// 11 february 2014
|
// 11 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// 8 february 2014
|
// 8 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
// "syscall"
|
// "syscall"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// 8 february 2014
|
// 8 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
// "syscall"
|
// "syscall"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
// 7 february 2014
|
// 7 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// 9 february 2014
|
// 9 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
// "syscall"
|
// "syscall"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// 10 february 2014
|
// 10 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
// "syscall"
|
// "syscall"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// 11 february 2014
|
// 11 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// 8 february 2014
|
// 8 february 2014
|
||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
// "syscall"
|
// "syscall"
|
||||||
|
|
Loading…
Reference in New Issue