Added the beginning of a keyboard input test to be written. Also more TODOs.

This commit is contained in:
Pietro Gagliardi 2014-03-27 18:31:23 -04:00
parent 12bc0dc440
commit 4a1d259f5c
3 changed files with 6078 additions and 1 deletions

6072
test/kbtest.go Normal file

File diff suppressed because it is too large Load Diff

View File

@ -139,7 +139,7 @@ func (a *areaHandler) Key(e KeyEvent) bool {
return false
}
var doArea = flag.Bool("area", false, "run area test instead")
var doArea = flag.Bool("area", false, "run area test instead (overrides -kb)")
func areaTest() {
/*
img := [2]*image.NRGBA{}
@ -204,6 +204,10 @@ func myMain() {
areaTest()
return
}
if *doKeyboard {
kbTest()
return
}
w := NewWindow("Main Window", 320, 240)
b := NewButton("Click Me")
b2 := NewButton("Or Me")

View File

@ -93,6 +93,7 @@ important things:
- do this for the names of GTK+ helper functions (gtkXXX or gXXX)
- on windows 7, progress bars seem to animate from 0 -> pos when you turn off marquee mode and set pos; see if that's documented or if I'm doing something wrong
- clean up windows struct field names (holdover from when the intent was to make a wrapper lib first and then use it rather than using the windows API directly)
- make all widths and heights parameters in constructors in the same place (or drop the ones in Window entirely?)
far off:
- localization