summaryrefslogtreecommitdiff
path: root/box.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-17 14:21:25 -0600
committerJeff Carr <[email protected]>2024-02-17 14:21:25 -0600
commit337a55eaac4ffc516c26286b04b039533adb157d (patch)
tree9c4b676c255e2bfeb7c502105d6a60deaef2c29c /box.go
parentfd7abef300fe3d547bd383843c76268a44ba5184 (diff)
start thinking further about exact layouts & views
Diffstat (limited to 'box.go')
-rw-r--r--box.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/box.go b/box.go
index e16d3e4..2968b7f 100644
--- a/box.go
+++ b/box.go
@@ -27,6 +27,17 @@ func (parent *Node) Box() *Node {
return newNode
}
+// this is an experiment. I like to think of this package like 'Sierpinski'
+// It's like it's in a fractional dimension because it doesn't exist
+// the toolkits are the things that make it visible to us. Here, we can
+// think abstractly about how the data is formed
+// make something that can't be seen at all
+func RawBox() *Node {
+ newNode := me.rootNode.newNode("BOX", widget.Box)
+
+ return newNode
+}
+
func (n *Node) Vertical() *Node {
n.direction = widget.Horizontal
return n