summaryrefslogtreecommitdiff
path: root/simplegrid.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-26 15:15:13 -0400
committerPietro Gagliardi <[email protected]>2014-10-26 15:15:13 -0400
commit335480db7cd6ed97778ef8fef0710e4d68606457 (patch)
treee42e175a54ad1e2cde7c99705270987170e387e9 /simplegrid.go
parentca39a32a90913ce76c21d91fa7773ac3f893e009 (diff)
Reimplemented Control.containerShow()/Control.containerHide(). Will be needed to fully move Tab on Windows away from container.
Diffstat (limited to 'simplegrid.go')
-rw-r--r--simplegrid.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/simplegrid.go b/simplegrid.go
index aac2586..e5aa5eb 100644
--- a/simplegrid.go
+++ b/simplegrid.go
@@ -124,6 +124,22 @@ func (g *simpleGrid) setParent(parent *controlParent) {
g.container.setParent(parent)
}
+func (g *simpleGrid) containerShow() {
+ for _, cc := range g.controls {
+ for _, c := range cc {
+ c.containerShow()
+ }
+ }
+}
+
+func (g *simpleGrid) containerHide() {
+ for _, cc := range g.controls {
+ for _, c := range cc {
+ c.containerHide()
+ }
+ }
+}
+
func (g *simpleGrid) resize(x int, y int, width int, height int, d *sizing) {
max := func(a int, b int) int {
if a > b {