diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-30 00:54:50 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-30 00:54:50 -0400 |
| commit | 5a51263adc6d2e8ee7ea0dac4d92a66755c07cb1 (patch) | |
| tree | 0ee46724c8518419cce73cc2fdeda0ed3399357e /redo/containerctrls.go | |
| parent | 8b1756e95236202c3baccb4a4c56c40abb12b446 (diff) | |
Renamed the controls* and containers* files to basicctrls* and containerctrls*, respectively, in preparation for the widget hierarchy redo.
Diffstat (limited to 'redo/containerctrls.go')
| -rw-r--r-- | redo/containerctrls.go | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/redo/containerctrls.go b/redo/containerctrls.go new file mode 100644 index 0000000..ec44501 --- /dev/null +++ b/redo/containerctrls.go @@ -0,0 +1,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 rename? +// TODO implement containerShow()/containerHide() on this +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() +} |
