From d4787a1ebdd08359746516dbb72f1feaf95be5b6 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 23 Mar 2023 12:35:12 -0500 Subject: Squashed commit of the following: boxes now exist and are tracked in the binary tree create for group and grid works gocui plugin no longer works. TODO: fix in next release converted everything from plugin to Action() can remove send() tab and window are now action() flags moved to action() ready for new release pad() margion() border() all work move worked! go.wit.com attept 578th try adds an early grid widget. won't work until chan andlabs/ui grid (X,Y) works right actually can put things in places in a grid Queue() means shit doesn't look right on grids lots of fucking around. why am I wasting time on image? wow. the crazy doAppend() thing is gone implement Action Show() and Hide() Signed-off-by: Jeff Carr --- checkbox.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'checkbox.go') diff --git a/checkbox.go b/checkbox.go index 186f3a8..353072f 100644 --- a/checkbox.go +++ b/checkbox.go @@ -3,12 +3,18 @@ package gui import "git.wit.org/wit/gui/toolkit" func (n *Node) Checked() bool { - n.Dump() return n.widget.B } func (n *Node) NewCheckbox(name string) *Node { newNode := n.New(name, toolkit.Checkbox, nil) - send(n, newNode) + + var a toolkit.Action + a.Type = toolkit.Add + // a.Widget = &newNode.widget + // a.Where = &n.widget + // action(&a, newNode, n) + newaction(&a, newNode, n) + return newNode } -- cgit v1.2.3