commit | 8bbbc12f396318c9db216baef1a9e6e48065fab9 | [log] [tgz] |
---|---|---|
author | Nigel Tao <nigeltao@golang.org> | Sat May 28 08:51:47 2016 +1000 |
committer | Nigel Tao <nigeltao@golang.org> | Wed Jun 01 06:20:51 2016 +0000 |
tree | 2b17bd57660d15befd9a9f02106e1ab9ef23a567 | |
parent | 36db2963368f5d968949ebdc0752515f00d17a5c [diff] |
shiny/widget: have NewContainer functions take children as args. This can simplify building the widget tree, as demonstrated by the example/layout program. Also add the widget.WithLayoutData function to facilitate this. Change-Id: Ia41555ab4d68f0f1057698d637115a80e5d4df3c Reviewed-on: https://go-review.googlesource.com/23530 Reviewed-by: David Crawshaw <crawshaw@golang.org>