blob: 9b0c0b15be34b5be52cc65d9bd547d52e8f0dbf9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// 25 july 2014
package ui
// Tab is a Control that contains multiple pages of tabs, each containing a single Control.
// You can add and remove tabs from the Tab at any time.
//
// [TODO if each tab of your Tab is going to have the same content Controls, then use LikeTab instead, to conserve resources]
type Tab interface {
Control
// Append adds a new tab to Tab.
// The tab is added to the end of the current list of tabs.
Append(name string, control Control)
// Delete removes the given tab.
// It panics if index is out of range.
// Delete(index int)
//TODO
}
// NewTab creates a new Tab with no tabs.
func NewTab() Tab {
return newTab()
}
|