diff options
| author | Jeff Carr <[email protected]> | 2024-01-18 00:12:59 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-18 00:12:59 -0600 |
| commit | 0674bd89b798f7512462402817c496e8a80ac3d4 (patch) | |
| tree | 2d520204b18c5cb09481b461642cb183db8bf74a /gocui/checkbox.go | |
| parent | a0baba0821441d9cf38f0b33fe12fb96925c6236 (diff) | |
move everything into seperate repos
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gocui/checkbox.go')
| -rw-r--r-- | gocui/checkbox.go | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/gocui/checkbox.go b/gocui/checkbox.go deleted file mode 100644 index 76b4377..0000000 --- a/gocui/checkbox.go +++ /dev/null @@ -1,33 +0,0 @@ -package main - -import ( - // "github.com/awesome-gocui/gocui" - "go.wit.com/lib/widget" -) - -func (n *node) setCheckbox(b any) { - w := n.tk - if n.WidgetType != widget.Checkbox { - return - } - if widget.GetBool(b) { - n.value = b - n.tk.label = "X " + n.label - } else { - n.value = b - n.tk.label = " " + n.label - } - t := len(n.tk.label) + 1 - w.gocuiSize.w1 = w.gocuiSize.w0 + t - - // w.realWidth = w.gocuiSize.Width() + me.PadW - // w.realHeight = w.gocuiSize.Height() + me.PadH - - // if w.frame { - // w.realWidth += me.FramePadW - // w.realHeight += me.FramePadH - // } - - n.deleteView() - n.showView() -} |
