From 337a55eaac4ffc516c26286b04b039533adb157d Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 17 Feb 2024 14:21:25 -0600 Subject: start thinking further about exact layouts & views --- Makefile | 3 +++ box.go | 11 +++++++++++ 2 files changed, 14 insertions(+) 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 -- cgit v1.2.3