summaryrefslogtreecommitdiff
path: root/tab.go
blob: ce840b56678a0ce34c4ab9fef0e498046c1f79fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)

	send(n, newNode)
	return newNode
}