2022-10-17 00:38:27 -05:00
|
|
|
package gui
|
|
|
|
|
|
|
|
import (
|
2023-03-01 11:35:36 -06:00
|
|
|
"git.wit.org/wit/gui/toolkit"
|
2022-10-17 00:38:27 -05:00
|
|
|
)
|
|
|
|
|
2022-10-19 13:23:22 -05:00
|
|
|
// This function should make a new node with the parent and
|
|
|
|
// the 'tab' as a child
|
|
|
|
|
2022-11-13 08:53:03 -06:00
|
|
|
func (n *Node) NewTab(text string) *Node {
|
2023-03-01 11:35:36 -06:00
|
|
|
newNode := n.New(text, toolkit.Tab, nil)
|
2022-10-19 13:23:22 -05:00
|
|
|
|
2023-03-01 11:35:36 -06:00
|
|
|
send(n, newNode)
|
2022-11-13 08:53:03 -06:00
|
|
|
return newNode
|
2022-10-19 13:23:22 -05:00
|
|
|
}
|