diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-29 23:23:45 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-29 23:23:45 -0400 |
| commit | 8b1756e95236202c3baccb4a4c56c40abb12b446 (patch) | |
| tree | 2172df8ce3db66fc96b533e66d22f6125e5056b6 /redo/zz_test.go | |
| parent | 9daab20fcef427dbf0c27a32d8c5ec5bb3366cea (diff) | |
Re-added Stack. Of course it only works right on GTK+ right now... the other platforms's Control.preferredSize()s aren't implemented yet!
Diffstat (limited to 'redo/zz_test.go')
| -rw-r--r-- | redo/zz_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/redo/zz_test.go b/redo/zz_test.go index d20eabf..b3d44e7 100644 --- a/redo/zz_test.go +++ b/redo/zz_test.go @@ -28,6 +28,7 @@ var ddata = []dtype{ type testwin struct { t Tab w Window + s *Stack // TODO make Stack l Label table Table b Button @@ -48,6 +49,14 @@ func (tw *testwin) make(done chan struct{}) { done <- struct{}{} return true }) + stack1 := NewHorizontalStack(NewLabel("Test"), NewTextField()) + stack1.SetStretchy(1) + stack2 := NewHorizontalStack(NewLabel("Test 2"), + NewTable(reflect.TypeOf(struct{A,B,C int}{}))) + stack2.SetStretchy(1) + tw.s = NewVerticalStack(stack1, stack2) + tw.s.SetStretchy(1) + tw.t.Append("Stack", tw.s) tw.l = NewStandaloneLabel("hello") tw.t.Append("Label", tw.l) tw.table = NewTable(reflect.TypeOf(ddata[0])) |
