summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-07 15:11:03 -0600
committerJeff Carr <[email protected]>2024-02-07 15:11:03 -0600
commitb777dc2b39bf1fadc292b646ae6afde9f0d0c392 (patch)
treec1adeff64d9b20377e16fb84b938ee685689303a
parent2d0c73f58e68d34cbd2ab85ba82507d159da28de (diff)
try to debug box direction
Signed-off-by: Jeff Carr <[email protected]>
-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