summaryrefslogtreecommitdiff
path: root/new-structs.go
diff options
context:
space:
mode:
Diffstat (limited to 'new-structs.go')
-rw-r--r--new-structs.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/new-structs.go b/new-structs.go
index daeab64..b320b24 100644
--- a/new-structs.go
+++ b/new-structs.go
@@ -237,6 +237,31 @@ func (n *Node) AddTabNode(title string) *Node {
return newNode
}
+func (n *Node) AddHorizontalBreak() *Node {
+ log.Println("AddHorizontalBreak added to node =", n.Name)
+ if (n.uiBox != nil) {
+ tmp := ui.NewHorizontalSeparator()
+ n.uiBox.Append(tmp, false)
+ } else {
+ n.Dump()
+ // panic("AddHorizontalBreak")
+ return nil
+ }
+ return n
+}
+
+func (n *Node) AddVerticalBreak() *Node {
+ log.Println("AddVerticalBreak added to node =", n.Name)
+ if (n.uiBox != nil) {
+ tmp := ui.NewVerticalSeparator()
+ n.uiBox.Append(tmp, false)
+ } else {
+ n.Dump()
+ return nil
+ }
+ return n
+}
+
func (n *Node) AddHorizontalBox(title string) *Node {
hbox := ui.NewHorizontalBox()
hbox.SetPadded(true)