summaryrefslogtreecommitdiff
path: root/box.go
diff options
context:
space:
mode:
Diffstat (limited to 'box.go')
-rw-r--r--box.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/box.go b/box.go
index 39b64b0..e16d3e4 100644
--- a/box.go
+++ b/box.go
@@ -19,6 +19,14 @@ func (parent *Node) NewBox(progname string, b bool) *Node {
return newNode
}
+func (parent *Node) Box() *Node {
+ newNode := parent.newNode("BOX", widget.Box)
+
+ // inform the toolkits
+ sendAction(newNode, widget.Add)
+ return newNode
+}
+
func (n *Node) Vertical() *Node {
n.direction = widget.Horizontal
return n