blob: 49632ee0d86170379aab65e9a9e65ec933bbb1c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package gui
import (
"git.wit.org/wit/gui/toolkit"
)
// This function should make a new node with the parent and
// the 'tab' as a child
func (n *Node) NewTab(text string) *Node {
newNode := n.New(text, toolkit.Tab, nil)
var a toolkit.Action
a.ActionType = toolkit.Add
a.Name = text
a.Text = text
newaction(&a, newNode, n)
newBox := newNode.NewBox(text, true)
return newBox
}
|