summaryrefslogtreecommitdiff
path: root/separator.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-15 16:14:48 -0600
committerJeff Carr <[email protected]>2024-01-15 16:14:48 -0600
commitaa491036c319beb8326fc422a0efdadf7337cda5 (patch)
tree6e1294823a8a2ec3a79caa55f05a16bcb9bad1f4 /separator.go
parent785b6db6e7fc312a18da4352673027c2b91d3789 (diff)
add Destroy()v0.12.9
improve syntax shortcuts go mod update Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'separator.go')
-rw-r--r--separator.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/separator.go b/separator.go
new file mode 100644
index 0000000..2765b24
--- /dev/null
+++ b/separator.go
@@ -0,0 +1,14 @@
+package gui
+
+import (
+ "go.wit.com/gui/widget"
+)
+
+func (parent *Node) NewSeparator(progname string) *Node {
+ newNode := parent.newNode(progname, widget.Separator)
+ newNode.progname = progname
+
+ // inform the toolkits
+ sendAction(newNode, widget.Add)
+ return newNode
+}