diff options
| author | Jeff Carr <[email protected]> | 2024-01-01 15:43:50 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-01 15:43:50 -0600 |
| commit | 4e7bbd89900a733593f0848778103c1cf1a7145d (patch) | |
| tree | 22cd22124dd3ecba7c2a866b882d39aaf790d670 /toolkit/gocui/checkbox.go | |
| parent | 53ce3a8252090d5fb75d7fc1e3cd75a72c1415c6 (diff) | |
reorg to final resting place at go.wit.com/gui/guiv0.9.5
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/checkbox.go')
| -rw-r--r-- | toolkit/gocui/checkbox.go | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/toolkit/gocui/checkbox.go b/toolkit/gocui/checkbox.go deleted file mode 100644 index 5973dca..0000000 --- a/toolkit/gocui/checkbox.go +++ /dev/null @@ -1,33 +0,0 @@ -package main - -import ( -// "github.com/awesome-gocui/gocui" - "go.wit.com/gui/toolkit" -) - -func (n *node) setCheckbox(b bool) { - w := n.tk - if (n.WidgetType != toolkit.Checkbox) { - return - } - if (b) { - n.B = b - n.Text = "X " + n.Name - } else { - n.B = b - n.Text = " " + n.Name - } - t := len(n.Text) + 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() -} |
