summaryrefslogtreecommitdiff
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
parentfd7abef300fe3d547bd383843c76268a44ba5184 (diff)
start thinking further about exact layouts & views
-rw-r--r--Makefile3
-rw-r--r--box.go11
2 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1b2ab69..43332b5 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,9 @@ all:
@echo It creates a binary tree of widgets
@echo The widgets are things like Windows, Buttons, Labels, etc
@echo
+ @GO111MODULE=off go build
+
+note-about-golang:
ifeq ($(GO111MODULE),)
@echo
@echo If you are compiling this here, you probably want to set GO111MODULE
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